cpw.qulogic.gtk3: 25a492cc: remove unused code

malu at pidgin.im malu at pidgin.im
Mon Nov 29 10:56:38 EST 2010


----------------------------------------------------------------------
Revision: 25a492cc291bc51e0837931deaf9a5aaf84c7e76
Parent:   ce202c346223d45ca0e8feb7ee9364c02a2fa9f7
Author:   malu at pidgin.im
Date:     11/29/10 10:48:29
Branch:   im.pidgin.cpw.qulogic.gtk3
URL: http://d.pidgin.im/viewmtn/revision/info/25a492cc291bc51e0837931deaf9a5aaf84c7e76

Changelog: 

remove unused code

Changes against parent ce202c346223d45ca0e8feb7ee9364c02a2fa9f7

  patched  pidgin/gtkstatusbox.c

-------------- next part --------------
============================================================
--- pidgin/gtkstatusbox.c	0f6b52553127f43558223805c6dcfd009a01e9cc
+++ pidgin/gtkstatusbox.c	f44313f719ab66915da650c1b822606923b23a20
@@ -1931,39 +1931,7 @@ pidgin_status_box_init (PidginStatusBox 
 
 }
 
-#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)
 {


More information about the Commits mailing list