changeset 10366:fbb78553cae1

[gaim-migrate @ 11584] (14:32:15) SimGuy: grays the delete button on new pounces (14:32:39) SimGuy: safe for both HEAD and oldstatus (patch applies cleanly to both, since the gtkpounce.c file has not been touched since forever (14:32:44) SimGuy: ) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 14 Dec 2004 19:36:23 +0000
parents d2f999970f91
children 5fe89d2df440
files src/gtkpounce.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkpounce.c	Tue Dec 14 05:16:40 2004 +0000
+++ b/src/gtkpounce.c	Tue Dec 14 19:36:23 2004 +0000
@@ -635,6 +635,8 @@
 	/* Delete button */
 	button = gtk_button_new_from_stock(GTK_STOCK_DELETE);
 	gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0);
+	if (cur_pounce == NULL)
+		gtk_widget_set_sensitive(button, FALSE);
 	gtk_widget_show(button);
 
 	g_signal_connect(G_OBJECT(button), "clicked",