# HG changeset patch # User Marcus Lundblad # Date 1291045709 0 # Node ID 4c36e93c422519720600e03d1dce74b025145146 # Parent 28cfdda1f391ecbe230eb45ac24af8299b98844c remove unused code diff -r 28cfdda1f391 -r 4c36e93c4225 pidgin/gtkstatusbox.c --- a/pidgin/gtkstatusbox.c Mon Nov 29 13:09:01 2010 +0000 +++ b/pidgin/gtkstatusbox.c Mon Nov 29 15:48:29 2010 +0000 @@ -1931,38 +1931,6 @@ } -#if 0 -static void -pidgin_status_box_get_preferred_size(GtkWidget *widget, - GtkRequisition *minimum_size, GtkRequisition *natural_size) -{ - GtkRequisition box_min_req; - GtkRequisition box_nat_req; - gint border_width = gtk_container_get_border_width(GTK_CONTAINER (widget)); - - gtk_widget_get_preferred_size(PIDGIN_STATUS_BOX(widget)->toggle_button, - minimum_size, natural_size); - - /* Make this icon the same size as other buddy icons in the list; unless it already wants to be bigger */ - minimum_size->height = MAX(minimum_size->height, 34); - minimum_size->height += border_width * 2; - natural_size->height = MAX(minium_size->height, 34); - natural_size->height += border_width * 2; - - /* If the gtkimhtml is visible, then add some additional padding */ - gtk_widget_get_preferred_size(PIDGIN_STATUS_BOX(widget)->vbox, &box_min_req, &box_nat_req); - - if (box_min_req.height > 1) - minimum_size->height += box_min_req.height + border_width * 2; - - if (box_nat_req.height > 1) - natural_size->height += box_nat_req.height + border_width * 2; - - minimum_size->width = 1; - natural_size->width = 1; -} -#endif - static void pidgin_status_box_get_preferred_height(GtkWidget *widget, gint *minimum_height, gint *natural_height)