diff options
author | Ted Gould <ted@canonical.com> | 2009-02-05 11:20:09 +0100 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-02-05 11:20:09 +0100 |
commit | 24824955dd2a3dec5c624fb8c702b9ddcbce9493 (patch) | |
tree | 577b20398b9f590c06032a9553e9ca7dc6638944 | |
parent | c53679a64a9bdb3e576e68d8e3568a39de0a85c1 (diff) | |
download | ayatana-indicator-messages-24824955dd2a3dec5c624fb8c702b9ddcbce9493.tar.gz ayatana-indicator-messages-24824955dd2a3dec5c624fb8c702b9ddcbce9493.tar.bz2 ayatana-indicator-messages-24824955dd2a3dec5c624fb8c702b9ddcbce9493.zip |
Removing warnings by getting the right pointer types
-rw-r--r-- | src/im-menu-item.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/im-menu-item.c b/src/im-menu-item.c index f0de2f9..965a88b 100644 --- a/src/im-menu-item.c +++ b/src/im-menu-item.c @@ -92,17 +92,17 @@ im_menu_item_init (ImMenuItem *self) if (time_group == NULL) { time_group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); } - gtk_size_group_add_widget(icon_group, priv->icon); - gtk_size_group_add_widget(user_group, priv->user); - gtk_size_group_add_widget(time_group, priv->time); + gtk_size_group_add_widget(icon_group, GTK_WIDGET(priv->icon)); + gtk_size_group_add_widget(user_group, GTK_WIDGET(priv->user)); + gtk_size_group_add_widget(time_group, GTK_WIDGET(priv->time)); - priv->hbox = gtk_hbox_new(FALSE, 3); + priv->hbox = GTK_HBOX(gtk_hbox_new(FALSE, 3)); gtk_box_pack_start(GTK_BOX(priv->hbox), GTK_WIDGET(priv->icon), FALSE, TRUE, 3); gtk_box_pack_start(GTK_BOX(priv->hbox), GTK_WIDGET(priv->user), TRUE, TRUE, 3); gtk_box_pack_start(GTK_BOX(priv->hbox), GTK_WIDGET(priv->time), FALSE, TRUE, 3); gtk_widget_show(GTK_WIDGET(priv->hbox)); - gtk_container_add(GTK_CONTAINER(self), priv->hbox); + gtk_container_add(GTK_CONTAINER(self), GTK_WIDGET(priv->hbox)); return; } @@ -155,7 +155,7 @@ time_cb (IndicateListener * listener, IndicateListenerServer * server, IndicateL strftime(timestring, 80, _("%I:%M"), structtm); gtk_label_set_label(priv->time, timestring); - gtk_widget_show(priv->time); + gtk_widget_show(GTK_WIDGET(priv->time)); } return; @@ -179,10 +179,10 @@ sender_cb (IndicateListener * listener, IndicateListenerServer * server, Indicat ImMenuItemPrivate * priv = IM_MENU_ITEM_GET_PRIVATE(self); gtk_label_set_label(priv->user, propertydata); - gtk_widget_show(priv->user); + gtk_widget_show(GTK_WIDGET(priv->user)); /* Once we have the user we'll show the menu item */ - gtk_widget_show(self); + gtk_widget_show(GTK_WIDGET(self)); return; } |