Re: [Nautilus-list] Simple patch for Nautilus
- From: Zbigniew Chyla <cyba gnome pl>
- To: Darin Adler <darin eazel com>
- Cc: Nautilus <nautilus-list lists eazel com>
- Subject: Re: [Nautilus-list] Simple patch for Nautilus
- Date: Thu, 3 May 2001 10:42:42 +0200
On Wed, 2001-05-02 at 14:15:13, Darin Adler wrote:
> This patch is OK, but it's even nicer to use the
> eel_gtk_window_set_up_close_accelerator call from the eel library. You can
> (...)
Yes, it's much nicer solution :-) I've just commited the attached patch.
Zbigniew
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/nautilus/ChangeLog,v
retrieving revision 1.4565
diff -u -r1.4565 ChangeLog
--- ChangeLog 2001/05/03 02:29:52 1.4565
+++ ChangeLog 2001/05/03 08:39:33
@@ -1,3 +1,9 @@
+2001-05-03 Zbigniew Chyla <cyba gnome pl>
+
+ * src/nautilus-theme-selector.c
+ (install_theme_button_clicked_callback): Destroy fileselector after
+ pressing escape key.
+
2001-05-02 Darin Adler <darin eazel com>
* src/file-manager/fm-directory-view.c:
Index: src/nautilus-theme-selector.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-theme-selector.c,v
retrieving revision 1.51
diff -u -r1.51 nautilus-theme-selector.c
--- src/nautilus-theme-selector.c 2001/04/26 23:20:52 1.51
+++ src/nautilus-theme-selector.c 2001/05/03 08:39:35
@@ -330,11 +330,13 @@
theme_selector = NAUTILUS_THEME_SELECTOR (callback_data);
file_selection_dialog = gtk_file_selection_new (_("Select a theme folder to add as a new theme:"));
-
+
+ eel_gtk_window_set_up_close_accelerator (GTK_WINDOW (file_selection_dialog));
+
gtk_object_set_data (GTK_OBJECT (file_selection_dialog),
THEME_SELECTOR_DATA_KEY,
callback_data);
-
+
gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (file_selection_dialog)->ok_button),
"clicked",
GTK_SIGNAL_FUNC (file_selection_ok_clicked_callback),
@@ -344,7 +346,7 @@
"clicked",
GTK_SIGNAL_FUNC (file_selection_cancel_clicked_callback),
file_selection_dialog);
-
+
gtk_window_set_position (GTK_WINDOW (file_selection_dialog), GTK_WIN_POS_MOUSE);
if (theme_selector->details->parent_window != NULL) {
gtk_window_set_transient_for (GTK_WINDOW (file_selection_dialog),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]