* gtkutil.c: Make use_old_gtk_file_dialog non-static.
(xg_initialize): Moved DEFVAR_BOOL for use_old_gtk_file_dialog ...
* xfns.c (syms_of_xfns): ... to here.
2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+ * gtkutil.h: Declare use_old_gtk_file_dialog.
+
+ * gtkutil.c: Make use_old_gtk_file_dialog non-static.
+ (xg_initialize): Moved DEFVAR_BOOL for use_old_gtk_file_dialog ...
+ * xfns.c (syms_of_xfns): ... to here.
+
* gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
it doesn't start with /.
};
#ifdef HAVE_GTK_FILE_BOTH
-static int use_old_gtk_file_dialog;
+int use_old_gtk_file_dialog;
#endif
"gtk-key-theme-name",
"Emacs",
EMACS_CLASS);
-
-#ifdef HAVE_GTK_FILE_BOTH
- DEFVAR_BOOL ("use-old-gtk-file-dialog", &use_old_gtk_file_dialog,
- doc: /* *Non-nil means that the old GTK file selection dialog is used.
- If nil the new GTK file chooser is used instead. To turn off
- all file dialogs set the variable `use-file-dialog'. */);
- use_old_gtk_file_dialog = 0;
-#endif
}
#endif /* USE_GTK */
struct _widget_value *free_list;
} widget_value;
+#ifdef HAVE_GTK_FILE_BOTH
+extern int use_old_gtk_file_dialog;
+#endif
+
extern widget_value *malloc_widget_value P_ ((void));
extern void free_widget_value P_ ((widget_value *));
Fprovide (intern ("x-toolkit"), Qnil);
Fprovide (intern ("gtk"), Qnil);
+#ifdef HAVE_GTK_FILE_BOTH
+ DEFVAR_BOOL ("use-old-gtk-file-dialog", &use_old_gtk_file_dialog,
+ doc: /* *Non-nil means that the old GTK file selection dialog is used.
+If nil the new GTK file chooser is used instead. To turn off
+all file dialogs set the variable `use-file-dialog'. */);
+ use_old_gtk_file_dialog = 0;
+#endif
+
DEFVAR_LISP ("gtk-version-string", &Vgtk_version_string,
doc: /* Version info for GTK+. */);
{