modelbutton: Remove an unused field

We're not using the centered field anymore.
This commit is contained in:
Matthias Clasen 2020-12-21 17:43:29 -05:00
parent 1253296387
commit fcd449f0d4

View File

@ -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)