gnome-commander r1742 - in trunk: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1742 - in trunk: . src
- Date: Wed, 30 Apr 2008 21:10:32 +0100 (BST)
Author: epiotr
Date: Wed Apr 30 20:10:32 2008
New Revision: 1742
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1742&view=rev
Log:
gnome_cmd_key_shortcuts_dialog_new() returns response==GTK_RESPONSE_OK now
Modified:
trunk/ChangeLog
trunk/src/gnome-cmd-key-shortcuts-dialog.cc
trunk/src/gnome-cmd-key-shortcuts-dialog.h
Modified: trunk/src/gnome-cmd-key-shortcuts-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-key-shortcuts-dialog.cc (original)
+++ trunk/src/gnome-cmd-key-shortcuts-dialog.cc Wed Apr 30 20:10:32 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: trunk/src/gnome-cmd-key-shortcuts-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-key-shortcuts-dialog.h (original)
+++ trunk/src/gnome-cmd-key-shortcuts-dialog.h Wed Apr 30 20:10:32 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]