From: Marcin Krzyżanowski Date: Thu, 4 Dec 2003 22:46:31 +0000 (+0000) Subject: - add checkbox to configure wireframe metacity mode X-Git-Tag: auto/ac/control-center-2_4_0-12~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcontrol-center.git;a=commitdiff_plain;h=4fe84eee1a4cc3fa4de46bc338274e89e2ca4ee9 - add checkbox to configure wireframe metacity mode Changed files: control-center-reduced_resources.patch -> 1.1 --- diff --git a/control-center-reduced_resources.patch b/control-center-reduced_resources.patch new file mode 100644 index 0000000..bb8ad5a --- /dev/null +++ b/control-center-reduced_resources.patch @@ -0,0 +1,213 @@ +diff -Nuard control-center-2.4.0.orig/capplets/windows/gnome-window-properties.c control-center-2.4.0/capplets/windows/gnome-window-properties.c +--- control-center-2.4.0.orig/capplets/windows/gnome-window-properties.c 2003-05-01 07:32:13.000000000 +0200 ++++ control-center-2.4.0/capplets/windows/gnome-window-properties.c 2003-12-04 23:09:55.000000000 +0100 +@@ -46,6 +46,7 @@ + static GladeXML *dialog; + static GnomeWindowManager *current_wm; /* may be NULL */ + static GtkWidget *dialog_win; ++static GtkWidget *reduced_mode_checkbutton; + static GtkWidget *focus_mode_checkbutton; + static GtkWidget *autoraise_checkbutton; + static GtkWidget *autoraise_delay_slider; +@@ -64,6 +65,13 @@ + static void reload_mouse_modifiers (void); + + static void ++reduced_mode_toggled_callback (GtkWidget *button, void *data) ++{ ++ gconf_client_set_bool (gconf_client, "/apps/metacity/general/reduced_resources", ++ gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)), NULL); ++} ++ ++static void + mouse_focus_toggled_callback (GtkWidget *button, + void *data) + { +@@ -79,7 +87,7 @@ + + static void + autoraise_toggled_callback (GtkWidget *button, +- void *data) ++ void *data) + { + GnomeWMSettings new_settings; + +@@ -271,6 +279,9 @@ + + init_settings_struct (&new_settings); + ++ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (reduced_mode_checkbutton), ++ gconf_client_get_bool (gconf_client, "/apps/metacity/general/reduced_resources",NULL)); ++ + if (new_settings.focus_follows_mouse != settings.focus_follows_mouse) + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (focus_mode_checkbutton), + new_settings.focus_follows_mouse); +@@ -441,6 +452,7 @@ + } + + dialog_win = WID ("main-dialog"); ++ reduced_mode_checkbutton = WID ("reduced-mode-checkbutton"); + focus_mode_checkbutton = WID ("focus-mode-checkbutton"); + autoraise_checkbutton = WID ("autoraise-checkbutton"); + autoraise_delay_slider = WID ("autoraise-delay-slider"); +@@ -482,6 +494,8 @@ + g_signal_connect (G_OBJECT (dialog_win), "destroy", + G_CALLBACK (gtk_main_quit), NULL); + ++ g_signal_connect (G_OBJECT (reduced_mode_checkbutton), "toggled", ++ G_CALLBACK (reduced_mode_toggled_callback), NULL); + + g_signal_connect (G_OBJECT (focus_mode_checkbutton), "toggled", + G_CALLBACK (mouse_focus_toggled_callback), NULL); +diff -Nuard control-center-2.4.0.orig/capplets/windows/gnome-window-properties.glade control-center-2.4.0/capplets/windows/gnome-window-properties.glade +--- control-center-2.4.0.orig/capplets/windows/gnome-window-properties.glade 2003-08-04 17:33:23.000000000 +0200 ++++ control-center-2.4.0/capplets/windows/gnome-window-properties.glade 2003-12-04 21:06:38.000000000 +0100 +@@ -2,6 +2,7 @@ + + + ++ + + + 5 +@@ -74,7 +75,7 @@ + + True + 11 +- 20 ++ 21 + True + 6 + 0 +@@ -231,6 +232,52 @@ + + + ++ ++ True ++ 0.5 ++ 0 ++ 1 ++ 0 ++ ++ ++ ++ True ++ False ++ 6 ++ ++ ++ ++ True ++ To _move a window, press-and-hold this key then grab the window: ++ True ++ False ++ GTK_JUSTIFY_LEFT ++ False ++ False ++ 0 ++ 0.5 ++ 0 ++ 0 ++ ++ ++ 0 ++ True ++ True ++ ++ ++ ++ ++ ++ ++ 0 ++ 20 ++ 9 ++ 11 ++ fill ++ ++ ++ ++ + + True + 0.5 +@@ -254,8 +301,8 @@ + + 0 + 20 +- 0 +- 2 ++ 2 ++ 4 + fill + + +@@ -284,14 +331,14 @@ + + 1 + 20 +- 2 +- 4 ++ 3 ++ 5 + fill + + + + +- ++ + True + 0.5 + 0 +@@ -299,39 +346,23 @@ + 0 + + +- ++ + True +- False +- 6 +- +- +- +- True +- To _move a window, press-and-hold this key then grab the window: +- True +- False +- GTK_JUSTIFY_LEFT +- False +- False +- 0 +- 0.5 +- 0 +- 0 +- +- +- 0 +- True +- True +- +- ++ True ++ _Use wireframe move/resize ++ True ++ GTK_RELIEF_NORMAL ++ False ++ False ++ True + + + + + 0 + 20 +- 9 +- 11 ++ 0 ++ 2 + fill + +