Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-terms/gnome-terminal/files: gnome-terminal-3.12.0-fallback-title-2.patch gnome-terminal-3.12.0-fallback-title-1.patch gnome-terminal-3.12.0-remove-set-title-feature-1.patch gnome-terminal-3.12.0-appmenu-parameter.patch gnome-terminal-3.12.0-remove-set-title-feature-0.patch gnome-terminal-3.12.0-remove-set-title-feature-2.patch gnome-terminal-3.12.0-remove-set-title-feature-3.patch
Date: Mon, 28 Apr 2014 06:57:47
Message-Id: 20140428065743.7B5B02004B@flycatcher.gentoo.org
1 eva 14/04/28 06:57:43
2
3 Added: gnome-terminal-3.12.0-fallback-title-2.patch
4 gnome-terminal-3.12.0-fallback-title-1.patch
5 gnome-terminal-3.12.0-remove-set-title-feature-1.patch
6 gnome-terminal-3.12.0-appmenu-parameter.patch
7 gnome-terminal-3.12.0-remove-set-title-feature-0.patch
8 gnome-terminal-3.12.0-remove-set-title-feature-2.patch
9 gnome-terminal-3.12.0-remove-set-title-feature-3.patch
10 Log:
11 Version bump for Gnome 3.12. Add gnome-shell USE flag local description.
12
13 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key C6085806)
14
15 Revision Changes Path
16 1.1 x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-fallback-title-2.patch
17
18 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-fallback-title-2.patch?rev=1.1&view=markup
19 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-fallback-title-2.patch?rev=1.1&content-type=text/plain
20
21 Index: gnome-terminal-3.12.0-fallback-title-2.patch
22 ===================================================================
23 From 0d52fef0ca60483debbdedec43bd07a8e9f76bfa Mon Sep 17 00:00:00 2001
24 From: Christian Persch <chpe@×××××.org>
25 Date: Sun, 20 Apr 2014 20:21:04 +0200
26 Subject: [PATCH 57/61] window: Use fallback tab title for empty terminal title
27
28 https://bugzilla.gnome.org/show_bug.cgi?id=706816
29 ---
30 src/terminal-tabs-menu.c | 4 +++-
31 1 file changed, 3 insertions(+), 1 deletion(-)
32
33 diff --git a/src/terminal-tabs-menu.c b/src/terminal-tabs-menu.c
34 index ed5fc7b..fb2b966 100644
35 --- a/src/terminal-tabs-menu.c
36 +++ b/src/terminal-tabs-menu.c
37 @@ -176,7 +176,9 @@ sync_tab_title (TerminalScreen *screen,
38
39 title = terminal_screen_get_title (screen);
40
41 - g_object_set (action, "label", title, NULL);
42 + g_object_set (action,
43 + "label", title && title[0] ? title : _("Terminal"),
44 + NULL);
45 }
46
47 static void
48 --
49 1.9.0
50
51
52
53
54 1.1 x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-fallback-title-1.patch
55
56 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-fallback-title-1.patch?rev=1.1&view=markup
57 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-fallback-title-1.patch?rev=1.1&content-type=text/plain
58
59 Index: gnome-terminal-3.12.0-fallback-title-1.patch
60 ===================================================================
61 From fe7230e2113510596be5e773f9c1074ed650e858 Mon Sep 17 00:00:00 2001
62 From: Christian Persch <chpe@×××××.org>
63 Date: Sun, 20 Apr 2014 20:21:04 +0200
64 Subject: [PATCH 56/61] window: Use fallback tab title for empty terminal title
65
66 https://bugzilla.gnome.org/show_bug.cgi?id=706816
67 ---
68 src/terminal-tab-label.c | 5 +++--
69 1 file changed, 3 insertions(+), 2 deletions(-)
70
71 diff --git a/src/terminal-tab-label.c b/src/terminal-tab-label.c
72 index 90bab28..a83d94f 100644
73 --- a/src/terminal-tab-label.c
74 +++ b/src/terminal-tab-label.c
75 @@ -75,8 +75,9 @@ sync_tab_label (TerminalScreen *screen,
76 title = terminal_screen_get_title (screen);
77 hbox = gtk_widget_get_parent (label);
78
79 - gtk_label_set_text (GTK_LABEL (label), title);
80 -
81 + gtk_label_set_text (GTK_LABEL (label),
82 + title && title[0] ? title : _("Terminal"));
83 +
84 gtk_widget_set_tooltip_text (hbox, title);
85 }
86
87 --
88 1.9.0
89
90
91
92
93 1.1 x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-1.patch
94
95 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-1.patch?rev=1.1&view=markup
96 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-1.patch?rev=1.1&content-type=text/plain
97
98 Index: gnome-terminal-3.12.0-remove-set-title-feature-1.patch
99 ===================================================================
100 From 9bbe19e98f62aa3c9020913a3a5a8080a5177505 Mon Sep 17 00:00:00 2001
101 From: Debarshi Ray <debarshir@×××××.org>
102 Date: Wed, 16 Apr 2014 15:04:38 +0200
103 Subject: [PATCH 47/61] Remove the action and shortcut to set a static title
104 from the menus
105
106 Setting a static title does not work because there is no code
107 listening to changes in TerminalScreen:description. The title is
108 dynamically set via escape sequences, usually from a suitable
109 PROMPT_COMMAND, which is noticed by VteTerminal.
110
111 If you want to customize the title of a particular terminal, please use
112 the escape sequence. This is what you had to use before, anyway.
113
114 https://bugzilla.gnome.org/show_bug.cgi?id=724110
115 ---
116 src/migration.c | 1 -
117 src/org.gnome.Terminal.gschema.xml | 4 --
118 src/terminal-accels.c | 2 -
119 src/terminal-window.c | 88 --------------------------------------
120 src/terminal.xml | 3 --
121 5 files changed, 98 deletions(-)
122
123 diff --git a/src/migration.c b/src/migration.c
124 index 7a7a773..b626ec5 100644
125 --- a/src/migration.c
126 +++ b/src/migration.c
127 @@ -541,7 +541,6 @@ migrate_accels (GSettings *global_settings,
128 { "zoom_in", "zoom-in" },
129 { "zoom_out", "zoom-out" },
130 { "zoom_normal", "zoom-normal" },
131 - { "set_window_title", "set-terminal-title" },
132 { "reset", "reset" },
133 { "reset_and_clear", "reset-and-clear" },
134 { "prev_tab", "prev-tab" },
135 diff --git a/src/org.gnome.Terminal.gschema.xml b/src/org.gnome.Terminal.gschema.xml
136 index 1b926a6..be8f104 100644
137 --- a/src/org.gnome.Terminal.gschema.xml
138 +++ b/src/org.gnome.Terminal.gschema.xml
139 @@ -374,10 +374,6 @@
140 <default>'disabled'</default>
141 <summary>Keyboard shortcut to toggle the visibility of the menubar</summary>
142 </key>
143 - <key name="set-terminal-title" type="s">
144 - <default>'disabled'</default>
145 - <summary>Keyboard shortcut to set the terminal title</summary>
146 - </key>
147 <key name="reset" type="s">
148 <default>'disabled'</default>
149 <summary>Keyboard shortcut to reset the terminal</summary>
150 diff --git a/src/terminal-accels.c b/src/terminal-accels.c
151 index a3a8034..65d56bd 100644
152 --- a/src/terminal-accels.c
153 +++ b/src/terminal-accels.c
154 @@ -70,7 +70,6 @@
155 #define KEY_RESET_AND_CLEAR "reset-and-clear"
156 #define KEY_RESET "reset"
157 #define KEY_SAVE_CONTENTS "save-contents"
158 -#define KEY_SET_TERMINAL_TITLE "set-terminal-title"
159 #define KEY_TOGGLE_MENUBAR "toggle-menubar"
160 #define KEY_ZOOM_IN "zoom-in"
161 #define KEY_ZOOM_NORMAL "zoom-normal"
162 @@ -144,7 +143,6 @@ static KeyEntry view_entries[] = {
163 };
164
165 static KeyEntry terminal_entries[] = {
166 - ENTRY (N_("Set Title"), KEY_SET_TERMINAL_TITLE, "set-title", NULL, NULL ),
167 ENTRY (N_("Reset"), KEY_RESET, "reset", "b", "false"),
168 ENTRY (N_("Reset and Clear"), KEY_RESET_AND_CLEAR, "reset", "b", "true" ),
169 };
170 diff --git a/src/terminal-window.c b/src/terminal-window.c
171 index 9c209f7..93145ac 100644
172 --- a/src/terminal-window.c
173 +++ b/src/terminal-window.c
174 @@ -179,8 +179,6 @@ static void view_zoom_out_callback (GtkAction *action,
175 TerminalWindow *window);
176 static void view_zoom_normal_callback (GtkAction *action,
177 TerminalWindow *window);
178 -static void terminal_set_title_callback (GtkAction *action,
179 - TerminalWindow *window);
180 static void terminal_add_encoding_callback (GtkAction *action,
181 TerminalWindow *window);
182 static void terminal_reset_callback (GtkAction *action,
183 @@ -718,88 +716,6 @@ action_move_tab_cb (GSimpleAction *action,
184 }
185
186 static void
187 -terminal_set_title_dialog_response_cb (GtkWidget *dialog,
188 - int response,
189 - TerminalScreen *screen)
190 -{
191 - if (response == GTK_RESPONSE_OK)
192 - {
193 - GtkEntry *entry;
194 - const char *text;
195 -
196 - entry = GTK_ENTRY (g_object_get_data (G_OBJECT (dialog), "title-entry"));
197 - text = gtk_entry_get_text (entry);
198 - terminal_screen_set_user_title (screen, text);
199 - }
200 -
201 - gtk_widget_destroy (dialog);
202 -}
203 -
204 -static void
205 -action_set_title_cb (GSimpleAction *action,
206 - GVariant *parameter,
207 - gpointer user_data)
208 -{
209 - TerminalWindow *window = user_data;
210 - TerminalWindowPrivate *priv = window->priv;
211 - GtkWidget *dialog, *message_area, *hbox, *label, *entry;
212 -
213 - if (priv->active_screen == NULL)
214 - return;
215 -
216 - /* FIXME: hook the screen up so this dialogue closes if the terminal screen closes */
217 -
218 - dialog = gtk_message_dialog_new (GTK_WINDOW (window),
219 - GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
220 - GTK_MESSAGE_OTHER,
221 - GTK_BUTTONS_OK_CANCEL,
222 - "%s", "");
223 -
224 - gtk_window_set_title (GTK_WINDOW (dialog), _("Set Title"));
225 - gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
226 - gtk_window_set_role (GTK_WINDOW (dialog), "gnome-terminal-change-title");
227 - gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
228 - /* Alternative button order was set automatically by GtkMessageDialog */
229 -
230 - g_signal_connect (dialog, "response",
231 - G_CALLBACK (terminal_set_title_dialog_response_cb), priv->active_screen);
232 - g_signal_connect (dialog, "delete-event",
233 - G_CALLBACK (terminal_util_dialog_response_on_delete), NULL);
234 -
235 - message_area = gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (dialog));
236 - gtk_container_foreach (GTK_CONTAINER (message_area), (GtkCallback) gtk_widget_hide, NULL);
237 -
238 - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
239 - gtk_box_pack_start (GTK_BOX (message_area), hbox, FALSE, FALSE, 0);
240 -
241 - label = gtk_label_new_with_mnemonic (_("_Title:"));
242 - gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
243 - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
244 -
245 - entry = gtk_entry_new ();
246 - gtk_entry_set_width_chars (GTK_ENTRY (entry), 32);
247 - gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
248 - gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
249 - gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 0);
250 - gtk_widget_show_all (hbox);
251 -
252 - gtk_widget_grab_focus (entry);
253 - gtk_entry_set_text (GTK_ENTRY (entry), terminal_screen_get_user_title (priv->active_screen));
254 - gtk_editable_select_region (GTK_EDITABLE (entry), 0, -1);
255 - g_object_set_data (G_OBJECT (dialog), "title-entry", entry);
256 -
257 - gtk_window_present (GTK_WINDOW (dialog));
258 -}
259 -
260 -static void
261 -terminal_set_title_callback (GtkAction *action,
262 - TerminalWindow *window)
263 -{
264 - g_action_activate (g_action_map_lookup_action (G_ACTION_MAP (window), "set-title"),
265 - NULL);
266 -}
267 -
268 -static void
269 action_zoom_cb (GSimpleAction *action,
270 GVariant *parameter,
271 gpointer user_data)
272 @@ -2423,7 +2339,6 @@ terminal_window_init (TerminalWindow *window)
273 { "reset", action_reset_cb, "b", NULL, NULL },
274 { "switch-tab", action_switch_tab_cb, "i", NULL, NULL },
275 { "move-tab", action_move_tab_cb, "i", NULL, NULL },
276 - { "set-title", action_set_title_cb, NULL, NULL, NULL },
277 { "zoom", action_zoom_cb, "i", NULL, NULL },
278 { "detach-tab", action_detach_tab_cb, NULL, NULL, NULL },
279 { "find", action_find_cb, "s", NULL, NULL },
280 @@ -2528,9 +2443,6 @@ terminal_window_init (TerminalWindow *window)
281
282 /* Terminal menu */
283 { "TerminalProfiles", NULL, N_("Change _Profile") },
284 - { "TerminalSetTitle", NULL, N_("_Set Title…"), NULL,
285 - NULL,
286 - G_CALLBACK (terminal_set_title_callback) },
287 { "TerminalSetEncoding", NULL, N_("Set _Character Encoding") },
288 { "TerminalReset", NULL, N_("_Reset"), NULL,
289 NULL,
290 diff --git a/src/terminal.xml b/src/terminal.xml
291 index 6743393..72cef17 100644
292 --- a/src/terminal.xml
293 +++ b/src/terminal.xml
294 @@ -46,7 +46,6 @@
295 </menu>
296 <menu action="Terminal">
297 <menu action="TerminalProfiles" />
298 - <menuitem action="TerminalSetTitle" />
299 <menu action="TerminalSetEncoding" >
300 <placeholder name="EncodingsPH" />
301 <separator />
302 @@ -100,8 +99,6 @@
303 <menuitem action="TabsMoveLeft"/>
304 <menuitem action="TabsMoveRight"/>
305 <separator />
306 - <menuitem action="TerminalSetTitle" />
307 - <separator />
308 <menuitem action="FileCloseTab"/>
309 </popup>
310 </ui>
311 --
312 1.9.0
313
314
315
316
317 1.1 x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-appmenu-parameter.patch
318
319 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-appmenu-parameter.patch?rev=1.1&view=markup
320 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-appmenu-parameter.patch?rev=1.1&content-type=text/plain
321
322 Index: gnome-terminal-3.12.0-appmenu-parameter.patch
323 ===================================================================
324 From d58bc01a2e891e31e11f03eb0d6ae9b5ff260b2b Mon Sep 17 00:00:00 2001
325 From: Christian Persch <chpe@×××××.org>
326 Date: Mon, 24 Mar 2014 15:16:22 +0100
327 Subject: [PATCH 02/61] appmenu: Fix action parameter
328
329 https://bugzilla.gnome.org/show_bug.cgi?id=726942
330 ---
331 src/terminal-appmenu.ui | 2 +-
332 1 file changed, 1 insertion(+), 1 deletion(-)
333
334 diff --git a/src/terminal-appmenu.ui b/src/terminal-appmenu.ui
335 index 148c640..01ff5a8 100644
336 --- a/src/terminal-appmenu.ui
337 +++ b/src/terminal-appmenu.ui
338 @@ -21,7 +21,7 @@
339 <item>
340 <attribute name="label" translatable="yes">_New Terminal</attribute>
341 <attribute name="action">win.new-terminal</attribute>
342 - <attribute name="target">'default'</attribute>
343 + <attribute name="target" type="(ss)">('default','default')</attribute>
344 </item>
345 </section>
346 <section>
347 --
348 1.9.0
349
350
351
352
353 1.1 x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-0.patch
354
355 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-0.patch?rev=1.1&view=markup
356 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-0.patch?rev=1.1&content-type=text/plain
357
358 Index: gnome-terminal-3.12.0-remove-set-title-feature-0.patch
359 ===================================================================
360 From de0dc7c2649c42e2aa02a66e4be27d262b34452d Mon Sep 17 00:00:00 2001
361 From: Debarshi Ray <debarshir@×××××.org>
362 Date: Fri, 11 Apr 2014 15:52:23 +0200
363 Subject: [PATCH 45/61] Remove unused code to create terminals with custom
364 titles
365
366 Irrespective of how you create a new terminal (over D-Bus using
367 $bindir/gnome-terminal, ctrl+shift n, or the application menu), the
368 code to set a custom title during construction was unused. Possibly
369 as a result of f27bf0135a2d18ba22158d28bf1f8c5f6ec066c8
370
371 https://bugzilla.gnome.org/show_bug.cgi?id=724110
372 ---
373 src/terminal-app.c | 3 +--
374 src/terminal-app.h | 1 -
375 src/terminal-gdbus.c | 6 ++----
376 src/terminal-screen.c | 4 ----
377 src/terminal-screen.h | 1 -
378 src/terminal-window.c | 2 +-
379 6 files changed, 4 insertions(+), 13 deletions(-)
380
381 diff --git a/src/terminal-app.c b/src/terminal-app.c
382 index 9ded6fc..57a6f15 100644
383 --- a/src/terminal-app.c
384 +++ b/src/terminal-app.c
385 @@ -527,7 +527,6 @@ terminal_app_new_terminal (TerminalApp *app,
386 TerminalWindow *window,
387 GSettings *profile,
388 char **override_command,
389 - const char *title,
390 const char *working_dir,
391 char **child_env,
392 double zoom)
393 @@ -537,7 +536,7 @@ terminal_app_new_terminal (TerminalApp *app,
394 g_return_val_if_fail (TERMINAL_IS_APP (app), NULL);
395 g_return_val_if_fail (TERMINAL_IS_WINDOW (window), NULL);
396
397 - screen = terminal_screen_new (profile, override_command, title,
398 + screen = terminal_screen_new (profile, override_command,
399 working_dir, child_env, zoom);
400
401 terminal_window_add_screen (window, screen, -1);
402 diff --git a/src/terminal-app.h b/src/terminal-app.h
403 index 6da6036..9502845 100644
404 --- a/src/terminal-app.h
405 +++ b/src/terminal-app.h
406 @@ -75,7 +75,6 @@ TerminalScreen *terminal_app_new_terminal (TerminalApp *app,
407 TerminalWindow *window,
408 GSettings *profile,
409 char **override_command,
410 - const char *title,
411 const char *working_dir,
412 char **child_env,
413 double zoom);
414 diff --git a/src/terminal-gdbus.c b/src/terminal-gdbus.c
415 index b801b9e..7b68a85 100644
416 --- a/src/terminal-gdbus.c
417 +++ b/src/terminal-gdbus.c
418 @@ -368,7 +368,7 @@ terminal_factory_impl_create_instance (TerminalFactory *factory,
419 TerminalObjectSkeleton *skeleton;
420 char *object_path;
421 GSettings *profile = NULL;
422 - const char *profile_uuid, *title;
423 + const char *profile_uuid;
424 gboolean zoom_set = FALSE;
425 gdouble zoom = 1.0;
426 guint window_id;
427 @@ -456,12 +456,10 @@ terminal_factory_impl_create_instance (TerminalFactory *factory,
428
429 g_assert (window != NULL);
430
431 - if (!g_variant_lookup (options, "title", "&s", &title))
432 - title = NULL;
433 if (g_variant_lookup (options, "zoom", "d", &zoom))
434 zoom_set = TRUE;
435
436 - screen = terminal_screen_new (profile, NULL, title, NULL, NULL,
437 + screen = terminal_screen_new (profile, NULL, NULL, NULL,
438 zoom_set ? zoom : 1.0);
439 terminal_window_add_screen (window, screen, -1);
440 terminal_window_switch_screen (window, screen);
441 diff --git a/src/terminal-screen.c b/src/terminal-screen.c
442 index c504881..bb05924 100644
443 --- a/src/terminal-screen.c
444 +++ b/src/terminal-screen.c
445 @@ -622,7 +622,6 @@ terminal_screen_finalize (GObject *object)
446 TerminalScreen *
447 terminal_screen_new (GSettings *profile,
448 char **override_command,
449 - const char *title,
450 const char *working_dir,
451 char **child_env,
452 double zoom)
453 @@ -643,9 +642,6 @@ terminal_screen_new (GSettings *profile,
454 g_settings_get_int (profile, TERMINAL_PROFILE_DEFAULT_SIZE_ROWS_KEY));
455 }
456
457 - if (title)
458 - terminal_screen_set_user_title (screen, title);
459 -
460 priv->initial_working_directory = g_strdup (working_dir);
461
462 if (override_command)
463 diff --git a/src/terminal-screen.h b/src/terminal-screen.h
464 index d0341c8..2a0d391 100644
465 --- a/src/terminal-screen.h
466 +++ b/src/terminal-screen.h
467 @@ -76,7 +76,6 @@ const char *terminal_screen_get_uuid (TerminalScreen *screen);
468
469 TerminalScreen *terminal_screen_new (GSettings *profile,
470 char **override_command,
471 - const char *title,
472 const char *working_dir,
473 char **child_env,
474 double zoom);
475 diff --git a/src/terminal-window.c b/src/terminal-window.c
476 index 0a611a7..9c209f7 100644
477 --- a/src/terminal-window.c
478 +++ b/src/terminal-window.c
479 @@ -400,7 +400,7 @@ action_new_terminal_cb (GSimpleAction *action,
480
481 new_working_directory = terminal_screen_get_current_dir (priv->active_screen);
482 terminal_app_new_terminal (app, window, profile,
483 - NULL, NULL,
484 + NULL,
485 new_working_directory,
486 terminal_screen_get_initial_environment (priv->active_screen),
487 1.0);
488 --
489 1.9.0
490
491
492
493
494 1.1 x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-2.patch
495
496 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-2.patch?rev=1.1&view=markup
497 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-2.patch?rev=1.1&content-type=text/plain
498
499 Index: gnome-terminal-3.12.0-remove-set-title-feature-2.patch
500 ===================================================================
501 From e9cb8fea14a849704074c5d69f173bcf4dc2fb27 Mon Sep 17 00:00:00 2001
502 From: Debarshi Ray <debarshir@×××××.org>
503 Date: Wed, 16 Apr 2014 16:01:56 +0200
504 Subject: [PATCH 48/61] Remove the static title setting from profile
505 preferences
506
507 The static title setting does not work because TerminalWindow hardcodes
508 the title as "Terminal" in the absence of VteTerminal:window-title,
509 which is set dynamically via escape sequences. Usually the escape
510 sequence is emitted from a suitable PROMPT_COMMAND. You can do the same
511 if you want a customized title.
512
513 https://bugzilla.gnome.org/show_bug.cgi?id=724110
514 ---
515 src/migration.c | 3 --
516 src/org.gnome.Terminal.gschema.xml | 5 ---
517 src/profile-editor.c | 3 --
518 src/profile-preferences.ui | 86 --------------------------------------
519 src/terminal-schemas.h | 1 -
520 src/terminal-screen.c | 9 ----
521 6 files changed, 107 deletions(-)
522
523 diff --git a/src/migration.c b/src/migration.c
524 index b626ec5..ecd1493 100644
525 --- a/src/migration.c
526 +++ b/src/migration.c
527 @@ -86,7 +86,6 @@ enum {
528 #define KEY_SCROLL_ON_KEYSTROKE "scroll_on_keystroke"
529 #define KEY_SCROLL_ON_OUTPUT "scroll_on_output"
530 #define KEY_SILENT_BELL "silent_bell"
531 -#define KEY_TITLE "title"
532 #define KEY_UPDATE_RECORDS "update_records"
533 #define KEY_USE_CUSTOM_COMMAND "use_custom_command"
534 #define KEY_USE_CUSTOM_DEFAULT_SIZE "use_custom_default_size"
535 @@ -395,8 +394,6 @@ migrate_profile (TerminalSettingsList *list,
536 migrate_bool (client, path, KEY_BOLD_COLOR_SAME_AS_FG,
537 settings, TERMINAL_PROFILE_BOLD_COLOR_SAME_AS_FG_KEY,
538 FALSE);
539 - migrate_string (client, path, KEY_TITLE,
540 - settings, TERMINAL_PROFILE_TITLE_KEY);
541 migrate_bool (client, path, KEY_ALLOW_BOLD,
542 settings, TERMINAL_PROFILE_ALLOW_BOLD_KEY,
543 FALSE);
544 diff --git a/src/org.gnome.Terminal.gschema.xml b/src/org.gnome.Terminal.gschema.xml
545 index be8f104..af7f418 100644
546 --- a/src/org.gnome.Terminal.gschema.xml
547 +++ b/src/org.gnome.Terminal.gschema.xml
548 @@ -116,11 +116,6 @@
549 <summary>Whether bold text should use the same color as normal text</summary>
550 <description>If true, boldface text will be rendered using the same color as normal text.</description>
551 </key>
552 - <key name="title" type="s">
553 - <default l10n="messages" context="title">'Terminal'</default>
554 - <summary>Title for terminal</summary>
555 - <description>Title to display for the terminal window or tab. This title may be replaced by or combined with the title set by the application inside the terminal, depending on the title_mode setting.</description>
556 - </key>
557 <key name="allow-bold" type="b">
558 <default>true</default>
559 <summary>Whether to allow bold text</summary>
560 diff --git a/src/profile-editor.c b/src/profile-editor.c
561 index 4bc1f7f..70a1afa 100644
562 --- a/src/profile-editor.c
563 +++ b/src/profile-editor.c
564 @@ -1014,9 +1014,6 @@ terminal_profile_edit (GSettings *profile,
565 gtk_builder_get_object (builder,
566 "system-font-checkbutton"),
567 "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
568 - g_settings_bind (profile, TERMINAL_PROFILE_TITLE_KEY,
569 - gtk_builder_get_object (builder, "title-entry"), "text",
570 - G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
571 g_settings_bind (profile, TERMINAL_PROFILE_UPDATE_RECORDS_KEY,
572 gtk_builder_get_object (builder,
573 "update-records-checkbutton"),
574 diff --git a/src/profile-preferences.ui b/src/profile-preferences.ui
575 index 02889a3..e730681 100644
576 --- a/src/profile-preferences.ui
577 +++ b/src/profile-preferences.ui
578 @@ -579,92 +579,6 @@
579 <property name="border_width">12</property>
580 <property name="spacing">18</property>
581 <child>
582 - <object class="GtkVBox" id="vbox79">
583 - <property name="visible">True</property>
584 - <property name="can_focus">False</property>
585 - <property name="spacing">6</property>
586 - <child>
587 - <object class="GtkLabel" id="label33">
588 - <property name="visible">True</property>
589 - <property name="can_focus">False</property>
590 - <property name="xalign">0</property>
591 - <property name="label" translatable="yes">Title</property>
592 - <attributes>
593 - <attribute name="weight" value="bold"/>
594 - </attributes>
595 - </object>
596 - <packing>
597 - <property name="expand">False</property>
598 - <property name="fill">False</property>
599 - <property name="position">0</property>
600 - </packing>
601 - </child>
602 - <child>
603 - <object class="GtkAlignment" id="alignment10108">
604 - <property name="visible">True</property>
605 - <property name="can_focus">False</property>
606 - <property name="left_padding">12</property>
607 - <child>
608 - <object class="GtkVBox" id="vbox93">
609 - <property name="visible">True</property>
610 - <property name="can_focus">False</property>
611 - <property name="spacing">6</property>
612 - <child>
613 - <object class="GtkHBox" id="hbox137">
614 - <property name="visible">True</property>
615 - <property name="can_focus">False</property>
616 - <property name="spacing">12</property>
617 - <child>
618 - <object class="GtkLabel" id="title-entry-label">
619 - <property name="visible">True</property>
620 - <property name="can_focus">False</property>
621 - <property name="xalign">0</property>
622 - <property name="label" translatable="yes">_Title:</property>
623 - <property name="use_underline">True</property>
624 - <property name="justify">center</property>
625 - <property name="mnemonic_widget">title-entry</property>
626 - </object>
627 - <packing>
628 - <property name="expand">False</property>
629 - <property name="fill">False</property>
630 - <property name="position">0</property>
631 - </packing>
632 - </child>
633 - <child>
634 - <object class="GtkEntry" id="title-entry">
635 - <property name="visible">True</property>
636 - <property name="can_focus">True</property>
637 - </object>
638 - <packing>
639 - <property name="expand">True</property>
640 - <property name="fill">True</property>
641 - <property name="position">1</property>
642 - </packing>
643 - </child>
644 - </object>
645 - <packing>
646 - <property name="expand">False</property>
647 - <property name="fill">True</property>
648 - <property name="position">0</property>
649 - </packing>
650 - </child>
651 - </object>
652 - </child>
653 - </object>
654 - <packing>
655 - <property name="expand">False</property>
656 - <property name="fill">True</property>
657 - <property name="position">1</property>
658 - </packing>
659 - </child>
660 - </object>
661 - <packing>
662 - <property name="expand">False</property>
663 - <property name="fill">True</property>
664 - <property name="position">0</property>
665 - </packing>
666 - </child>
667 - <child>
668 <object class="GtkVBox" id="vbox80">
669 <property name="visible">True</property>
670 <property name="can_focus">False</property>
671 diff --git a/src/terminal-schemas.h b/src/terminal-schemas.h
672 index 7673da1..0bddcab 100644
673 --- a/src/terminal-schemas.h
674 +++ b/src/terminal-schemas.h
675 @@ -56,7 +56,6 @@ G_BEGIN_DECLS
676 #define TERMINAL_PROFILE_SCROLLBAR_POLICY_KEY "scrollbar-policy"
677 #define TERMINAL_PROFILE_SCROLL_ON_KEYSTROKE_KEY "scroll-on-keystroke"
678 #define TERMINAL_PROFILE_SCROLL_ON_OUTPUT_KEY "scroll-on-output"
679 -#define TERMINAL_PROFILE_TITLE_KEY "title"
680 #define TERMINAL_PROFILE_UPDATE_RECORDS_KEY "update-records"
681 #define TERMINAL_PROFILE_USE_CUSTOM_COMMAND_KEY "use-custom-command"
682 #define TERMINAL_PROFILE_USE_CUSTOM_DEFAULT_SIZE_KEY "use-custom-default-size"
683 diff --git a/src/terminal-screen.c b/src/terminal-screen.c
684 index bb05924..d03ed80 100644
685 --- a/src/terminal-screen.c
686 +++ b/src/terminal-screen.c
687 @@ -717,14 +717,11 @@ char *
688 terminal_screen_get_description (TerminalScreen *screen)
689 {
690 TerminalScreenPrivate *priv = screen->priv;
691 - gs_free char *title_string = NULL;
692 const char *title;
693
694 /* use --title argument if one was supplied, otherwise ask the profile */
695 if (priv->title)
696 title = priv->title;
697 - else
698 - title = title_string = g_settings_get_string (priv->profile, TERMINAL_PROFILE_TITLE_KEY);
699
700 return g_strdup_printf ("%s — %d",
701 title && title[0] ? title : _("Terminal"),
702 @@ -772,12 +769,6 @@ terminal_screen_profile_changed_cb (GSettings *profile,
703 vte_terminal_set_cjk_ambiguous_width (vte_terminal, (int) width);
704 }
705
706 - if (!prop_name ||
707 - prop_name == I_(TERMINAL_PROFILE_TITLE_KEY))
708 - {
709 - g_object_notify (object, "description");
710 - }
711 -
712 if (gtk_widget_get_realized (GTK_WIDGET (screen)) &&
713 (!prop_name ||
714 prop_name == I_(TERMINAL_PROFILE_USE_SYSTEM_FONT_KEY) ||
715 --
716 1.9.0
717
718
719
720
721 1.1 x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-3.patch
722
723 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-3.patch?rev=1.1&view=markup
724 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/gnome-terminal/files/gnome-terminal-3.12.0-remove-set-title-feature-3.patch?rev=1.1&content-type=text/plain
725
726 Index: gnome-terminal-3.12.0-remove-set-title-feature-3.patch
727 ===================================================================
728 From 3bb41272b7509a16ec2a5cd93e44f73d5743b626 Mon Sep 17 00:00:00 2001
729 From: Debarshi Ray <debarshir@×××××.org>
730 Date: Wed, 16 Apr 2014 17:39:39 +0200
731 Subject: [PATCH 49/61] screen: Remove unused description and user_title API
732
733 These were used by various parts of the static title code, which has
734 now been removed.
735
736 https://bugzilla.gnome.org/show_bug.cgi?id=724110
737 ---
738 src/terminal-screen.c | 63 ---------------------------------------------------
739 src/terminal-screen.h | 6 -----
740 2 files changed, 69 deletions(-)
741
742 diff --git a/src/terminal-screen.c b/src/terminal-screen.c
743 index d03ed80..e35914c 100644
744 --- a/src/terminal-screen.c
745 +++ b/src/terminal-screen.c
746 @@ -77,7 +77,6 @@ struct _TerminalScreenPrivate
747 GSettings *profile; /* never NULL */
748 guint profile_changed_id;
749 guint profile_forgotten_id;
750 - char *title;
751 char *initial_working_directory;
752 char **initial_env;
753 char **override_command;
754 @@ -102,7 +101,6 @@ enum {
755 PROP_ICON_TITLE,
756 PROP_ICON_TITLE_SET,
757 PROP_TITLE,
758 - PROP_DESCRIPTION,
759 PROP_INITIAL_ENVIRONMENT
760 };
761
762 @@ -390,9 +388,6 @@ terminal_screen_get_property (GObject *object,
763 case PROP_TITLE:
764 g_value_set_string (value, terminal_screen_get_title (screen));
765 break;
766 - case PROP_DESCRIPTION:
767 - g_value_take_string (value, terminal_screen_get_description (screen));
768 - break;
769 default:
770 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
771 break;
772 @@ -418,7 +413,6 @@ terminal_screen_set_property (GObject *object,
773 case PROP_ICON_TITLE:
774 case PROP_ICON_TITLE_SET:
775 case PROP_TITLE:
776 - case PROP_DESCRIPTION:
777 /* not writable */
778 default:
779 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
780 @@ -517,13 +511,6 @@ terminal_screen_class_init (TerminalScreenClass *klass)
781 NULL,
782 G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
783
784 - g_object_class_install_property (object_class,
785 - PROP_DESCRIPTION,
786 - g_param_spec_string ("description", NULL, NULL,
787 - NULL,
788 - G_PARAM_READABLE |
789 - G_PARAM_STATIC_STRINGS));
790 -
791 g_object_class_install_property
792 (object_class,
793 PROP_INITIAL_ENVIRONMENT,
794 @@ -606,7 +593,6 @@ terminal_screen_finalize (GObject *object)
795
796 terminal_screen_set_profile (screen, NULL);
797
798 - g_free (priv->title);
799 g_free (priv->initial_working_directory);
800 g_strfreev (priv->override_command);
801 g_strfreev (priv->initial_env);
802 @@ -713,21 +699,6 @@ terminal_screen_get_icon_title_set (TerminalScreen *screen)
803 return vte_terminal_get_icon_title (VTE_TERMINAL (screen)) != NULL;
804 }
805
806 -char *
807 -terminal_screen_get_description (TerminalScreen *screen)
808 -{
809 - TerminalScreenPrivate *priv = screen->priv;
810 - const char *title;
811 -
812 - /* use --title argument if one was supplied, otherwise ask the profile */
813 - if (priv->title)
814 - title = priv->title;
815 -
816 - return g_strdup_printf ("%s — %d",
817 - title && title[0] ? title : _("Terminal"),
818 - screen->priv->child_pid);
819 -}
820 -
821 static void
822 terminal_screen_profile_changed_cb (GSettings *profile,
823 const char *prop_name,
824 @@ -949,7 +920,6 @@ terminal_screen_set_profile (TerminalScreen *screen,
825 g_object_unref (old_profile);
826
827 g_object_notify (G_OBJECT (screen), "profile");
828 - g_object_notify (G_OBJECT (screen), "description");
829 }
830
831 GSettings*
832 @@ -1359,8 +1329,6 @@ out:
833 g_strfreev (env);
834 free_fd_setup_data (data);
835
836 - g_object_notify (G_OBJECT (screen), "description");
837 -
838 return result;
839 }
840
841 @@ -1543,35 +1511,6 @@ terminal_screen_button_press (GtkWidget *widget,
842 return FALSE;
843 }
844
845 -void
846 -terminal_screen_set_user_title (TerminalScreen *screen,
847 - const char *title)
848 -{
849 - TerminalScreenPrivate *priv = screen->priv;
850 -
851 - g_return_if_fail (TERMINAL_IS_SCREEN (screen));
852 -
853 - if (g_strcmp0 (priv->title, title) == 0)
854 - return;
855 -
856 - g_free (priv->title);
857 - priv->title = title && title[0] ? g_strdup (title) : NULL;
858 -
859 - g_object_notify (G_OBJECT (screen), "description");
860 -}
861 -
862 -const char*
863 -terminal_screen_get_user_title (TerminalScreen *screen)
864 -{
865 - TerminalScreenPrivate *priv;
866 -
867 - g_return_val_if_fail (TERMINAL_IS_SCREEN (screen), NULL);
868 -
869 - priv = screen->priv;
870 -
871 - return priv->title ? priv->title : _("Terminal");
872 -}
873 -
874 /**
875 * terminal_screen_get_current_dir:
876 * @screen:
877 @@ -1629,8 +1568,6 @@ terminal_screen_child_exited (VteTerminal *terminal,
878
879 priv->child_pid = -1;
880
881 - g_object_notify (G_OBJECT (screen), "description");
882 -
883 action = g_settings_get_enum (priv->profile, TERMINAL_PROFILE_EXIT_ACTION_KEY);
884
885 switch (action)
886 diff --git a/src/terminal-screen.h b/src/terminal-screen.h
887 index 2a0d391..96f0a0d 100644
888 --- a/src/terminal-screen.h
889 +++ b/src/terminal-screen.h
890 @@ -100,15 +100,9 @@ void terminal_screen_set_initial_environment (TerminalScreen *screen,
891 char **argv);
892 char ** terminal_screen_get_initial_environment (TerminalScreen *screen);
893
894 -const char *terminal_screen_get_user_title (TerminalScreen *screen);
895 const char* terminal_screen_get_title (TerminalScreen *screen);
896 const char* terminal_screen_get_icon_title (TerminalScreen *screen);
897 gboolean terminal_screen_get_icon_title_set (TerminalScreen *screen);
898 -char * terminal_screen_get_description (TerminalScreen *screen);
899 -
900 -void terminal_screen_set_user_title (TerminalScreen *screen,
901 - const char *text);
902 -
903
904 char *terminal_screen_get_current_dir (TerminalScreen *screen);
905
906 --
907 1.9.0