gnome-commander r1743 - in branches/gcmd-1-3: . src



Author: epiotr
Date: Wed Apr 30 20:26:24 2008
New Revision: 1743
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1743&view=rev

Log:
gnome_cmd_key_shortcuts_dialog_new() returns response==GTK_RESPONSE_OK now

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/gnome-cmd-key-shortcuts-dialog.cc
   branches/gcmd-1-3/src/gnome-cmd-key-shortcuts-dialog.h

Modified: branches/gcmd-1-3/src/gnome-cmd-key-shortcuts-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-key-shortcuts-dialog.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-key-shortcuts-dialog.cc	Wed Apr 30 20:26:24 2008
@@ -249,17 +249,19 @@
 }
 
 
-void gnome_cmd_key_shortcuts_dialog_new (GnomeCmdUserActions &user_actions)
+gboolean gnome_cmd_key_shortcuts_dialog_new (GnomeCmdUserActions &user_actions)
 {
     GnomeCmdKeyShortcutsDialog::user_actions = &user_actions;        // ugly hack, but can't come to any better method of passing data to gnome_cmd_key_shortcuts_dialog_init ()
 
     GtkWidget *dialog = gtk_widget_new (GNOME_CMD_TYPE_KEY_SHORTCUTS_DIALOG, NULL);
 
-    g_return_if_fail (dialog != NULL);
+    g_return_val_if_fail (dialog != NULL, FALSE);
 
-    gtk_dialog_run (GTK_DIALOG (dialog));
+    gint result = gtk_dialog_run (GTK_DIALOG (dialog));
 
     gtk_widget_destroy (dialog);
+
+    return result==GTK_RESPONSE_OK;
 }
 
 

Modified: branches/gcmd-1-3/src/gnome-cmd-key-shortcuts-dialog.h
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-key-shortcuts-dialog.h	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-key-shortcuts-dialog.h	Wed Apr 30 20:26:24 2008
@@ -21,6 +21,6 @@
 
 #include "gnome-cmd-user-actions.h"
 
-void gnome_cmd_key_shortcuts_dialog_new (GnomeCmdUserActions &user_actions);
+gboolean gnome_cmd_key_shortcuts_dialog_new (GnomeCmdUserActions &user_actions);
 
 #endif // __GNOME_CMD_KEY_SHORTCUTS_DIALOG_H__



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