Merge lp:~larsu/ubuntu-themes/fix-separators into lp:ubuntu-themes

Proposed by Lars Karlitski
Status: Merged
Approved by: Lars Karlitski
Approved revision: 277
Merged at revision: 277
Proposed branch: lp:~larsu/ubuntu-themes/fix-separators
Merge into: lp:ubuntu-themes
Diff against target: 41 lines (+4/-2)
2 files modified
Ambiance/gtk-3.0/gtk-widgets.css (+2/-1)
Radiance/gtk-3.0/gtk-widgets.css (+2/-1)
To merge this branch: bzr merge lp:~larsu/ubuntu-themes/fix-separators
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Michael Terry Approve
Sebastien Bacher Pending
Review via email: mp+151330@code.launchpad.net

Commit message

Don't use GtkWidget-wide-separators

There are two code paths in gtk for drawing menu separators. The one we were
using (which is able to draw fancy rectangles) uses css border properties. In
gtk 3.8, menu items honor the border property, so we get a border around every
separator.

This patch makes it use the other code path, which draws a simple line. It
also removes borders.

Description of the change

Don't use GtkWidget-wide-separators

There are two code paths in gtk for drawing menu separators. The one we were
using (which is able to draw fancy rectangles) uses css border properties. In
gtk 3.8, menu items honor the border property, so we get a border around every
separator.

This patch makes it use the other code path, which draws a simple line. It
also removes borders.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Terry (mterry) wrote :

Works for me in both GTK+ 3.6 and 3.7.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Ambiance/gtk-3.0/gtk-widgets.css'
2--- Ambiance/gtk-3.0/gtk-widgets.css 2013-02-19 13:06:53 +0000
3+++ Ambiance/gtk-3.0/gtk-widgets.css 2013-03-01 23:41:20 +0000
4@@ -44,7 +44,6 @@
5 -GtkToolbar-internal-padding: 0;
6 -GtkTreeView-expander-size: 8;
7 -GtkTreeView-vertical-separator: 0;
8- -GtkWidget-wide-separators: true;
9 -GtkWidget-separator-width: 2;
10 -GtkWidget-separator-height: 2;
11 -GtkWidget-focus-padding: 0;
12@@ -1567,6 +1566,8 @@
13
14 .menuitem.separator {
15 -GtkMenuItem-horizontal-padding: 0;
16+ border: none;
17+ color: @dark_bg_color;
18 }
19
20 GtkTreeMenu .menuitem.separator,
21
22=== modified file 'Radiance/gtk-3.0/gtk-widgets.css'
23--- Radiance/gtk-3.0/gtk-widgets.css 2013-02-19 13:06:53 +0000
24+++ Radiance/gtk-3.0/gtk-widgets.css 2013-03-01 23:41:20 +0000
25@@ -44,7 +44,6 @@
26 -GtkToolbar-internal-padding: 0;
27 -GtkTreeView-expander-size: 8;
28 -GtkTreeView-vertical-separator: 0;
29- -GtkWidget-wide-separators: true;
30 -GtkWidget-separator-width: 2;
31 -GtkWidget-separator-height: 2;
32 -GtkWidget-focus-padding: 0;
33@@ -1567,6 +1566,8 @@
34
35 .menuitem.separator {
36 -GtkMenuItem-horizontal-padding: 0;
37+ border: none;
38+ color: @dark_bg_color;
39 }
40
41 GtkTreeMenu .menuitem.separator,

Subscribers

People subscribed via source and target branches