From 75b6dbfd673890da51b7b969acfc1b7e9d644760 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 29 Sep 2010 16:10:25 +0200 Subject: individual-linker: no more need to implement size_request --- libempathy-gtk/empathy-individual-linker.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/libempathy-gtk/empathy-individual-linker.c b/libempathy-gtk/empathy-individual-linker.c index 8da456947..3aee55d78 100644 --- a/libempathy-gtk/empathy-individual-linker.c +++ b/libempathy-gtk/empathy-individual-linker.c @@ -565,31 +565,6 @@ finalize (GObject *object) G_OBJECT_CLASS (empathy_individual_linker_parent_class)->finalize (object); } -static void -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 size_allocate (GtkWidget *widget, GtkAllocation *allocation) @@ -628,7 +603,6 @@ empathy_individual_linker_class_init (EmpathyIndividualLinkerClass *klass) object_class->dispose = dispose; object_class->finalize = finalize; - widget_class->size_request = size_request; widget_class->size_allocate = size_allocate; /** -- cgit v1.2.3