diff --git a/capplets/windows/ChangeLog b/capplets/windows/ChangeLog index 6ee03aaa7..44666d41e 100644 --- a/capplets/windows/ChangeLog +++ b/capplets/windows/ChangeLog @@ -1,3 +1,12 @@ +2002-05-10 Seth Nickell + + * gnome-window-properties.c: (set_wm_change_pending), + (state_changed), (create_dialog): + * gnome-window-properties.glade: + + Make the glade file look a little bit better, hide the property widgets when + there is a window manager change pending. + 2002-05-10 Seth Nickell * .cvsignore: diff --git a/capplets/windows/gnome-window-properties.c b/capplets/windows/gnome-window-properties.c index bf452c340..ca6e67032 100644 --- a/capplets/windows/gnome-window-properties.c +++ b/capplets/windows/gnome-window-properties.c @@ -38,6 +38,7 @@ typedef struct { static GtkWidget *capplet; static GtkWidget *wm_widget; static GtkWidget *apply_now_button; +static GtkWidget *properties_box; static WindowManager *selected_wm = NULL; @@ -191,6 +192,13 @@ wm_widget_add_wm (WindowManager *wm, const char *row_text) gtk_option_menu_set_history (GTK_OPTION_MENU (option_menu), 0); } +static void +set_wm_change_pending (gboolean pending) +{ + gtk_widget_set_sensitive (apply_now_button, pending); + gtk_widget_set_sensitive (properties_box, !pending); +} + static void response_cb (GtkDialog *dialog, gint response_id, gpointer data) { @@ -206,7 +214,7 @@ response_cb (GtkDialog *dialog, gint response_id, gpointer data) static void state_changed (void) { - gtk_widget_set_sensitive (apply_now_button, TRUE); + set_wm_change_pending (TRUE); } static void @@ -725,9 +733,12 @@ create_dialog (void) dialog = glade_xml_new (GNOMECC_DATA_DIR "/interfaces/gnome-window-properties.glade", "prefs_widget", NULL); apply_now_button = WID ("apply_now_button"); - gtk_widget_set_sensitive (apply_now_button, FALSE); g_signal_connect (G_OBJECT (apply_now_button), "clicked", apply_wm, NULL); + properties_box = WID ("properties_box"); + + set_wm_change_pending (FALSE); + wm_widget = wm_widget_new (); gtk_box_pack_start (GTK_BOX (WID ("wm_widget_box")), wm_widget, TRUE, TRUE, 0); diff --git a/capplets/windows/gnome-window-properties.glade b/capplets/windows/gnome-window-properties.glade index 1cdf7fd7a..e198b8ee2 100644 --- a/capplets/windows/gnome-window-properties.glade +++ b/capplets/windows/gnome-window-properties.glade @@ -2,6 +2,7 @@ + True @@ -14,7 +15,7 @@ - 10 + 9 True False 5 @@ -23,13 +24,13 @@ True False - 0 + 9 True False - 0 + 3 @@ -110,110 +111,104 @@ - + True False - 10 + 9 - + True False - 5 + 3 - - True - 0 - 0.5 - GTK_SHADOW_NONE - - - - True - 0.5 - 0.5 - 0 - 0 - - - - - 0 - False - False - - - - - + True False 0 - + True - 0 - 0.5 - GTK_SHADOW_NONE - - - - True - True - -1 - - + Window Border Appearance + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 0 False - True + False - + True - 0 - 0.5 - GTK_SHADOW_NONE - - - - True - True - -1 - - + True + -1 0 False - True + False + + + + + 0 + True + True + + + + + + True + False + 0 + + + + True + Titlebar Font + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + False + False - + True - 0 - 0.5 - GTK_SHADOW_NONE - - - - True - True - -1 - - + True + GNOME_FONT_PICKER_MODE_FONT_INFO + True + True + 14 0 False - True + False