summaryrefslogtreecommitdiff
path: root/src/gtkutil.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-01-18 10:28:28 -0700
committerTom Tromey <tromey@redhat.com>2011-01-18 10:28:28 -0700
commitcab0ba989e31c0ba8272adc1dbb2615f61ecb35f (patch)
treec1323eeffa778ac52225c85df8d7c4b86d2806b3 /src/gtkutil.c
parent422745d0bc0a7031231187ecab65812234595944 (diff)
downloademacs-cab0ba989e31c0ba8272adc1dbb2615f61ecb35f.tar.gz
Declare some DEFVARs globally, not locally
* 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.
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r--src/gtkutil.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 52512687a07..9d55f52c9f9 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -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);