bug-buddy r2744 - in branches/gnome-2-24: . src



Author: cosimoc
Date: Mon Oct 13 19:50:49 2008
New Revision: 2744
URL: http://svn.gnome.org/viewvc/bug-buddy?rev=2744&view=rev

Log:
2008-10-13  Cosimo Cecchi  <cosimoc gnome org>

	* src/bug-buddy.c: (on_send_clicked):
	Actually hide the "Send" button after clicking it (#556129).


Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/src/bug-buddy.c

Modified: branches/gnome-2-24/src/bug-buddy.c
==============================================================================
--- branches/gnome-2-24/src/bug-buddy.c	(original)
+++ branches/gnome-2-24/src/bug-buddy.c	Mon Oct 13 19:50:49 2008
@@ -1057,6 +1057,12 @@
 			return;
 	}
 
+	/* hide the send button immediately so that the user can't click
+	 * it more than once (this will create multiple bugs).
+	 */
+	gtk_widget_hide (GTK_WIDGET (
+			gtk_builder_get_object (ui, "send-button")));
+
 	gtk_widget_show (GTK_WIDGET (
 			gtk_builder_get_object (ui, "progressbar")));
 	gtk_widget_hide (GTK_WIDGET (



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]