Patch by: Jens Granseuer <jensgr@gmx.net>

2007-01-12  Thomas Wood  <thos@gnome.org>

	Patch by:  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-details.c: (color_scheme_combobox_changed): Fix build with
	gcc 2 (c89 fixes). Fixes bug 394707.

svn path=/trunk/; revision=7132
This commit is contained in:
Thomas Wood 2007-01-12 09:42:22 +00:00 committed by Thomas Wood
parent 8a79c51358
commit 9414debff0
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2007-01-12 Thomas Wood <thos@gnome.org>
Patch by: Jens Granseuer <jensgr@gmx.net>
* gnome-theme-details.c: (color_scheme_combobox_changed): Fix build with
gcc 2 (c89 fixes). Fixes bug 394707.
2007-01-08 Rodrigo Moya <rodrigo@gnome-db.org>
* Makefile.am: added missing EXTRA_DIST files.

View file

@ -647,16 +647,16 @@ void
color_scheme_combobox_changed (GtkWidget *widget, GtkWidget *parent)
{
GladeXML *dialog;
dialog = gnome_theme_manager_get_theme_dialog ();
gchar *color_scheme_name;
gboolean custom;
dialog = gnome_theme_manager_get_theme_dialog ();
color_scheme_name = gtk_combo_box_get_active_text (GTK_COMBO_BOX (WID ("color_scheme_combobox")));
custom = (color_scheme_name != NULL && strcmp (color_scheme_name, _("Custom")) == 0);
gtk_widget_set_sensitive (WID ("save_color_scheme_button"), custom);
gtk_widget_set_sensitive (WID ("delete_color_scheme_button"), !custom);
}
void