[empathy] no more need to implement chat_size_request
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] no more need to implement chat_size_request
- Date: Mon, 4 Oct 2010 09:16:09 +0000 (UTC)
commit ee234cca5708bbccf5d538f75bf85fa46aa2a274
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Sep 29 16:09:23 2010 +0200
no more need to implement chat_size_request
libempathy-gtk/empathy-chat.c | 24 ------------------------
1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index c14e315..295ee6a 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -2536,29 +2536,6 @@ chat_create_ui (EmpathyChat *chat)
}
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]