I have found out how to get the "about-to-show" signal from an application indicator. I'm not sure which version of Ubuntu that this became available in (I'm using trusty), but I think we can call this fixed.
I didn't do this in C originally, so sorry if this sample is not quite right.
I have found out how to get the "about-to-show" signal from an application indicator. I'm not sure which version of Ubuntu that this became available in (I'm using trusty), but I think we can call this fixed.
I didn't do this in C originally, so sorry if this sample is not quite right.
AppIndicator *indicator;
GtkMenu *menu;
DbusmenuServer *menuServer;
DbusmenuMenuitem *rootMenuItem;
indicator = app_indicator_ new(0, "sample", APP_INDICATOR_ CATEGORY_ APPLICATION_ STATUS) ; set_menu( indicator, menu); get(indicator, "dbus-menu-server", &menuServer, NULL); get(menuServer, "root-node", &rootMenuItem, NULL); connect( rootMenuItem, "about-to-show", G_CALLBACK( sample_ cb), NULL);
menu = gtk_menu_new();
// must set menu before getting dbus-menu-server property
app_indicator_
g_object_
g_object_
g_signal_