]> git.eshelyaron.com Git - emacs.git/commitdiff
Declare some DEFVARs globally, not locally
authorTom Tromey <tromey@redhat.com>
Tue, 18 Jan 2011 17:28:28 +0000 (10:28 -0700)
committerTom Tromey <tromey@redhat.com>
Tue, 18 Jan 2011 17:28:28 +0000 (10:28 -0700)
* gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
(x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
Declare.
* gtkutil.c (xg_uses_old_file_dialog):
(xg_get_file_with_chooser):
(xg_tool_bar_detach_callback): Don't redeclare globals.

src/ChangeLog
src/gtkutil.c
src/gtkutil.h

index d6808bb27b7da4a55055f1ad7f7139e1d6bf1403..1b9655e9605203ba38535d2f7184b6b170940427 100644 (file)
@@ -1,3 +1,12 @@
+2011-01-18  Tom Tromey  <tromey@redhat.com>
+
+       * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
+       (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
+       Declare.
+       * gtkutil.c (xg_uses_old_file_dialog):
+       (xg_get_file_with_chooser):
+       (xg_tool_bar_detach_callback): Don't redeclare globals.
+
 2011-01-18  Tom Tromey  <tromey@redhat.com>
 
        * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
index 52512687a0742ceb7ef892dd3de5d811c1b4188c..9d55f52c9f9a1c9cc6cede60324f172def3f7ee0 100644 (file)
@@ -1536,7 +1536,6 @@ int
 xg_uses_old_file_dialog (void)
 {
 #ifdef HAVE_GTK_FILE_SELECTION_NEW
-  extern int x_gtk_use_old_file_dialog;
   return x_gtk_use_old_file_dialog;
 #else
   return 0;
@@ -1577,8 +1576,6 @@ xg_toggle_visibility_cb (GtkWidget *widget, gpointer data)
 static void
 xg_toggle_notify_cb (GObject *gobject, GParamSpec *arg1, gpointer user_data)
 {
-  extern int x_gtk_show_hidden_files;
-
   if (strcmp (arg1->name, "show-hidden") == 0)
     {
       GtkWidget *wtoggle = GTK_WIDGET (user_data);
@@ -1626,9 +1623,6 @@ xg_get_file_with_chooser (FRAME_PTR f,
   GtkFileChooserAction action = (mustmatch_p ?
                                  GTK_FILE_CHOOSER_ACTION_OPEN :
                                  GTK_FILE_CHOOSER_ACTION_SAVE);
-  extern int x_gtk_show_hidden_files;
-  extern int x_gtk_file_dialog_help_text;
-
 
   if (only_dir_p)
     action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER;
@@ -3794,7 +3788,6 @@ xg_tool_bar_detach_callback (GtkHandleBox *wbox,
                              gpointer client_data)
 {
   FRAME_PTR f = (FRAME_PTR) client_data;
-  extern int x_gtk_whole_detached_tool_bar;
 
   g_object_set (G_OBJECT (w), "show-arrow", !x_gtk_whole_detached_tool_bar,
                NULL);
index 78df4fe7863290469c9d7758d24425159ae7875e..1bc3a1e77eab416f264750fd64109b4afc452546 100644 (file)
@@ -182,6 +182,11 @@ extern void xg_initialize (void);
    to indicate that the callback should do nothing.  */
 extern int xg_ignore_gtk_scrollbar;
 
+extern int x_gtk_use_old_file_dialog;
+extern int x_gtk_show_hidden_files;
+extern int x_gtk_file_dialog_help_text;
+extern int x_gtk_whole_detached_tool_bar;
+
 #endif /* USE_GTK */
 #endif /* GTKUTIL_H */