[empathy] EmpathyCalendarButton: Make it work without gtk_widget_show_all



commit 458a5908af2e98b9ac8abe7263720d0fbac6efcd
Author: Xavier Claessens <xavier claessens collabora co uk>
Date:   Sat Jul 28 13:37:11 2012 +0200

    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 deletions(-)
---
diff --git a/libempathy-gtk/empathy-calendar-button.c b/libempathy-gtk/empathy-calendar-button.c
index 9f4c479..ab13037 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 36d00a2..e8cce03 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]