pidgin: d4f448ad: Leave the icon always on the right (rega...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Mon Jun 22 00:20:30 EDT 2009


-----------------------------------------------------------------
Revision: d4f448adc2a9753af706e001358285d3041fa091
Ancestor: 350958bfea237f95cef600e16d6e10e0d059fe2d
Author: darkrain42 at pidgin.im
Date: 2009-06-22T03:41:21
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d4f448adc2a9753af706e001358285d3041fa091

Modified files:
        pidgin/gtkstatusbox.c

ChangeLog: 

Leave the icon always on the right (regardless of language direction).

It looks like the buddy list icons don't move, so why should this?

References #8691.

-------------- next part --------------
============================================================
--- pidgin/gtkstatusbox.c	059ef9bb2207716e8da06ae2b6cf397c7bfc85ae
+++ pidgin/gtkstatusbox.c	0ca7c00b230a7a904aa2af77b06cf7a7463e7dcc
@@ -2045,17 +2045,11 @@ pidgin_status_box_size_allocate(GtkWidge
 
 	if (status_box->icon_box)
 	{
-		GtkTextDirection dir = gtk_widget_get_direction(widget);
 		parent_alc.width -= (parent_alc.height + border_width);
 		icon_alc = parent_alc;
 		icon_alc.height = MAX(1, icon_alc.height) - 2;
 		icon_alc.width = icon_alc.height;
-		if (dir == GTK_TEXT_DIR_RTL) {
-			icon_alc.x = parent_alc.x;
-			parent_alc.x += icon_alc.width + border_width;
-		} else {
-			icon_alc.x = allocation->width - (icon_alc.width + border_width + 1);
-		}
+		icon_alc.x = allocation->width - (icon_alc.width + border_width + 1);
 		icon_alc.y += 1;
 
 		if (status_box->icon_size != icon_alc.height)


More information about the Commits mailing list