Merge lp:~bilalakhtar/unity/fix-740867 into lp:unity

Proposed by Bilal Akhtar
Status: Rejected
Rejected by: Didier Roche-Tolomelli
Proposed branch: lp:~bilalakhtar/unity/fix-740867
Merge into: lp:unity
Diff against target: 60 lines (+26/-0)
2 files modified
src/BamfLauncherIcon.cpp (+25/-0)
src/BamfLauncherIcon.h (+1/-0)
To merge this branch: bzr merge lp:~bilalakhtar/unity/fix-740867
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Disapprove
Review via email: mp+54497@code.launchpad.net

Description of the change

This branch fixes bug #740867 .

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Hey Bilal,

Thanks for the merge request. However, the decision to remove it has been taken in bug #709707 referenced by the commit your revert (see the comments) and won't be reintroduce without an agreement on the ayatana-mailing list.

Disapproving for now. keep me in touch if the discussion changed the outcome :)

review: Disapprove
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Setting the state to reject as my previous comment to clean the list and you already proposed another fix which makes that happen :)

Unmerged revisions

1001. By Bilal Akhtar

Add 'Open a new window' item to quicklist of BamfLauncherIcon

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/BamfLauncherIcon.cpp'
--- src/BamfLauncherIcon.cpp 2011-03-14 20:48:50 +0000
+++ src/BamfLauncherIcon.cpp 2011-03-23 11:35:43 +0000
@@ -651,6 +651,12 @@
651}651}
652652
653void653void
654BamfLauncherIcon::OnNewWindow (DbusmenuMenuitem *item, int time, BamfLauncherIcon *self)
655{
656 OpenInstanceLauncherIcon();
657}
658
659void
654BamfLauncherIcon::OnTogglePin (DbusmenuMenuitem *item, int time, BamfLauncherIcon *self)660BamfLauncherIcon::OnTogglePin (DbusmenuMenuitem *item, int time, BamfLauncherIcon *self)
655{661{
656 BamfView *view = BAMF_VIEW (self->m_App);662 BamfView *view = BAMF_VIEW (self->m_App);
@@ -680,6 +686,22 @@
680{686{
681 DbusmenuMenuitem *menu_item;687 DbusmenuMenuitem *menu_item;
682688
689 /* NewWindow */
690 if (_menu_items.find ("NewWindow") == _menu_items.end ())
691 {
692 menu_item = dbusmenu_menuitem_new ();
693 g_object_ref (menu_item);
694
695 dbusmenu_menuitem_property_set (menu_item, DBUSMENU_MENUITEM_PROP_LABEL, _("Open a New Window"));
696 dbusmenu_menuitem_property_set_bool (menu_item, DBUSMENU_MENUITEM_PROP_ENABLED, true);
697 dbusmenu_menuitem_property_set_bool (menu_item, DBUSMENU_MENUITEM_PROP_VISIBLE, true);
698
699 g_signal_connect (menu_item, DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, (GCallback) &BamfLauncherIcon::OnNewWindow, this);
700
701 _menu_items["NewWindow"] = menu_item;
702 }
703
704
683 /* Pin */705 /* Pin */
684 if (_menu_items.find ("Pin") == _menu_items.end ())706 if (_menu_items.find ("Pin") == _menu_items.end ())
685 {707 {
@@ -770,6 +792,9 @@
770 if (g_strcmp0 (key , "Quit") == 0 && !bamf_view_is_running (BAMF_VIEW (m_App)))792 if (g_strcmp0 (key , "Quit") == 0 && !bamf_view_is_running (BAMF_VIEW (m_App)))
771 continue;793 continue;
772794
795 if (g_strcmp0 (key, "NewWindow") == 0 && !bamf_view_is_running (BAMF_VIEW (m_App)))
796 continue;
797
773 exists = false;798 exists = false;
774 std::string label_default = dbusmenu_menuitem_property_get ((*it_m).second, DBUSMENU_MENUITEM_PROP_LABEL);799 std::string label_default = dbusmenu_menuitem_property_get ((*it_m).second, DBUSMENU_MENUITEM_PROP_LABEL);
775 for(it_l = result.begin(); it_l != result.end(); it_l++)800 for(it_l = result.begin(); it_l != result.end(); it_l++)
776801
=== modified file 'src/BamfLauncherIcon.h'
--- src/BamfLauncherIcon.h 2011-02-11 17:03:24 +0000
+++ src/BamfLauncherIcon.h 2011-03-23 11:35:43 +0000
@@ -95,6 +95,7 @@
95 static void OnChildRemoved (BamfView *view, BamfView *child, gpointer data);95 static void OnChildRemoved (BamfView *view, BamfView *child, gpointer data);
9696
97 static void OnQuit (DbusmenuMenuitem *item, int time, BamfLauncherIcon *self);97 static void OnQuit (DbusmenuMenuitem *item, int time, BamfLauncherIcon *self);
98 static void OnNewWindow (DbusmenuMenuitem *item, int time, BamfLauncherIcon *self);
98 static void OnLaunch (DbusmenuMenuitem *item, int time, BamfLauncherIcon *self);99 static void OnLaunch (DbusmenuMenuitem *item, int time, BamfLauncherIcon *self);
99 static void OnTogglePin (DbusmenuMenuitem *item, int time, BamfLauncherIcon *self);100 static void OnTogglePin (DbusmenuMenuitem *item, int time, BamfLauncherIcon *self);
100 101