Merge lp:~noskcaj/gnome-system-monitor/titlebar into lp:~ubuntu-desktop/gnome-system-monitor/ubuntu

Proposed by Jackson Doak
Status: Rejected
Rejected by: Sebastien Bacher
Proposed branch: lp:~noskcaj/gnome-system-monitor/titlebar
Merge into: lp:~ubuntu-desktop/gnome-system-monitor/ubuntu
Diff against target: 134 lines (+81/-2)
7 files modified
debian/changelog (+7/-0)
debian/control (+2/-1)
debian/control.in (+2/-1)
debian/patches/series (+2/-0)
debian/patches/traditional-titlebars-pt2.patch (+25/-0)
debian/patches/traditional-titlebars.patch (+40/-0)
debian/source/lintian-overrides (+3/-0)
To merge this branch: bzr merge lp:~noskcaj/gnome-system-monitor/titlebar
Reviewer Review Type Date Requested Status
Sebastien Bacher Needs Fixing
Review via email: mp+243576@code.launchpad.net

Description of the change

Use traditional titlebars on !gnome. Also adds lintian overrides that were dropped when we synced somehow

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, that looks fine, you include lintian changes as well, those should either be documented in the changelog or moved out of this changeset

review: Needs Fixing
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, testing that version I found other issues, the bg is transparent which makes the application quite unusable under Unity... that should be fixed before accepting in it vivid as well

review: Needs Fixing
Revision history for this message
Tim Lunn (darkxst) wrote :

seb, what is transparent the header bar? I don't see that but I do see incorrect theming.

Adwaita now applies header_bar styling to the titlebar class as well [1], quite a few apps are thus setting the class on header bar widget to "titlebar" rather than "header_bar", this includes atleast cheese, baobab, gnome-contacts, g-s-m and gedit. I guess this change needs to be incorporated into the ubuntu themes.

[1] https://git.gnome.org/browse/gnome-themes-standard/commit/?id=35191720f7676bd8f2b142387b767397bb18354e

66. By Jackson Doak

Add part 2 patch

67. By Jackson Doak

typoe fix

Revision history for this message
Sebastien Bacher (seb128) wrote :

the update has been done by somebody else

Unmerged revisions

67. By Jackson Doak

typoe fix

66. By Jackson Doak

Add part 2 patch

65. By Jackson Doak

Add traditional-titlebars.patch. Uses traditional titlebars
on !Gnome. Thanks Tim Lunn. LP: #1385560, #1261608

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2014-10-25 17:20:48 +0000
+++ debian/changelog 2014-12-08 18:52:07 +0000
@@ -1,3 +1,10 @@
1gnome-system-monitor (3.14.1-1ubuntu1) vivid; urgency=medium
2
3 * Add traditional-titlebar patches. Uses traditional titlebars
4 on !Gnome. Thanks Tim Lunn. LP: #1385560, #1261608
5
6 -- Jackson Doak <noskcaj@ubuntu.com> Wed, 03 Dec 2014 08:03:13 +1100
7
1gnome-system-monitor (3.14.1-1) unstable; urgency=medium8gnome-system-monitor (3.14.1-1) unstable; urgency=medium
29
3 [ Jackson Doak ]10 [ Jackson Doak ]
411
=== modified file 'debian/control'
--- debian/control 2014-10-25 17:20:48 +0000
+++ debian/control 2014-12-08 18:52:07 +0000
@@ -5,7 +5,8 @@
5Source: gnome-system-monitor5Source: gnome-system-monitor
6Section: gnome6Section: gnome
7Priority: optional7Priority: optional
8Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>8Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
9XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
9Uploaders: Andreas Henriksson <andreas@fatal.se>, Laurent Bigonville <bigon@debian.org>10Uploaders: Andreas Henriksson <andreas@fatal.se>, Laurent Bigonville <bigon@debian.org>
10Build-Depends: appdata-tools,11Build-Depends: appdata-tools,
11 cdbs,12 cdbs,
1213
=== modified file 'debian/control.in'
--- debian/control.in 2014-10-25 17:20:48 +0000
+++ debian/control.in 2014-12-08 18:52:07 +0000
@@ -1,7 +1,8 @@
1Source: gnome-system-monitor1Source: gnome-system-monitor
2Section: gnome2Section: gnome
3Priority: optional3Priority: optional
4Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
5Uploaders: @GNOME_TEAM@6Uploaders: @GNOME_TEAM@
6Build-Depends: appdata-tools,7Build-Depends: appdata-tools,
7 cdbs,8 cdbs,
89
=== added directory 'debian/patches'
=== added file 'debian/patches/series'
--- debian/patches/series 1970-01-01 00:00:00 +0000
+++ debian/patches/series 2014-12-08 18:52:07 +0000
@@ -0,0 +1,2 @@
1traditional-titlebars.patch
2traditional-titlebars-pt2.patch
03
=== added file 'debian/patches/traditional-titlebars-pt2.patch'
--- debian/patches/traditional-titlebars-pt2.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/traditional-titlebars-pt2.patch 2014-12-08 18:52:07 +0000
@@ -0,0 +1,25 @@
1From 44d0f8dedf7b533cb51d2aebbf71693bedcc6bb8 Mon Sep 17 00:00:00 2001
2From: Tim Lunn <tim@feathertop.org>
3Date: Wed, 3 Dec 2014 07:42:51 +1100
4Subject: [PATCH] Don't set "titlebar" class when using headerbar widget as a
5 toolbar
6
7https://bugzilla.gnome.org/show_bug.cgi?id=741236
8---
9 src/interface.cpp | 1 +
10 1 file changed, 1 insertion(+)
11
12diff --git a/src/interface.cpp b/src/interface.cpp
13index b40676e..582bb80 100644
14--- a/src/interface.cpp
15+++ b/src/interface.cpp
16@@ -646,6 +646,7 @@ create_main_window (GsmApplication *app)
17
18 mainbox = GTK_WIDGET (gtk_builder_get_object (builder, "main_box"));
19 headerbar = GTK_WIDGET (gtk_builder_get_object (builder, "header_bar"));
20+ gtk_style_context_remove_class (gtk_widget_get_style_context (headerbar), "titlebar");
21 gtk_window_set_titlebar (GTK_WINDOW (main_window), NULL);
22 gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (headerbar), FALSE);
23 gtk_box_pack_start (GTK_BOX(mainbox), headerbar, FALSE, FALSE, 0);
24--
252.1.3
0\ No newline at end of file26\ No newline at end of file
127
=== added file 'debian/patches/traditional-titlebars.patch'
--- debian/patches/traditional-titlebars.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/traditional-titlebars.patch 2014-12-08 18:52:07 +0000
@@ -0,0 +1,40 @@
1From 059be700bade7088cfba4609b518d2e7c43b9a97 Mon Sep 17 00:00:00 2001
2From: Tim Lunn <tim@feathertop.org>
3Date: Wed, 3 Dec 2014 07:42:51 +1100
4Subject: [PATCH] Use traditional titlebars on !GNOME DE's
5
6https://bugzilla.gnome.org/show_bug.cgi?id=741044
7---
8 src/interface.cpp | 14 ++++++++++++++
9 1 file changed, 14 insertions(+)
10
11--- a/src/interface.cpp
12+++ b/src/interface.cpp
13@@ -626,6 +626,8 @@ create_main_window (GsmApplication *app)
14 GtkWidget *process_menu_button;
15 GMenuModel *process_menu_model;
16
17+ const char* session;
18+
19 int width, height, xpos, ypos;
20
21 GtkBuilder *builder = gtk_builder_new();
22@@ -637,6 +639,18 @@ create_main_window (GsmApplication *app)
23 gtk_widget_set_name (main_window, "gnome-system-monitor");
24 app->main_window = main_window;
25
26+ session = g_getenv ("XDG_CURRENT_DESKTOP");
27+ if (session && !strstr (session, "GNOME")){
28+ GtkWidget *mainbox;
29+ GtkWidget *headerbar;
30+
31+ mainbox = GTK_WIDGET (gtk_builder_get_object (builder, "main_box"));
32+ headerbar = GTK_WIDGET (gtk_builder_get_object (builder, "header_bar"));
33+ gtk_window_set_titlebar (GTK_WINDOW (main_window), NULL);
34+ gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (headerbar), FALSE);
35+ gtk_box_pack_start (GTK_BOX(mainbox), headerbar, FALSE, FALSE, 0);
36+ }
37+
38 g_settings_get (app->settings, GSM_SETTING_WINDOW_STATE, "(iiii)",
39 &width, &height, &xpos, &ypos);
40 width = CLAMP (width, 50, gdk_screen_width ());
041
=== added file 'debian/source/lintian-overrides'
--- debian/source/lintian-overrides 1970-01-01 00:00:00 +0000
+++ debian/source/lintian-overrides 2014-12-08 18:52:07 +0000
@@ -0,0 +1,3 @@
1# https://bugzilla.gnome.org/show_bug.cgi?id=738752
2gnome-system-monitor source: source-is-missing scripts/gsm-kill
3gnome-system-monitor source: source-is-missing scripts/gsm-renice

Subscribers

People subscribed via source and target branches