[empathy] individual-linker: no more need to implement size_request
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] individual-linker: no more need to implement size_request
- Date: Mon, 4 Oct 2010 09:16:14 +0000 (UTC)
commit 75b6dbfd673890da51b7b969acfc1b7e9d644760
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Sep 29 16:10:25 2010 +0200
individual-linker: no more need to implement size_request
libempathy-gtk/empathy-individual-linker.c | 26 --------------------------
1 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-linker.c b/libempathy-gtk/empathy-individual-linker.c
index 8da4569..3aee55d 100644
--- a/libempathy-gtk/empathy-individual-linker.c
+++ b/libempathy-gtk/empathy-individual-linker.c
@@ -566,31 +566,6 @@ finalize (GObject *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;
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]