From e2049107304973a9e9fa978dd11e4c140bfb33b4 Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: Tue, 12 Jul 2022 16:22:59 +0200 Subject: [PATCH] print: Check button is not descendant of toggle button GtkCheckButton is not derived from GtkToggleButton anymore. This caused some issues in GtkPrinterOptionWidget which did not port handling of the button. --- gtk/gtkprinteroptionwidget.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c index 0ddef897ab..8ff622b8b3 100644 --- a/gtk/gtkprinteroptionwidget.c +++ b/gtk/gtkprinteroptionwidget.c @@ -34,7 +34,6 @@ #include "gtkliststore.h" #include "gtkcheckbutton.h" #include "gtkgrid.h" -#include "gtktogglebutton.h" #include "gtkorientable.h" #include "gtkprivate.h" #include "gtkstringlist.h" @@ -629,14 +628,14 @@ deconstruct_widgets (GtkPrinterOptionWidget *widget) } static void -check_toggled_cb (GtkToggleButton *toggle_button, +check_toggled_cb (GtkCheckButton *check_button, GtkPrinterOptionWidget *widget) { GtkPrinterOptionWidgetPrivate *priv = widget->priv; g_signal_handler_block (priv->source, priv->source_changed_handler); gtk_printer_option_set_boolean (priv->source, - gtk_toggle_button_get_active (toggle_button)); + gtk_check_button_get_active (check_button)); g_signal_handler_unblock (priv->source, priv->source_changed_handler); emit_changed (widget); }