[empathy] no more need to implement empathy_search_bar_size_request



commit 68b25e741eaee424bc108fce67f2a65df4151448
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Sep 29 16:05:40 2010 +0200

    no more need to implement empathy_search_bar_size_request
    
    GtkBin is smarter now and does it for us.

 libempathy-gtk/empathy-search-bar.c |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/libempathy-gtk/empathy-search-bar.c b/libempathy-gtk/empathy-search-bar.c
index bd97c2d..9a27795 100644
--- a/libempathy-gtk/empathy-search-bar.c
+++ b/libempathy-gtk/empathy-search-bar.c
@@ -58,27 +58,6 @@ empathy_search_bar_new (EmpathyChatView *view)
 }
 
 static void
-empathy_search_bar_size_request (GtkWidget *widget,
-    GtkRequisition *requisition)
-{
-  GtkBin *bin;
-  GtkWidget *child;
-
-  bin = GTK_BIN (widget);
-  child = gtk_bin_get_child (bin);
-
-  if (child && gtk_widget_get_visible (child))
-    {
-      GtkRequisition child_requisition;
-
-      gtk_widget_size_request (child, &child_requisition);
-
-      requisition->width = child_requisition.width;
-      requisition->height = child_requisition.height;
-    }
-}
-
-static void
 empathy_search_bar_size_allocate (GtkWidget *widget,
     GtkAllocation *allocation)
 {
@@ -311,7 +290,6 @@ empathy_search_bar_class_init (EmpathySearchBarClass *class)
   g_type_class_add_private (gobject_class, sizeof (EmpathySearchBarPriv));
 
   /* Neither GtkBin nor GtkContainer seems to do this for us :( */
-  widget_class->size_request = empathy_search_bar_size_request;
   widget_class->size_allocate = empathy_search_bar_size_allocate;
 }
 



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