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
=== modified file 'katze/katze-arrayaction.c'
--- katze/katze-arrayaction.c 2012-12-16 18:40:00 +0000
+++ katze/katze-arrayaction.c 2013-11-15 02:55:41 +0000
@@ -305,23 +305,6 @@
305 katze_array_action_activate_item (array_action, item, 1);305 katze_array_action_activate_item (array_action, item, 1);
306}306}
307307
308static gboolean
309katze_array_action_menu_button_press_cb (GtkWidget* proxy,
310 GdkEventButton* event,
311 KatzeArrayAction* array_action)
312{
313 KatzeItem* item = g_object_get_data (G_OBJECT (proxy), "KatzeItem");
314
315 katze_array_action_activate_item (array_action, item, event->button);
316
317 /* we need to block the 'activate' handler which would be called
318 * otherwise as well */
319 g_signal_handlers_block_by_func (proxy,
320 katze_array_action_menu_activate_cb, array_action);
321
322 return TRUE;
323}
324
325static void308static void
326katze_array_action_menu_item_select_cb (GtkWidget* proxy,309katze_array_action_menu_item_select_cb (GtkWidget* proxy,
327 KatzeArrayAction* array_action);310 KatzeArrayAction* array_action);
@@ -414,8 +397,6 @@
414 g_signal_connect (menuitem, "activate",397 g_signal_connect (menuitem, "activate",
415 G_CALLBACK (katze_array_action_menu_activate_cb), array_action);398 G_CALLBACK (katze_array_action_menu_activate_cb), array_action);
416 }399 }
417 g_signal_connect (menuitem, "button-press-event",
418 G_CALLBACK (katze_array_action_menu_button_press_cb), array_action);
419 gtk_widget_show (menuitem);400 gtk_widget_show (menuitem);
420 }401 }
421}402}
@@ -625,9 +606,6 @@
625 }606 }
626 else607 else
627 {608 {
628 g_signal_connect (menuitem, "button-press-event",
629 G_CALLBACK (katze_array_action_menu_button_press_cb), array_action);
630 /* we need the 'activate' signal as well for keyboard events */
631 g_signal_connect (menuitem, "activate",609 g_signal_connect (menuitem, "activate",
632 G_CALLBACK (katze_array_action_menu_activate_cb), array_action);610 G_CALLBACK (katze_array_action_menu_activate_cb), array_action);
633 }611 }

Subscribers

People subscribed via source and target branches

to all changes: