cpw.qulogic.gtk3: b07f43f7: fix indentation and remove some unused c...

malu at pidgin.im malu at pidgin.im
Mon Nov 29 17:16:23 EST 2010


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

Changelog: 

fix indentation and remove some unused code

Changes against parent 25a492cc291bc51e0837931deaf9a5aaf84c7e76

  patched  pidgin/gtkblist.c

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	b24e2fbd521d7d637e8df8ba86bef92bd487a2d8
+++ pidgin/gtkblist.c	f807af4c5742ed53211f26a0e02aa49fe4fe7ef5
@@ -3028,7 +3028,7 @@ pidgin_blist_paint_tip(GtkWidget *widget
 	for(l = gtkblist->tooltipdata; l; l = l->next)
 	{
 		struct tooltip_data *td = l->data;
-    cairo_t *cr = gdk_cairo_create(GDK_DRAWABLE(gtk_widget_get_window(gtkblist->tipwindow)));
+    	cairo_t *cr = gdk_cairo_create(GDK_DRAWABLE(gtk_widget_get_window(gtkblist->tipwindow)));
       
 		if (td->avatar && pidgin_gdk_pixbuf_is_opaque(td->avatar))
 		{
@@ -3036,7 +3036,7 @@ pidgin_blist_paint_tip(GtkWidget *widget
 				gtk_paint_flat_box(style, cr, GTK_STATE_NORMAL, GTK_SHADOW_OUT,
 						gtkblist->tipwindow, "tooltip",
 						TOOLTIP_BORDER -1, current_height -1, td->avatar_width +2,
-            td->avatar_height + 2);
+            			td->avatar_height + 2);
 			else
 				gtk_paint_flat_box(style, cr, GTK_STATE_NORMAL, GTK_SHADOW_OUT,
 						gtkblist->tipwindow, "tooltip",
@@ -3046,55 +3046,32 @@ pidgin_blist_paint_tip(GtkWidget *widget
 
 		if (td->status_icon) {
 			if (dir == GTK_TEXT_DIR_RTL) {
-        gdk_cairo_set_source_pixbuf(cr, td->status_icon,
-          max_width - TOOLTIP_BORDER - status_size, current_height);
-        cairo_paint(cr);
-        /*
-				gdk_draw_pixbuf(GDK_DRAWABLE(gtkblist->tipwindow->window), NULL, td->status_icon,
-				                0, 0, max_width - TOOLTIP_BORDER - status_size, current_height, -1, -1, GDK_RGB_DITHER_NONE, 0, 0);
-        */
-      } else {
-        gdk_cairo_set_source_pixbuf(cr, td->status_icon, TOOLTIP_BORDER, current_height);
-        cairo_paint(cr);
-        /*
-				gdk_draw_pixbuf(GDK_DRAWABLE(gtkblist->tipwindow->window), NULL, td->status_icon,
-				                0, 0, TOOLTIP_BORDER, current_height, -1 , -1, GDK_RGB_DITHER_NONE, 0, 0);
-        */
-      }
-    }
+        		gdk_cairo_set_source_pixbuf(cr, td->status_icon,
+          			max_width - TOOLTIP_BORDER - status_size, current_height);
+        		cairo_paint(cr);
+      		} else {
+        		gdk_cairo_set_source_pixbuf(cr, td->status_icon, TOOLTIP_BORDER, current_height);
+        		cairo_paint(cr);
+      		}
+    	}
 
-		if(td->avatar) {
+		if (td->avatar) {
 			if (dir == GTK_TEXT_DIR_RTL) {
-        gdk_cairo_set_source_pixbuf(cr, td->avatar, TOOLTIP_BORDER, current_height);
-        cairo_paint(cr);
-        /*
-				gdk_draw_pixbuf(GDK_DRAWABLE(gtkblist->tipwindow->window), NULL,
-						td->avatar, 0, 0, TOOLTIP_BORDER, current_height, -1, -1, GDK_RGB_DITHER_NONE, 0, 0);
-        */
-      } else {
-        gdk_cairo_set_source_pixbuf(cr, td->avatar,
-          max_width - (td->avatar_width + TOOLTIP_BORDER), current_height);
-        cairo_paint(cr);
-        /*
-				gdk_draw_pixbuf(GDK_DRAWABLE(gtkblist->tipwindow->window), NULL,
-						td->avatar, 0, 0, max_width - (td->avatar_width + TOOLTIP_BORDER),
-						current_height, -1 , -1, GDK_RGB_DITHER_NONE, 0, 0);
-        */
-      }
+        		gdk_cairo_set_source_pixbuf(cr, td->avatar, TOOLTIP_BORDER,
+		        	current_height);
+        		cairo_paint(cr);
+      		} else {
+        		gdk_cairo_set_source_pixbuf(cr, td->avatar,
+          			max_width - (td->avatar_width + TOOLTIP_BORDER), current_height);
+        		cairo_paint(cr);
+      		}
 		}
 
 		if (!td->avatar_is_prpl_icon && td->prpl_icon) {
-      gdk_cairo_set_source_pixbuf(cr, td->prpl_icon, prpl_col,
-        current_height + ((td->name_height / 2) - (PRPL_SIZE / 2)));
-      cairo_paint(cr);
-      /*
-			gdk_draw_pixbuf(GDK_DRAWABLE(gtkblist->tipwindow->window), NULL, td->prpl_icon,
-					0, 0,
-					prpl_col,
-					current_height + ((td->name_height / 2) - (PRPL_SIZE / 2)),
-					-1 , -1, GDK_RGB_DITHER_NONE, 0, 0);
-      */
-    }
+      		gdk_cairo_set_source_pixbuf(cr, td->prpl_icon, prpl_col,
+        		current_height + ((td->name_height / 2) - (PRPL_SIZE / 2)));
+      		cairo_paint(cr);
+    	}
 
 		if (td->name_layout) {
 			if (dir == GTK_TEXT_DIR_RTL) {
@@ -3123,7 +3100,7 @@ pidgin_blist_paint_tip(GtkWidget *widget
 			}
 		}
 
-    cairo_destroy(cr);
+    	cairo_destroy(cr);
 		current_height += MAX(td->name_height + td->height, td->avatar_height) + td->padding;
 	}
 	return FALSE;


More information about the Commits mailing list