From: Emmanuele Bassi Date: Fri, 24 Feb 2023 12:10:52 +0000 (+0000) Subject: Remove unused code in GtkButton X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~6^2~35^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1e599c91413932003d0568afd336ecdbb1ceb53d;p=gtk4.git Remove unused code in GtkButton GtkButton still has some code checking if the instance passed to gtk_button_set_label() is a GtkCheckButton; GtkCheckButton is not a GtkButton any more. --- diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index a5b0044885..318f68f308 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -19,7 +19,7 @@ * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ /** @@ -63,7 +63,6 @@ #include "gtkactionhelperprivate.h" #include "gtkbuildable.h" -#include "gtkcheckbutton.h" #include "gtkgestureclick.h" #include "gtkeventcontrollerkey.h" #include "gtkbinlayout.h" @@ -829,8 +828,6 @@ gtk_button_set_label (GtkButton *button, gtk_label_set_use_underline (GTK_LABEL (child), priv->use_underline); gtk_label_set_mnemonic_widget (GTK_LABEL (child), GTK_WIDGET (button)); } - if (GTK_IS_CHECK_BUTTON (button)) - gtk_label_set_xalign (GTK_LABEL (child), 0.0); gtk_button_set_child (button, child); }