~tristan957/tllt-cp

5d1852751fcff4cc4b2bb44e0dbe5a03a8aba218 — Tristan Partin 5 years ago 03ccb98 master
Fix recipe UI to show correct recipe
2 files changed, 2 insertions(+), 3 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 +0 -2
@@ 229,8 229,6 @@ 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 +2 -1
@@ 101,7 101,8 @@ 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_active(GTK_COMBO_BOX(priv->recipe_type_combo)), &err);
							gtk_combo_box_get_active(GTK_COMBO_BOX(priv->recipe_type_combo)) + 1,
							&err);

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