changeset 12302:1b6167be6e58

[gaim-migrate @ 14606] I think this was leaking committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 03 Dec 2005 17:57:38 +0000
parents 39fca2edf7da
children 01f689cd7b49
files src/gtkblist.c
diffstat 1 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkblist.c	Sat Dec 03 06:50:41 2005 +0000
+++ b/src/gtkblist.c	Sat Dec 03 17:57:38 2005 +0000
@@ -3220,19 +3220,19 @@
 			convs = convs->next;
 		}
 		if(tooltip_text->len > 0) {
-		/* get rid of the last newline */
-		tooltip_text = g_string_truncate(tooltip_text, tooltip_text->len -1);
-		img = gtk_image_new_from_stock(GAIM_STOCK_PENDING, GTK_ICON_SIZE_MENU);
-
-		gtkblist->menutrayicon = gtk_event_box_new();
-		gtk_container_add(GTK_CONTAINER(gtkblist->menutrayicon), img);
-		gtk_widget_show(img);
-		gtk_widget_show(gtkblist->menutrayicon);
-		g_signal_connect(G_OBJECT(gtkblist->menutrayicon), "button-press-event", G_CALLBACK(menutray_press_cb), NULL);
-
-		gaim_gtk_menu_tray_append(GAIM_GTK_MENU_TRAY(gtkblist->menutray), gtkblist->menutrayicon, tooltip_text->str);
+			/* get rid of the last newline */
+			tooltip_text = g_string_truncate(tooltip_text, tooltip_text->len -1);
+			img = gtk_image_new_from_stock(GAIM_STOCK_PENDING, GTK_ICON_SIZE_MENU);
+
+			gtkblist->menutrayicon = gtk_event_box_new();
+			gtk_container_add(GTK_CONTAINER(gtkblist->menutrayicon), img);
+			gtk_widget_show(img);
+			gtk_widget_show(gtkblist->menutrayicon);
+			g_signal_connect(G_OBJECT(gtkblist->menutrayicon), "button-press-event", G_CALLBACK(menutray_press_cb), NULL);
+
+			gaim_gtk_menu_tray_append(GAIM_GTK_MENU_TRAY(gtkblist->menutray), gtkblist->menutrayicon, tooltip_text->str);
 		}
-		g_string_free(tooltip_text, FALSE);
+		g_string_free(tooltip_text, TRUE);
 	}
 }