mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 17:00:19 +00:00
Make get_layout_manager_type() public
The inspector, and other tools introspecting the widget structure like gtk-builder-tool and Glade, may very well want to access the default layout manager used by a class, especially if there are layout properties involved, without having a whitelist of widget/layout manager associations.
This commit is contained in:
parent
59c6862a03
commit
fe473dbef8
@ -707,8 +707,6 @@ static void gtk_widget_update_input_shape (GtkWidget *widget);
|
||||
|
||||
static gboolean gtk_widget_class_get_visible_by_default (GtkWidgetClass *widget_class);
|
||||
|
||||
static GType gtk_widget_class_get_layout_manager_type (GtkWidgetClass *widget_class);
|
||||
|
||||
static void remove_parent_surface_transform_changed_listener (GtkWidget *widget);
|
||||
static void add_parent_surface_transform_changed_listener (GtkWidget *widget);
|
||||
|
||||
@ -13607,7 +13605,17 @@ gtk_widget_class_set_layout_manager_type (GtkWidgetClass *widget_class,
|
||||
priv->layout_manager_type = type;
|
||||
}
|
||||
|
||||
static GType
|
||||
/**
|
||||
* gtk_widget_class_get_layout_manager_type:
|
||||
* @widget_class: a #GtkWidgetClass
|
||||
*
|
||||
* Retrieves the type of the #GtkLayoutManager used by the #GtkWidget class.
|
||||
*
|
||||
* See also: gtk_widget_class_set_layout_manager_type()
|
||||
*
|
||||
* Returns: a #GtkLayoutManager subclass, or %G_TYPE_INVALID
|
||||
*/
|
||||
GType
|
||||
gtk_widget_class_get_layout_manager_type (GtkWidgetClass *widget_class)
|
||||
{
|
||||
GtkWidgetClassPrivate *priv;
|
||||
|
@ -417,6 +417,8 @@ GtkLayoutManager * gtk_widget_get_layout_manager (GtkWidget *widge
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_widget_class_set_layout_manager_type (GtkWidgetClass *widget_class,
|
||||
GType type);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_widget_class_get_layout_manager_type (GtkWidgetClass *widget_class);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_widget_add_accelerator (GtkWidget *widget,
|
||||
|
Loading…
Reference in New Issue
Block a user