From ee234cca5708bbccf5d538f75bf85fa46aa2a274 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 29 Sep 2010 16:09:23 +0200 Subject: no more need to implement chat_size_request --- libempathy-gtk/empathy-chat.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index c14e315ed..295ee6af1 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -2535,29 +2535,6 @@ chat_create_ui (EmpathyChat *chat) g_object_unref (gui); } -static void -chat_size_request (GtkWidget *widget, - GtkRequisition *requisition) -{ - GtkBin *bin = GTK_BIN (widget); - GtkWidget *child; - - requisition->width = gtk_container_get_border_width (GTK_CONTAINER (widget)) * 2; - requisition->height = gtk_container_get_border_width (GTK_CONTAINER (widget)) * 2; - - 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 chat_size_allocate (GtkWidget *widget, GtkAllocation *allocation) @@ -2674,7 +2651,6 @@ empathy_chat_class_init (EmpathyChatClass *klass) object_class->set_property = chat_set_property; object_class->constructed = chat_constructed; - widget_class->size_request = chat_size_request; widget_class->size_allocate = chat_size_allocate; g_object_class_install_property (object_class, -- cgit v1.2.3