Merge lp:~darkxst/ubuntu/trusty/epiphany-browser/lp1263387 into lp:ubuntu/trusty/epiphany-browser

Proposed by Tim Lunn
Status: Merged
Merge reported by: Andrew Starr-Bochicchio
Merged at revision: not available
Proposed branch: lp:~darkxst/ubuntu/trusty/epiphany-browser/lp1263387
Merge into: lp:ubuntu/trusty/epiphany-browser
Diff against target: 112 lines (+92/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu_titlebars.patch (+84/-0)
To merge this branch: bzr merge lp:~darkxst/ubuntu/trusty/epiphany-browser/lp1263387
Reviewer Review Type Date Requested Status
Andrew Starr-Bochicchio (community) Approve
Ubuntu branches Pending
Review via email: mp+199911@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Looks good to me. Thanks for working on this!

review: Approve

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 2013-12-14 07:46:25 +0000
3+++ debian/changelog 2013-12-22 00:30:39 +0000
4@@ -1,3 +1,10 @@
5+epiphany-browser (3.10.3-0ubuntu2) trusty; urgency=medium
6+
7+ * debian/patches/ubuntu_titlebars.patch: Use traditional titlebars
8+ for non-GNOME sessions (LP: #1263387)
9+
10+ -- Tim Lunn <tim@feathertop.org> Sun, 22 Dec 2013 11:03:08 +1100
11+
12 epiphany-browser (3.10.3-0ubuntu1) trusty; urgency=low
13
14 * New upstream release (LP: #1260942)
15
16=== modified file 'debian/patches/series'
17--- debian/patches/series 2013-11-13 11:39:29 +0000
18+++ debian/patches/series 2013-12-22 00:30:39 +0000
19@@ -3,3 +3,4 @@
20 07_bookmarks.patch
21 12_safetypes.patch
22 81_ubuntu_force_update_bookmarks_menu.patch
23+ubuntu_titlebars.patch
24
25=== added file 'debian/patches/ubuntu_titlebars.patch'
26--- debian/patches/ubuntu_titlebars.patch 1970-01-01 00:00:00 +0000
27+++ debian/patches/ubuntu_titlebars.patch 2013-12-22 00:30:39 +0000
28@@ -0,0 +1,84 @@
29+From 716669f8d58efd5391ab7c8c8972615ada294a0f Mon Sep 17 00:00:00 2001
30+From: Yosef Or Boczko <yoseforb@gmail.com>
31+Date: Thu, 29 Aug 2013 22:34:37 +0300
32+Subject: wphy-window: Use the top bar GtkBox as titlebar
33+
34+The GtkEventBox is to ensure opacity (see
35+bug #706045).
36+
37+https://bugzilla.gnome.org/show_bug.cgi?id=706050
38+
39+Modified to only show titlebars under non-GNOME sessions
40+
41+---
42+
43+
44+--- a/src/ephy-window.c
45++++ b/src/ephy-window.c
46+@@ -3720,9 +3720,13 @@
47+ gtk_widget_set_margin_bottom (toolbar, 5);
48+ gtk_widget_set_margin_left (toolbar, 6);
49+ gtk_widget_set_margin_right (toolbar, 6);
50+- gtk_container_add (GTK_CONTAINER (frame), toolbar);
51+- gtk_widget_show (frame);
52+- gtk_window_set_titlebar (GTK_WINDOW (window), frame);
53++ if (!g_strcmp0(g_getenv("XDG_CURRENT_DESKTOP"), "GNOME")) {
54++ gtk_container_add (GTK_CONTAINER (frame), toolbar);
55++ gtk_widget_show (frame);
56++ gtk_window_set_titlebar (GTK_WINDOW (window), frame);
57++ } else
58++ gtk_box_pack_start (GTK_BOX (priv->main_vbox),
59++ toolbar, FALSE, FALSE, 0);
60+
61+ action = gtk_action_group_get_action (priv->toolbar_action_group,
62+ "NavigationBack");
63+--- a/src/ephy-toolbar.c
64++++ b/src/ephy-toolbar.c
65+@@ -252,27 +252,29 @@
66+ }
67+
68+ /* Separator and Close */
69+- separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
70+- gtk_container_add (GTK_CONTAINER (toolbar), separator);
71+- gtk_widget_show_all (separator);
72++ if (!g_strcmp0(g_getenv("XDG_CURRENT_DESKTOP"), "GNOME")) {
73++ separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
74++ gtk_container_add (GTK_CONTAINER (toolbar), separator);
75++ gtk_widget_show_all (separator);
76+
77+- if (gtk_widget_get_direction (GTK_WIDGET (separator)) == GTK_TEXT_DIR_RTL)
78+- gtk_widget_set_margin_right (GTK_WIDGET (separator), 6);
79+- else
80+- gtk_widget_set_margin_left (GTK_WIDGET (separator), 6);
81++ if (gtk_widget_get_direction (GTK_WIDGET (separator)) == GTK_TEXT_DIR_RTL)
82++ gtk_widget_set_margin_right (GTK_WIDGET (separator), 6);
83++ else
84++ gtk_widget_set_margin_left (GTK_WIDGET (separator), 6);
85+
86+- button = gtk_button_new_from_icon_name ("window-close-symbolic",
87+- GTK_ICON_SIZE_MENU);
88+- gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
89+- g_signal_connect (button, "clicked",
90+- G_CALLBACK (close_button_clicked), NULL);
91+- gtk_container_add (GTK_CONTAINER (toolbar), button);
92+- gtk_widget_show_all (button);
93++ button = gtk_button_new_from_icon_name ("window-close-symbolic",
94++ GTK_ICON_SIZE_MENU);
95++ gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
96++ g_signal_connect (button, "clicked",
97++ G_CALLBACK (close_button_clicked), NULL);
98++ gtk_container_add (GTK_CONTAINER (toolbar), button);
99++ gtk_widget_show_all (button);
100+
101+- if (gtk_widget_get_direction (button) == GTK_TEXT_DIR_RTL)
102+- gtk_widget_set_margin_right (button, 6);
103+- else
104+- gtk_widget_set_margin_left (button, 6);
105++ if (gtk_widget_get_direction (button) == GTK_TEXT_DIR_RTL)
106++ gtk_widget_set_margin_right (button, 6);
107++ else
108++ gtk_widget_set_margin_left (button, 6);
109++ }
110+ }
111+
112+ static void

Subscribers

People subscribed via source and target branches

to all changes: