[gtk/matthiasc/for-master] modelbutton: Remove an unused field




commit fcd449f0d42fe784e44f9f28e47a377bd52dcd6b
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 21 17:43:29 2020 -0500

    modelbutton: Remove an unused field
    
    We're not using the centered field anymore.

 gtk/gtkmodelbutton.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index b644a7fe61..b6ce026da9 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -73,7 +73,7 @@
  * and #GtkModelButton:icon properties.
  *
  * The appearance of model buttons can be influenced with the
- * #GtkModelButton:centered and #GtkModelButton:iconic properties.
+ * #GtkModelButton:iconic property.
  *
  * Model buttons have built-in support for submenus in #GtkPopoverMenu.
  * To make a GtkModelButton that opens a submenu when activated, set
@@ -177,7 +177,6 @@ struct _GtkModelButton
   GtkEventController *controller;
 
   guint active : 1;
-  guint centered : 1;
   guint iconic : 1;
   guint keep_open : 1;
 };
@@ -760,8 +759,6 @@ gtk_model_button_set_iconic (GtkModelButton *self,
       gtk_widget_add_css_class (widget, "flat");
     }
 
-  self->centered = iconic;
-
   if (!iconic)
     {
       if (self->start_indicator)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]