mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Remove size_request from GtkLayout
This commit is contained in:
parent
909a005cb2
commit
86cb8d02d3
@ -105,8 +105,12 @@ static void gtk_layout_finalize (GObject *object);
|
||||
static void gtk_layout_realize (GtkWidget *widget);
|
||||
static void gtk_layout_unrealize (GtkWidget *widget);
|
||||
static void gtk_layout_map (GtkWidget *widget);
|
||||
static void gtk_layout_size_request (GtkWidget *widget,
|
||||
GtkRequisition *requisition);
|
||||
static void gtk_layout_get_preferred_width (GtkWidget *widget,
|
||||
gint *minimum,
|
||||
gint *natural);
|
||||
static void gtk_layout_get_preferred_height (GtkWidget *widget,
|
||||
gint *minimum,
|
||||
gint *natural);
|
||||
static void gtk_layout_size_allocate (GtkWidget *widget,
|
||||
GtkAllocation *allocation);
|
||||
static gint gtk_layout_draw (GtkWidget *widget,
|
||||
@ -651,7 +655,8 @@ gtk_layout_class_init (GtkLayoutClass *class)
|
||||
widget_class->realize = gtk_layout_realize;
|
||||
widget_class->unrealize = gtk_layout_unrealize;
|
||||
widget_class->map = gtk_layout_map;
|
||||
widget_class->size_request = gtk_layout_size_request;
|
||||
widget_class->get_preferred_width = gtk_layout_get_preferred_width;
|
||||
widget_class->get_preferred_height = gtk_layout_get_preferred_height;
|
||||
widget_class->size_allocate = gtk_layout_size_allocate;
|
||||
widget_class->draw = gtk_layout_draw;
|
||||
widget_class->style_set = gtk_layout_style_set;
|
||||
@ -933,11 +938,19 @@ gtk_layout_unrealize (GtkWidget *widget)
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_layout_size_request (GtkWidget *widget,
|
||||
GtkRequisition *requisition)
|
||||
gtk_layout_get_preferred_width (GtkWidget *widget,
|
||||
gint *minimum,
|
||||
gint *natural)
|
||||
{
|
||||
requisition->width = 0;
|
||||
requisition->height = 0;
|
||||
*minimum = *natural = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_layout_get_preferred_height (GtkWidget *widget,
|
||||
gint *minimum,
|
||||
gint *natural)
|
||||
{
|
||||
*minimum = *natural = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user