diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-30 19:36:27 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-30 21:23:25 -0400 |
commit | 2c5c938f0d2bfdc60d351142eb4afa97d055986c (patch) | |
tree | c35fddc4cc1d05bf4c39d4249bd336e33d386512 /gtk/gtkfilechooserwidget.c | |
parent | cfade230ced9a28f1aefe4982790109406a6b578 (diff) | |
download | gtk+-2c5c938f0d2bfdc60d351142eb4afa97d055986c.tar.gz |
Clean up uses of gtk_toggle_button_get/set_active
Replace all uses on check buttons by the corresponding
check button api.
Diffstat (limited to 'gtk/gtkfilechooserwidget.c')
-rw-r--r-- | gtk/gtkfilechooserwidget.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index ec30098d72..12d7a14001 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -8001,8 +8001,8 @@ gtk_file_chooser_widget_set_choice (GtkFileChooser *chooser, } } } - else if (GTK_IS_TOGGLE_BUTTON (widget)) - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), g_str_equal (option, "true")); + else if (GTK_IS_CHECK_BUTTON (widget)) + gtk_check_button_set_active (GTK_CHECK_BUTTON (widget), g_str_equal (option, "true")); } static const char * @@ -8024,8 +8024,8 @@ gtk_file_chooser_widget_get_choice (GtkFileChooser *chooser, return NULL; } - else if (GTK_IS_TOGGLE_BUTTON (widget)) - return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)) ? "true" : "false"; + else if (GTK_IS_CHECK_BUTTON (widget)) + return gtk_check_button_get_active (GTK_CHECK_BUTTON (widget)) ? "true" : "false"; return NULL; } |