From 68b25e741eaee424bc108fce67f2a65df4151448 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 29 Sep 2010 16:05:40 +0200 Subject: 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 file changed, 22 deletions(-) diff --git a/libempathy-gtk/empathy-search-bar.c b/libempathy-gtk/empathy-search-bar.c index bd97c2dac..9a27795a2 100644 --- a/libempathy-gtk/empathy-search-bar.c +++ b/libempathy-gtk/empathy-search-bar.c @@ -57,27 +57,6 @@ empathy_search_bar_new (EmpathyChatView *view) return GTK_WIDGET (self); } -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; } -- cgit v1.2.3