~ted/indicator-appmenu/indicator-about-to-show

« back to all changes in this revision

Viewing changes to src/indicator-appmenu.c

  • Committer: Ted Gould
  • Date: 2010-09-17 20:44:56 UTC
  • Revision ID: ted@gould.cx-20100917204456-88p4hmvdwmc8yflh
Passing down the event activate signal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
747
747
static void
748
748
entry_activate (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp)
749
749
{
 
750
        IndicatorAppmenu * iapp = INDICATOR_APPMENU(io);
 
751
 
 
752
        if (iapp->default_app != NULL) {
 
753
                window_menus_entry_activate(iapp->default_app, entry, timestamp);
 
754
                return;
 
755
        }
 
756
 
 
757
        if (iapp->active_window == NULL) {
 
758
                if (iapp->desktop_menu != NULL) {
 
759
                        window_menus_entry_activate(iapp->desktop_menu, entry, timestamp);
 
760
                }
 
761
                return;
 
762
        }
 
763
 
 
764
        /* Else we've got stubs, and the stubs don't care. */
750
765
 
751
766
        return;
752
767
}