A result of 0 no longer indicates success; GTK_RESPONSE_OK does.

2003-02-22  Hans Petter Jansson  <hpj@ximian.com>

	* e-categories-config.c (e_categories_config_open_dialog_for_entry):
	A result of 0 no longer indicates success; GTK_RESPONSE_OK does.

svn path=/trunk/; revision=19998
This commit is contained in:
Hans Petter Jansson
2003-02-22 23:00:59 +00:00
committed by Hans Petter
parent dda4471abe
commit c21c4013cc
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-02-22 Hans Petter Jansson <hpj@ximian.com>
* e-categories-config.c (e_categories_config_open_dialog_for_entry):
A result of 0 no longer indicates success; GTK_RESPONSE_OK does.
2003-02-17 Chris Toshok <toshok@ximian.com>
* e-account-list.c (gconf_accounts_changed): fix memleak - free

View File

@ -192,7 +192,7 @@ e_categories_config_open_dialog_for_entry (GtkEntry *entry)
/* run the dialog */
result = gtk_dialog_run (dialog);
if (result == 0) {
if (result == GTK_RESPONSE_OK) {
g_object_get (dialog, "categories", &categories, NULL);
gtk_entry_set_text (GTK_ENTRY (entry), categories);
g_free (categories);