]> git.pld-linux.org Git - packages/control-center.git/blob - control-center-reduced_resources.patch
5f53f17e038a8b6e21bb3968062eeb371550e298
[packages/control-center.git] / control-center-reduced_resources.patch
1 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
2 --- control-center-2.4.0.orig/capplets/windows/gnome-window-properties.c        2003-05-01 07:32:13.000000000 +0200
3 +++ control-center-2.4.0/capplets/windows/gnome-window-properties.c     2003-12-04 23:09:55.000000000 +0100
4 @@ -47,6 +47,7 @@
5  static GnomeWindowManager *current_wm; /* may be NULL */
6  static GtkWidget *dialog_win;
7  static GtkWidget *focus_mode_checkbutton;
8 +static GtkWidget *reduced_mode_checkbutton;
9  static GtkWidget *autoraise_checkbutton;
10  static GtkWidget *autoraise_delay_slider;
11  static GtkWidget *autoraise_delay_hbox;
12 @@ -62,6 +63,11 @@
13  static int n_mouse_modifiers = 0;
14  
15  static void reload_mouse_modifiers (void);
16 +reduced_mode_toggled_callback (GtkWidget *button, void      *data)
17 +{
18 +       gconf_client_set_bool (gconf_client, "/apps/metacity/general/reduced_resources",
19 +               gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)), NULL);
20 +}
21  
22  static void
23  mouse_focus_toggled_callback (GtkWidget *button,
24 @@ -278,6 +284,10 @@
25  
26          init_settings_struct (&new_settings);
27          
28 +
29 +        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (reduced_mode_checkbutton),
30 +               gconf_client_get_bool (gconf_client, "/apps/metacity/general/reduced_resources",NULL));
31 +
32          if (new_settings.focus_follows_mouse != settings->focus_follows_mouse)
33                  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (focus_mode_checkbutton),
34                                                new_settings.focus_follows_mouse);
35 @@ -452,6 +462,7 @@
36          }
37          
38          dialog_win = WID ("main-dialog");
39 +        reduced_mode_checkbutton = WID ("reduced-mode-checkbutton");
40          focus_mode_checkbutton = WID ("focus-mode-checkbutton");
41          autoraise_checkbutton = WID ("autoraise-checkbutton");
42          autoraise_delay_slider = WID ("autoraise-delay-slider");
43 @@ -494,6 +505,8 @@
44          g_signal_connect (G_OBJECT (dialog_win), "destroy",
45                            G_CALLBACK (gtk_main_quit), NULL);
46  
47 +        g_signal_connect (G_OBJECT (reduced_mode_checkbutton), "toggled",
48 +                          G_CALLBACK (reduced_mode_toggled_callback), NULL);
49  
50          g_signal_connect (G_OBJECT (focus_mode_checkbutton), "toggled",
51                            G_CALLBACK (mouse_focus_toggled_callback), NULL);
52 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
53 --- control-center-2.4.0.orig/capplets/windows/gnome-window-properties.glade    2003-08-04 17:33:23.000000000 +0200
54 +++ control-center-2.4.0/capplets/windows/gnome-window-properties.glade 2003-12-04 21:06:38.000000000 +0100
55 @@ -12,6 +12,11 @@
56    <property name="modal">False</property>
57    <property name="resizable">False</property>
58    <property name="destroy_with_parent">False</property>
59 +  <property name="decorated">True</property>
60 +  <property name="skip_taskbar_hint">False</property>
61 +  <property name="skip_pager_hint">False</property>
62 +  <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
63 +  <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
64    <property name="has_separator">False</property>
65  
66    <child internal-child="vbox">
67 @@ -33,6 +38,7 @@
68               <property name="label">gtk-help</property>
69               <property name="use_stock">True</property>
70               <property name="relief">GTK_RELIEF_NORMAL</property>
71 +             <property name="focus_on_click">True</property>
72               <property name="response_id">-11</property>
73             </widget>
74           </child>
75 @@ -46,6 +52,7 @@
76               <property name="label">gtk-close</property>
77               <property name="use_stock">True</property>
78               <property name="relief">GTK_RELIEF_NORMAL</property>
79 +             <property name="focus_on_click">True</property>
80               <property name="response_id">-7</property>
81             </widget>
82           </child>
83 @@ -111,6 +118,7 @@
84                           <property name="label" translatable="yes">_Select windows when the mouse moves over them</property>
85                           <property name="use_underline">True</property>
86                           <property name="relief">GTK_RELIEF_NORMAL</property>
87 +                         <property name="focus_on_click">True</property>
88                           <property name="active">False</property>
89                           <property name="inconsistent">False</property>
90                           <property name="draw_indicator">True</property>
91 @@ -141,6 +149,7 @@
92                                   <property name="label" translatable="yes">_Raise selected windows after an interval</property>
93                                   <property name="use_underline">True</property>
94                                   <property name="relief">GTK_RELIEF_NORMAL</property>
95 +                                 <property name="focus_on_click">True</property>
96                                   <property name="active">False</property>
97                                   <property name="inconsistent">False</property>
98                                   <property name="draw_indicator">True</property>
99 @@ -200,8 +209,8 @@
100                                           <property name="inverted">False</property>
101                                           <property name="adjustment">7.7 0 10 0.2 1 0</property>
102                                           <accessibility>
103 -                                               <atkrelation target="autoraise-delay-label" type="labelled-by"/>
104 -                                               <atkrelation target="label1" type="labelled-by"/>
105 +                                           <atkrelation target="label1" type="labelled-by"/>
106 +                                           <atkrelation target="autoraise-delay-label" type="labelled-by"/>
107                                           </accessibility>
108                                         </widget>
109                                         <packing>
110 @@ -225,7 +234,7 @@
111                                           <property name="xpad">4</property>
112                                           <property name="ypad">0</property>
113                                           <accessibility>
114 -                                               <atkrelation target="autoraise-delay-slider" type="label-for"/>
115 +                                           <atkrelation target="autoraise-delay-slider" type="label-for"/>
116                                           </accessibility>
117                                         </widget>
118                                         <packing>
119 @@ -285,6 +294,85 @@
120           </child>
121  
122           <child>
123 +           <widget class="GtkVBox" id="vbox9">
124 +             <property name="visible">True</property>
125 +             <property name="homogeneous">False</property>
126 +             <property name="spacing">12</property>
127 +
128 +             <child>
129 +               <widget class="GtkLabel" id="label6">
130 +                 <property name="visible">True</property>
131 +                 <property name="label" translatable="yes">&lt;b&gt;Reduced Resources&lt;/b&gt;</property>
132 +                 <property name="use_underline">False</property>
133 +                 <property name="use_markup">True</property>
134 +                 <property name="justify">GTK_JUSTIFY_LEFT</property>
135 +                 <property name="wrap">False</property>
136 +                 <property name="selectable">False</property>
137 +                 <property name="xalign">0</property>
138 +                 <property name="yalign">0.5</property>
139 +                 <property name="xpad">0</property>
140 +                 <property name="ypad">0</property>
141 +               </widget>
142 +               <packing>
143 +                 <property name="padding">0</property>
144 +                 <property name="expand">False</property>
145 +                 <property name="fill">False</property>
146 +               </packing>
147 +             </child>
148 +
149 +             <child>
150 +               <widget class="GtkHBox" id="hbox16">
151 +                 <property name="visible">True</property>
152 +                 <property name="homogeneous">False</property>
153 +                 <property name="spacing">0</property>
154 +
155 +                 <child>
156 +                   <widget class="GtkVBox" id="vbox10">
157 +                     <property name="visible">True</property>
158 +                     <property name="homogeneous">False</property>
159 +                     <property name="spacing">12</property>
160 +
161 +                     <child>
162 +                       <widget class="GtkCheckButton" id="reduced-mode-checkbutton">
163 +                         <property name="visible">True</property>
164 +                         <property name="can_focus">True</property>
165 +                         <property name="label" translatable="yes">_Use wireframe move/resize</property>
166 +                         <property name="use_underline">True</property>
167 +                         <property name="relief">GTK_RELIEF_NORMAL</property>
168 +                         <property name="focus_on_click">True</property>
169 +                         <property name="active">False</property>
170 +                         <property name="inconsistent">False</property>
171 +                         <property name="draw_indicator">True</property>
172 +                       </widget>
173 +                       <packing>
174 +                         <property name="padding">0</property>
175 +                         <property name="expand">False</property>
176 +                         <property name="fill">False</property>
177 +                       </packing>
178 +                     </child>
179 +                   </widget>
180 +                   <packing>
181 +                     <property name="padding">18</property>
182 +                     <property name="expand">True</property>
183 +                     <property name="fill">True</property>
184 +                   </packing>
185 +                 </child>
186 +               </widget>
187 +               <packing>
188 +                 <property name="padding">0</property>
189 +                 <property name="expand">True</property>
190 +                 <property name="fill">True</property>
191 +               </packing>
192 +             </child>
193 +           </widget>
194 +           <packing>
195 +             <property name="padding">0</property>
196 +             <property name="expand">True</property>
197 +             <property name="fill">True</property>
198 +           </packing>
199 +         </child>
200 +
201 +         <child>
202             <widget class="GtkVBox" id="vbox5">
203               <property name="visible">True</property>
204               <property name="homogeneous">False</property>
205 diff -Nuard control-center-2.4.0.orig/po/control-center-2.0.pot control-center-2.4.0/po/control-center-2.0.pot
206 --- control-center-2.4.0.orig/po/control-center-2.0.pot 2003-08-27 21:02:41.000000000 +0200
207 +++ control-center-2.4.0/po/control-center-2.0.pot      2003-12-05 00:31:19.744571640 +0100
208 @@ -2305,6 +2305,14 @@
209  msgid "_Select windows when the mouse moves over them"
210  msgstr ""
211  
212 +#: capplets/windows/gnome-window-properties.glade.h:7
213 +msgid "<b>Reduced Resources</b>"
214 +msgstr ""
215 +
216 +#: capplets/windows/gnome-window-properties.glade.h:7
217 +msgid "_Use wireframe move/resize"
218 +msgstr ""
219 +
220  #: capplets/windows/window-properties.desktop.in.h:1
221  msgid "Window Properties"
222  msgstr ""
223 diff -Nuard control-center-2.4.0.orig/po/pl.po control-center-2.4.0/po/pl.po
224 --- control-center-2.4.0.orig/po/pl.po  2003-09-02 21:34:47.000000000 +0200
225 +++ control-center-2.4.0/po/pl.po       2003-12-05 00:33:08.050106696 +0100
226 @@ -2420,6 +2420,14 @@
227  msgid "_Select windows when the mouse moves over them"
228  msgstr "_Zaznaczanie okna po umieszczeniu wskaźnika nad jego obszarem"
229  
230 +#: capplets/windows/gnome-window-properties.glade.h:7
231 +msgid "<b>Reduced Resources</b>"
232 +msgstr "Zredukowane zasoby"
233 +
234 +#: capplets/windows/gnome-window-properties.glade.h:7
235 +msgid "_Use wireframe move/resize"
236 +msgstr "_Wyświetlaj tylko ramkę podczas przenoszenia okna"
237 +
238  #: capplets/windows/window-properties.desktop.in.h:1
239  msgid "Window Properties"
240  msgstr "Ustawienia okien"
This page took 0.055943 seconds and 2 git commands to generate.