1999-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gnome-file-property-dialog.c (apply_metadata_change): Fixed
	incorrect logic when testing whether the icon changed or not.
	This makes icons change correctly again.

	* Makefile.in (GNOMEHDRS): Added gdesktop-init.h.
This commit is contained in:
Miguel de Icaza 1999-03-23 20:39:29 +00:00
parent d82dfc7aa7
commit e0db072382
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,11 @@
1999-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gnome-file-property-dialog.c (apply_metadata_change): Fixed
incorrect logic when testing whether the icon changed or not.
This makes icons change correctly again.
* Makefile.in (GNOMEHDRS): Added gdesktop-init.h.
1999-03-23 Jonathan Blandford <jrb@redhat.com>
* gscreen.c (panel_tree_drag_motion): lets try to cut down on the flickers.

View File

@ -72,6 +72,7 @@ GNOMEHDRS = \
gcorba.h \
gcustom-layout.h\
gdesktop-icon.h \
gdesktop-init.h \
gdesktop.h \
gdnd.h \
gicon.h \

View File

@ -1365,7 +1365,7 @@ apply_metadata_change (GnomeFilePropertyDialog *fpd)
/*gtk_entry_get_text (GTK_ENTRY (gnome_icon_entry_gtk_entry (GNOME_ICON_ENTRY (fpd->button))));*/
if (text) {
if (fpd->icon_filename == NULL || (!strcmp (fpd->icon_filename, text)))
if (fpd->icon_filename == NULL || strcmp (fpd->icon_filename, text) != 0)
gnome_metadata_set (fpd->file_name, "icon-filename", strlen (text) + 1, text);
g_free (text);
}