diff options
| author | Lars Ingebrigtsen | 2019-07-28 12:49:30 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-07-28 12:49:30 +0200 |
| commit | 09b204142ee49b4d613b5590460f868bdc929b90 (patch) | |
| tree | 23768c5a49cdf811fad52f018fe3aa11e957fffa /src | |
| parent | 848712b481e16f5c96fed6344c2f7d71a8d52ed1 (diff) | |
| download | emacs-09b204142ee49b4d613b5590460f868bdc929b90.tar.gz emacs-09b204142ee49b4d613b5590460f868bdc929b90.zip | |
Always set the state of the "Show hidden files" gtk button
* src/gtkutil.c (xg_get_file_with_chooser): Always set the state
of the "Show hidden files" button (bug#23977). If not, the
visible state and the actual state get out of sync.
Diffstat (limited to 'src')
| -rw-r--r-- | src/gtkutil.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index 1d15aec253e..16d765533a7 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -2035,11 +2035,11 @@ xg_get_file_with_chooser (struct frame *f, | |||
| 2035 | gtk_widget_show (wbox); | 2035 | gtk_widget_show (wbox); |
| 2036 | wtoggle = gtk_check_button_new_with_label ("Show hidden files."); | 2036 | wtoggle = gtk_check_button_new_with_label ("Show hidden files."); |
| 2037 | 2037 | ||
| 2038 | if (x_gtk_show_hidden_files) | 2038 | g_object_set (G_OBJECT (filewin), "show-hidden", |
| 2039 | { | 2039 | x_gtk_show_hidden_files, NULL); |
| 2040 | g_object_set (G_OBJECT (filewin), "show-hidden", TRUE, NULL); | 2040 | gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wtoggle), |
| 2041 | gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wtoggle), TRUE); | 2041 | x_gtk_show_hidden_files); |
| 2042 | } | 2042 | |
| 2043 | gtk_widget_show (wtoggle); | 2043 | gtk_widget_show (wtoggle); |
| 2044 | g_signal_connect (G_OBJECT (wtoggle), "clicked", | 2044 | g_signal_connect (G_OBJECT (wtoggle), "clicked", |
| 2045 | G_CALLBACK (xg_toggle_visibility_cb), filewin); | 2045 | G_CALLBACK (xg_toggle_visibility_cb), filewin); |