Merge lp:~larsu/eog/fullscreen-button into lp:~ubuntu-desktop/eog/ubuntu

Proposed by Lars Karlitski
Status: Merged
Merged at revision: 173
Proposed branch: lp:~larsu/eog/fullscreen-button
Merge into: lp:~ubuntu-desktop/eog/ubuntu
Diff against target: 145 lines (+111/-1)
4 files modified
debian/changelog (+2/-0)
debian/patches/0002-Show-traditional-title-bar-in-unity.patch (+1/-1)
debian/patches/Put-Exit-Fullscreen-button-into-toolbar.patch (+107/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~larsu/eog/fullscreen-button
Reviewer Review Type Date Requested Status
Ubuntu Desktop Pending
Review via email: mp+272821@code.launchpad.net

Commit message

* Correctly attribute traditional titlebar patch
* Add debian/patches/Put-Exit-Fullscreen-button-into-toolbar.patch (GNOME #755799)

Description of the change

* Correctly attribute traditional titlebar patch
* Add debian/patches/Put-Exit-Fullscreen-button-into-toolbar.patch (GNOME #755799)

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2015-09-29 11:54:23 +0000
3+++ debian/changelog 2015-09-29 16:47:34 +0000
4@@ -8,6 +8,8 @@
5 * Add debian/patches/0001-Add-a-traditional-menu-bar.patch (LP: #1491699)
6 * Update debian/patches/0002-Show-traditional-title-bar-in-unity.patch:
7 update to make work with menubar patch and use GActionGroup's signals
8+ * Add debian/patches/Put-Exit-Fullscreen-button-into-toolbar.patch
9+ (GNOME #755799)
10
11 -- Lars Uebernickel <lars.uebernickel@ubuntu.com> Tue, 29 Sep 2015 12:30:46 +0200
12
13
14=== modified file 'debian/patches/0002-Show-traditional-title-bar-in-unity.patch'
15--- debian/patches/0002-Show-traditional-title-bar-in-unity.patch 2015-09-29 10:35:24 +0000
16+++ debian/patches/0002-Show-traditional-title-bar-in-unity.patch 2015-09-29 16:47:34 +0000
17@@ -3,7 +3,7 @@
18 Date: Tue, 29 Sep 2015 12:25:29 +0200
19 Subject: [PATCH 2/2] Show traditional title bar in unity
20
21-Based on a patch by Sebastien Bacher <seb128@ubuntu.com>
22+Based on a patch by Iain Lane <iain@orangesquash.org.uk>
23 ---
24 src/eog-window.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++----------
25 1 file changed, 55 insertions(+), 11 deletions(-)
26
27=== added file 'debian/patches/Put-Exit-Fullscreen-button-into-toolbar.patch'
28--- debian/patches/Put-Exit-Fullscreen-button-into-toolbar.patch 1970-01-01 00:00:00 +0000
29+++ debian/patches/Put-Exit-Fullscreen-button-into-toolbar.patch 2015-09-29 16:47:34 +0000
30@@ -0,0 +1,107 @@
31+From c716887f49fd6c2d65f18da6d8784b5e84bb24b6 Mon Sep 17 00:00:00 2001
32+From: Lars Uebernickel <lars.uebernickel@canonical.com>
33+Date: Tue, 29 Sep 2015 18:25:08 +0200
34+Subject: [PATCH] Put "Exit Fullscreen" button into toolbar
35+
36+So that the button has the same background as the toolbar itself.
37+
38+https://bugzilla.gnome.org/show_bug.cgi?id=755799
39+---
40+ data/fullscreen-toolbar.ui | 18 +++++++++++++++++-
41+ src/eog-window.c | 31 +++++--------------------------
42+ 2 files changed, 22 insertions(+), 27 deletions(-)
43+
44+diff --git a/data/fullscreen-toolbar.ui b/data/fullscreen-toolbar.ui
45+index 1d851b7..1f21a4b 100644
46+--- a/data/fullscreen-toolbar.ui
47++++ b/data/fullscreen-toolbar.ui
48+@@ -5,7 +5,7 @@
49+ <object class="GtkToolbar" id="fullscreen_toolbar">
50+ <property name="visible">True</property>
51+ <property name="can_focus">False</property>
52+- <property name="toolbar_style">icons</property>
53++ <property name="toolbar_style">both-horiz</property>
54+ <child>
55+ <object class="GtkToolButton" id="first_button">
56+ <property name="visible">True</property>
57+@@ -226,5 +226,21 @@
58+ <property name="homogeneous">True</property>
59+ </packing>
60+ </child>
61++ <child>
62++ <object class="GtkToolButton" id="exit_fullscreen_button">
63++ <property name="visible">True</property>
64++ <property name="can_focus">False</property>
65++ <property name="label" translatable="yes">_Leave Fullscreen</property>
66++ <property name="use_underline">True</property>
67++ <property name="tooltip_text" translatable="yes">Leave fullscreen mode</property>
68++ <property name="icon_name">view-restore</property>
69++ <property name="halign">end</property>
70++ <property name="is_important">True</property>
71++ </object>
72++ <packing>
73++ <property name="expand">True</property>
74++ <property name="homogeneous">False</property>
75++ </packing>
76++ </child>
77+ </object>
78+ </interface>
79+diff --git a/src/eog-window.c b/src/eog-window.c
80+index 4e3c716..8c25852 100644
81+--- a/src/eog-window.c
82++++ b/src/eog-window.c
83+@@ -1845,28 +1845,6 @@ exit_fullscreen_button_clicked_cb (GtkWidget *button, EogWindow *window)
84+ }
85+
86+ static GtkWidget *
87+-eog_window_get_exit_fullscreen_button (EogWindow *window)
88+-{
89+- GtkWidget *button;
90+- GtkWidget *image;
91+-
92+- button = gtk_button_new_with_mnemonic (_("_Leave Fullscreen"));
93+- image = gtk_image_new_from_icon_name ("view-restore",
94+- GTK_ICON_SIZE_BUTTON);
95+- gtk_button_set_image (GTK_BUTTON (button), image);
96+- gtk_button_set_always_show_image (GTK_BUTTON (button), TRUE);
97+- gtk_widget_set_tooltip_text(button,
98+- _("Leave fullscreen mode"));
99+-
100+-
101+- g_signal_connect (button, "clicked",
102+- G_CALLBACK (exit_fullscreen_button_clicked_cb),
103+- window);
104+-
105+- return button;
106+-}
107+-
108+-static GtkWidget *
109+ eog_window_create_fullscreen_popup (EogWindow *window)
110+ {
111+ GtkWidget *revealer;
112+@@ -1891,10 +1869,10 @@ eog_window_create_fullscreen_popup (EogWindow *window)
113+
114+ gtk_box_pack_start (GTK_BOX (hbox), toolbar, TRUE, TRUE, 0);
115+
116+- g_object_unref (builder);
117+-
118+- button = eog_window_get_exit_fullscreen_button (window);
119+- gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0);
120++ button = GTK_WIDGET (gtk_builder_get_object (builder, "exit_fullscreen_button"));
121++ g_signal_connect (button, "clicked",
122++ G_CALLBACK (exit_fullscreen_button_clicked_cb),
123++ window);
124+
125+ /* Disable timer when the pointer enters the toolbar window. */
126+ g_signal_connect (revealer,
127+@@ -1902,6 +1880,7 @@ eog_window_create_fullscreen_popup (EogWindow *window)
128+ G_CALLBACK (fullscreen_leave_notify_cb),
129+ window);
130+
131++ g_object_unref (builder);
132+ return revealer;
133+ }
134+
135+--
136+2.5.0
137+
138
139=== modified file 'debian/patches/series'
140--- debian/patches/series 2015-09-29 10:35:24 +0000
141+++ debian/patches/series 2015-09-29 16:47:34 +0000
142@@ -1,2 +1,3 @@
143 0001-Add-a-traditional-menu-bar.patch
144 0002-Show-traditional-title-bar-in-unity.patch
145+Put-Exit-Fullscreen-button-into-toolbar.patch

Subscribers

People subscribed via source and target branches

to all changes: