From 458a5908af2e98b9ac8abe7263720d0fbac6efcd Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 28 Jul 2012 13:37:11 +0200 Subject: EmpathyCalendarButton: Make it work without gtk_widget_show_all https://bugzilla.gnome.org/show_bug.cgi?id=680449 --- libempathy-gtk/empathy-calendar-button.c | 3 +++ libempathy-gtk/empathy-contact-widget.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-calendar-button.c b/libempathy-gtk/empathy-calendar-button.c index 9f4c4795e..ab13037a7 100644 --- a/libempathy-gtk/empathy-calendar-button.c +++ b/libempathy-gtk/empathy-calendar-button.c @@ -204,6 +204,7 @@ empathy_calendar_button_init (EmpathyCalendarButton *self) gtk_button_set_alignment (GTK_BUTTON (self->priv->button_date), 0, 0.5); gtk_box_pack_start (GTK_BOX (self), self->priv->button_date, TRUE, TRUE, 0); + gtk_widget_show (self->priv->button_date); /* Clear */ self->priv->button_clear = gtk_button_new (); @@ -211,12 +212,14 @@ empathy_calendar_button_init (EmpathyCalendarButton *self) image = gtk_image_new_from_stock (GTK_STOCK_CLEAR, GTK_ICON_SIZE_MENU); gtk_button_set_image (GTK_BUTTON (self->priv->button_clear), image); + gtk_widget_show (image); g_signal_connect (self->priv->button_clear, "clicked", G_CALLBACK (empathy_calendar_button_clear_clicked), self); gtk_box_pack_start (GTK_BOX (self), self->priv->button_clear, FALSE, FALSE, 0); + gtk_widget_show (self->priv->button_clear); } static void diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 36d00a268..e8cce0373 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -468,7 +468,7 @@ contact_widget_details_update_edit (EmpathyContactWidget *self) G_CALLBACK (contact_widget_details_changed_cb), self); } - gtk_widget_show_all (w); + gtk_widget_show (w); add_row (GTK_GRID (self->priv->grid_contact), label, w); g_object_set_data ((GObject *) w, DATA_FIELD, field); -- cgit v1.2.3