Merge lp:~gue5t/midori/restore-middle-btn-up into lp:midori

Proposed by gue5t gue5t
Status: Superseded
Proposed branch: lp:~gue5t/midori/restore-middle-btn-up
Merge into: lp:midori
Diff against target: 46 lines (+0/-22)
1 file modified
katze/katze-arrayaction.c (+0/-22)
To merge this branch: bzr merge lp:~gue5t/midori/restore-middle-btn-up
Reviewer Review Type Date Requested Status
Cris Dywan Approve
Review via email: mp+195334@code.launchpad.net

This proposal has been superseded by a proposal from 2015-03-19.

Commit message

Remove explicit mouse button handling from KatzeArrayAction

Description of the change

This seems to fix the bug, but I'm wary of removing code without understanding why it was there in the first place. I did test it (trash, the tabs menu, etc.) and noticed no regressions. Why do we have explicit mouse handling in ArrayAction?

To post a comment you must log in.
Revision history for this message
Cris Dywan (kalikiana) wrote :

Did you test with global menubars?

review: Needs Information
Revision history for this message
gue5t gue5t (gue5t) wrote :

The global menubars only emit the "activate" event, but I have not. I'll trek on over to the nearest Ubuntu box and see if I can test.

Revision history for this message
Cris Dywan (kalikiana) wrote :

Testing I get this while using menus

gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

review: Needs Fixing
Revision history for this message
gue5t gue5t (gue5t) wrote :

Does the gtk_widget_get_preferred_height_for_width fail with the Ubuntu global menubar, or with a certain GTK3 theme? I can't seem to reproduce it locally. The assertion sounds like maybe a widget hasn't been realized yet at some point, but it's difficult to figure out realization ordering issues just by looking at code.

Revision history for this message
Cris Dywan (kalikiana) wrote :

Hrm something more fundamental must have broken I can't get the menubar to appear in the global panel at all even if I override UBUNTU_MENUPROXY. Though no errors either. But the only change due to Midori assuming there is a global bar I can see is the menu item [x] Menubar disappearing from the menus.

Revision history for this message
Cris Dywan (kalikiana) :
review: Approve
Revision history for this message
RabbitBot (rabbitbot-a) wrote :

Attempt to merge into lp:midori failed due to conflicts:

text conflict in katze/katze-arrayaction.c

Unmerged revisions

6474. By gue5t <email address hidden>

Remove explicit mouse button handling from KatzeArrayAction

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'katze/katze-arrayaction.c'
2--- katze/katze-arrayaction.c 2012-12-16 18:40:00 +0000
3+++ katze/katze-arrayaction.c 2013-11-15 02:55:41 +0000
4@@ -305,23 +305,6 @@
5 katze_array_action_activate_item (array_action, item, 1);
6 }
7
8-static gboolean
9-katze_array_action_menu_button_press_cb (GtkWidget* proxy,
10- GdkEventButton* event,
11- KatzeArrayAction* array_action)
12-{
13- KatzeItem* item = g_object_get_data (G_OBJECT (proxy), "KatzeItem");
14-
15- katze_array_action_activate_item (array_action, item, event->button);
16-
17- /* we need to block the 'activate' handler which would be called
18- * otherwise as well */
19- g_signal_handlers_block_by_func (proxy,
20- katze_array_action_menu_activate_cb, array_action);
21-
22- return TRUE;
23-}
24-
25 static void
26 katze_array_action_menu_item_select_cb (GtkWidget* proxy,
27 KatzeArrayAction* array_action);
28@@ -414,8 +397,6 @@
29 g_signal_connect (menuitem, "activate",
30 G_CALLBACK (katze_array_action_menu_activate_cb), array_action);
31 }
32- g_signal_connect (menuitem, "button-press-event",
33- G_CALLBACK (katze_array_action_menu_button_press_cb), array_action);
34 gtk_widget_show (menuitem);
35 }
36 }
37@@ -625,9 +606,6 @@
38 }
39 else
40 {
41- g_signal_connect (menuitem, "button-press-event",
42- G_CALLBACK (katze_array_action_menu_button_press_cb), array_action);
43- /* we need the 'activate' signal as well for keyboard events */
44 g_signal_connect (menuitem, "activate",
45 G_CALLBACK (katze_array_action_menu_activate_cb), array_action);
46 }

Subscribers

People subscribed via source and target branches

to all changes: