~tristan957/tllt-cp

03ccb981a2fb2121f66c1ab73ec3189685ad11b0 — Tristan Partin 1 year, 5 months ago b641e5e
Make the recipe UI work. Everying not toast
2 files changed, 3 insertions(+), 2 deletions(-)

M lib/tllt-cp-client.c
M src/tllt-cp-new-recipe-window.c
M lib/tllt-cp-client.c => lib/tllt-cp-client.c +2 -0
@@ 229,6 229,8 @@ tllt_cp_client_post_request(TlltCpClient *self, const GType type, const char *en
			goto on_error;
		}

		g_print("%s\n", deserialized);

		g_free(deserialized);
	}


M src/tllt-cp-new-recipe-window.c => src/tllt-cp-new-recipe-window.c +1 -2
@@ 101,8 101,7 @@ on_create_recipe_button_clicked(G_GNUC_UNUSED GtkButton *widget, gpointer user_d

	g_autoptr(GError) err = NULL;
	tllt_cp_user_add_recipe(priv->author, priv->client, gtk_entry_get_text(priv->recipe_name_entry),
							gtk_combo_box_get_id_column(GTK_COMBO_BOX(priv->recipe_type_combo)),
							&err);
							gtk_combo_box_get_active(GTK_COMBO_BOX(priv->recipe_type_combo)), &err);

	// TODO: do something meaningful with error
	if (err != NULL) {