gnome-games r8482 - trunk/aisleriot
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8482 - trunk/aisleriot
- Date: Tue, 6 Jan 2009 18:20:02 +0000 (UTC)
Author: chpe
Date: Tue Jan 6 18:20:02 2009
New Revision: 8482
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8482&view=rev
Log:
When changing the theme fails, set the action insensitive.
Modified:
trunk/aisleriot/window.c
Modified: trunk/aisleriot/window.c
==============================================================================
--- trunk/aisleriot/window.c (original)
+++ trunk/aisleriot/window.c Tue Jan 6 18:20:02 2009
@@ -1487,7 +1487,10 @@
#if GTK_CHECK_VERSION (2, 12, 0) || (defined (HAVE_HILDON) && !defined(HAVE_MAEMO_3))
gtk_widget_error_bell (GTK_WIDGET (window));
#endif
-
+
+ /* Set this action insensitive so we don't try again */
+ gtk_action_set_sensitive (GTK_ACTION (action), FALSE);
+
/* Re-set the radio action of the current theme to active */
group = gtk_radio_action_get_group (GTK_RADIO_ACTION (action));
for (l = group; l != NULL; l = l->next) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]