diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-29 22:05:40 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-10-04 16:41:29 +0800 |
commit | 68b25e741eaee424bc108fce67f2a65df4151448 (patch) | |
tree | c0b8843e65e22195ace2ba6f4ffd9d0408d18f18 /libempathy-gtk/empathy-search-bar.c | |
parent | 5a5b01af718f2db74fb131b1fa6d3cc14ad88793 (diff) | |
download | gsoc2013-empathy-68b25e741eaee424bc108fce67f2a65df4151448.tar gsoc2013-empathy-68b25e741eaee424bc108fce67f2a65df4151448.tar.gz gsoc2013-empathy-68b25e741eaee424bc108fce67f2a65df4151448.tar.bz2 gsoc2013-empathy-68b25e741eaee424bc108fce67f2a65df4151448.tar.lz gsoc2013-empathy-68b25e741eaee424bc108fce67f2a65df4151448.tar.xz gsoc2013-empathy-68b25e741eaee424bc108fce67f2a65df4151448.tar.zst gsoc2013-empathy-68b25e741eaee424bc108fce67f2a65df4151448.zip |
no more need to implement empathy_search_bar_size_request
GtkBin is smarter now and does it for us.
Diffstat (limited to 'libempathy-gtk/empathy-search-bar.c')
-rw-r--r-- | libempathy-gtk/empathy-search-bar.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libempathy-gtk/empathy-search-bar.c b/libempathy-gtk/empathy-search-bar.c index bd97c2dac..9a27795a2 100644 --- a/libempathy-gtk/empathy-search-bar.c +++ b/libempathy-gtk/empathy-search-bar.c @@ -58,27 +58,6 @@ empathy_search_bar_new (EmpathyChatView *view) } static void -empathy_search_bar_size_request (GtkWidget *widget, - GtkRequisition *requisition) -{ - GtkBin *bin; - GtkWidget *child; - - bin = GTK_BIN (widget); - 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 empathy_search_bar_size_allocate (GtkWidget *widget, GtkAllocation *allocation) { @@ -311,7 +290,6 @@ empathy_search_bar_class_init (EmpathySearchBarClass *class) g_type_class_add_private (gobject_class, sizeof (EmpathySearchBarPriv)); /* Neither GtkBin nor GtkContainer seems to do this for us :( */ - widget_class->size_request = empathy_search_bar_size_request; widget_class->size_allocate = empathy_search_bar_size_allocate; } |