aboutsummaryrefslogtreecommitdiff
path: root/src/applet-main.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2008-11-12 16:06:07 -0600
committerTed Gould <ted@canonical.com>2008-11-12 16:06:07 -0600
commit9d5abe0b9023f29fd91e43131bc473c5af926761 (patch)
treec7a51cb36d0abbbf95103b4f3e602b631bfc05ea /src/applet-main.c
parent5781046b87022a9c9fed52eb1273c49f5e90953d (diff)
downloadlibayatana-indicator-9d5abe0b9023f29fd91e43131bc473c5af926761.tar.gz
libayatana-indicator-9d5abe0b9023f29fd91e43131bc473c5af926761.tar.bz2
libayatana-indicator-9d5abe0b9023f29fd91e43131bc473c5af926761.zip
Putting a label in the widget
Diffstat (limited to 'src/applet-main.c')
-rw-r--r--src/applet-main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/applet-main.c b/src/applet-main.c
index 6ec3788..222d0c8 100644
--- a/src/applet-main.c
+++ b/src/applet-main.c
@@ -21,6 +21,14 @@ PANEL_APPLET_BONOBO_FACTORY ("OAFIID:GNOME_IndicatorApplet_Factory",
static gboolean
applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data)
{
+ GtkWidget * hbox = gtk_hbox_new(FALSE, 3);
+
+ GtkWidget * label = gtk_label_new("Test");
+ gtk_box_pack_end(GTK_BOX(hbox), label, TRUE, TRUE, 0);
+ gtk_widget_show(label);
+
+ gtk_container_add(GTK_CONTAINER(applet), hbox);
+ gtk_widget_show(hbox);
return TRUE;
}