diff options
author | Ted Gould <ted@canonical.com> | 2009-08-26 20:20:02 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-26 20:20:02 -0500 |
commit | bab6bd250e02bb8a139ea4ad36fdee2b7b250544 (patch) | |
tree | aac09ab156fee97a98fc9ca7894d4d1bd1fd6146 | |
parent | 96d5cadae1492a0d4db6e38f606be309e76ab0aa (diff) | |
download | ayatana-indicator-messages-bab6bd250e02bb8a139ea4ad36fdee2b7b250544.tar.gz ayatana-indicator-messages-bab6bd250e02bb8a139ea4ad36fdee2b7b250544.tar.bz2 ayatana-indicator-messages-bab6bd250e02bb8a139ea4ad36fdee2b7b250544.zip |
Filling in the new launcher menu item
-rw-r--r-- | src/indicator-messages.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c index 8762593..8838313 100644 --- a/src/indicator-messages.c +++ b/src/indicator-messages.c @@ -139,6 +139,22 @@ setup_icon_proxy (gpointer userdata) static gboolean new_launcher_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client) { + GtkMenuItem * gmi = GTK_MENU_ITEM(gtk_menu_item_new()); + + GtkWidget * vbox = gtk_vbox_new(TRUE, 2); + + GtkWidget * app_label = gtk_label_new(dbusmenu_menuitem_property_get(newitem, LAUNCHER_MENUITEM_PROP_APP_NAME)); + GtkWidget * dsc_label = gtk_label_new(dbusmenu_menuitem_property_get(newitem, LAUNCHER_MENUITEM_PROP_APP_DESC)); + + gtk_box_pack_start(GTK_BOX(vbox), app_label, FALSE, FALSE, 0); + gtk_widget_show(app_label); + gtk_box_pack_start(GTK_BOX(vbox), dsc_label, FALSE, FALSE, 0); + gtk_widget_show(dsc_label); + + gtk_container_add(GTK_CONTAINER(gmi), GTK_WIDGET(vbox)); + gtk_widget_show(GTK_WIDGET(vbox)); + + dbusmenu_gtkclient_newitem_base(DBUSMENU_GTKCLIENT(client), newitem, gmi, parent); return TRUE; } |