~tristan957/tllt-cp

0df42a071a552c5005fda93ffeb045ccccf0905f — Tristan Partin 1 year, 6 months ago 52a7f9a
Fix 400 error on server create recipe
M data/ui/tllt-cp-new-recipe-window.ui => data/ui/tllt-cp-new-recipe-window.ui +1 -1
@@ 79,7 79,7 @@
                  <item id="1" translatable="yes">Toast</item>
                  <item id="2" translatable="yes">Pizza</item>
                  <item id="3" translatable="yes">Bagel</item>
                  <item id="3" translatable="yes">Poptart</item>
                  <item id="4" translatable="yes">Poptart</item>
                </items>
              </object>
              <packing>

M lib/dto/tllt-cp-create-recipe-dto.c => lib/dto/tllt-cp-create-recipe-dto.c +1 -1
@@ 90,7 90,7 @@ tllt_cp_create_recipe_dto_class_init(TlltCpCreateRecipeDtoClass *klass)
		g_param_spec_string("name", _("Name"), _("Name of the recipe"), NULL,
							G_PARAM_CONSTRUCT_ONLY | G_PARAM_PRIVATE | G_PARAM_READWRITE);
	obj_properties[PROP_TYPE] =
		g_param_spec_uint("type", _("Type"), _("Type of the recipe"), 0, POPTART, TOAST,
		g_param_spec_uint("type", _("Type"), _("Type of the recipe"), 0, POPTART, 0,
						  G_PARAM_CONSTRUCT_ONLY | G_PARAM_PRIVATE | G_PARAM_READWRITE);

	g_object_class_install_properties(obj_class, N_PROPS, obj_properties);

M lib/tllt-cp-recipe.c => lib/tllt-cp-recipe.c +1 -1
@@ 102,7 102,7 @@ tllt_cp_recipe_class_init(TlltCpRecipeClass *klass)
		g_param_spec_string("name", _("Name"), _("Name of the recipe"), NULL,
							G_PARAM_PRIVATE | G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
	obj_properties[PROP_TYPE] =
		g_param_spec_uint("type", _("Type"), _("Type of the recipe"), 0, POPTART, TOAST,
		g_param_spec_uint("type", _("Type"), _("Type of the recipe"), 0, POPTART, 0,
						  G_PARAM_PRIVATE | G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);

	g_object_class_install_properties(obj_class, N_PROPS, obj_properties);

M src/tllt-cp-new-recipe-window.c => src/tllt-cp-new-recipe-window.c +2 -1
@@ 95,7 95,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_id_column(GTK_COMBO_BOX(priv->recipe_type_combo)),
							&err);

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