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

Subscribers

People subscribed via source and target branches

to all changes: