Merge lp:~larsu/unity/panel-service-menu-style-fix-again into lp:unity

Proposed by Lars Karlitski
Status: Merged
Approved by: Sebastien Bacher
Approved revision: no longer in the source branch.
Merged at revision: 3196
Proposed branch: lp:~larsu/unity/panel-service-menu-style-fix-again
Merge into: lp:unity
Diff against target: 31 lines (+0/-14)
1 file modified
services/panel-service.c (+0/-14)
To merge this branch: bzr merge lp:~larsu/unity/panel-service-menu-style-fix-again
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Sebastien Bacher Approve
Andrea Cimitan Pending
Unity Team Pending
Review via email: mp+151329@code.launchpad.net

Commit message

Don't attach the menus to an invisible menubar

Description of the change

Don't attach the menus to an invisible menubar

It doesn't seem to serve any purpose anymore. Also, it breaks highlighting on hover in gtk 3.8, because invisible widgets don't invalidate their style.

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

This was needed for styling, are you sure it is not needed anymore?
Please check this with Cimi as well.

Revision history for this message
Lars Karlitski (larsu) wrote :

Yes I'm sure, why else would I propose this merge?

I'd be happy if other people verified this, though. I'll add Cimi as a reviewer.

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

ok, that's blocking the New GTK and nobody in the Unity team seems to have enough of an opinion to comment/approve it so I'm doint that, if anything it will do a small visible change that we can fix, it's still better than blocking GTK and other work to land

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
=== modified file 'services/panel-service.c'
--- services/panel-service.c 2013-02-04 21:12:57 +0000
+++ services/panel-service.c 2013-03-01 23:09:19 +0000
@@ -1242,10 +1242,6 @@
1242 g_signal_handler_disconnect (priv->last_menu, priv->last_menu_id);1242 g_signal_handler_disconnect (priv->last_menu, priv->last_menu_id);
1243 g_signal_handler_disconnect (priv->last_menu, priv->last_menu_move_id);1243 g_signal_handler_disconnect (priv->last_menu, priv->last_menu_move_id);
12441244
1245 GtkWidget *top_win = gtk_widget_get_toplevel (GTK_WIDGET (priv->last_menu));
1246 if (GTK_IS_WINDOW (top_win))
1247 gtk_window_set_attached_to (GTK_WINDOW (top_win), NULL);
1248
1249 priv->last_menu = NULL;1245 priv->last_menu = NULL;
1250 priv->last_menu_id = 0;1246 priv->last_menu_id = 0;
1251 priv->last_menu_move_id = 0;1247 priv->last_menu_move_id = 0;
@@ -1705,16 +1701,6 @@
1705 G_CALLBACK (menuitem_activated), entry);1701 G_CALLBACK (menuitem_activated), entry);
1706 }1702 }
17071703
1708 GtkWidget *top_widget = gtk_widget_get_toplevel (GTK_WIDGET (priv->last_menu));
1709
1710 if (GTK_IS_WINDOW (top_widget))
1711 {
1712 GtkWindow *top_win = GTK_WINDOW (top_widget);
1713
1714 if (gtk_window_get_attached_to (top_win) != priv->menubar)
1715 gtk_window_set_attached_to (top_win, priv->menubar);
1716 }
1717
1718 priv->last_entry = entry;1704 priv->last_entry = entry;
1719 priv->last_x = x;1705 priv->last_x = x;
1720 priv->last_y = y;1706 priv->last_y = y;