diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-29 22:09:23 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-10-04 16:41:29 +0800 |
commit | ee234cca5708bbccf5d538f75bf85fa46aa2a274 (patch) | |
tree | 9bded45dc154a96576d61e3906505bbb5996b643 /libempathy-gtk | |
parent | 68b25e741eaee424bc108fce67f2a65df4151448 (diff) | |
download | gsoc2013-empathy-ee234cca5708bbccf5d538f75bf85fa46aa2a274.tar gsoc2013-empathy-ee234cca5708bbccf5d538f75bf85fa46aa2a274.tar.gz gsoc2013-empathy-ee234cca5708bbccf5d538f75bf85fa46aa2a274.tar.bz2 gsoc2013-empathy-ee234cca5708bbccf5d538f75bf85fa46aa2a274.tar.lz gsoc2013-empathy-ee234cca5708bbccf5d538f75bf85fa46aa2a274.tar.xz gsoc2013-empathy-ee234cca5708bbccf5d538f75bf85fa46aa2a274.tar.zst gsoc2013-empathy-ee234cca5708bbccf5d538f75bf85fa46aa2a274.zip |
no more need to implement chat_size_request
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | 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 c14e315ed..295ee6af1 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, |