forked from AuroraMiddleware/gtk
Removed size_request from GtkMenuBar
This commit is contained in:
parent
0f9c04769b
commit
e9f541dc51
@ -68,6 +68,12 @@ static void gtk_menu_bar_get_property (GObject *object,
|
|||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
static void gtk_menu_bar_size_request (GtkWidget *widget,
|
static void gtk_menu_bar_size_request (GtkWidget *widget,
|
||||||
GtkRequisition *requisition);
|
GtkRequisition *requisition);
|
||||||
|
static void gtk_menu_bar_get_preferred_width (GtkWidget *widget,
|
||||||
|
gint *minimum,
|
||||||
|
gint *natural);
|
||||||
|
static void gtk_menu_bar_get_preferred_height (GtkWidget *widget,
|
||||||
|
gint *minimum,
|
||||||
|
gint *natural);
|
||||||
static void gtk_menu_bar_size_allocate (GtkWidget *widget,
|
static void gtk_menu_bar_size_allocate (GtkWidget *widget,
|
||||||
GtkAllocation *allocation);
|
GtkAllocation *allocation);
|
||||||
static gint gtk_menu_bar_draw (GtkWidget *widget,
|
static gint gtk_menu_bar_draw (GtkWidget *widget,
|
||||||
@ -98,7 +104,8 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
|
|||||||
gobject_class->get_property = gtk_menu_bar_get_property;
|
gobject_class->get_property = gtk_menu_bar_get_property;
|
||||||
gobject_class->set_property = gtk_menu_bar_set_property;
|
gobject_class->set_property = gtk_menu_bar_set_property;
|
||||||
|
|
||||||
widget_class->size_request = gtk_menu_bar_size_request;
|
widget_class->get_preferred_width = gtk_menu_bar_get_preferred_width;
|
||||||
|
widget_class->get_preferred_height = gtk_menu_bar_get_preferred_height;
|
||||||
widget_class->size_allocate = gtk_menu_bar_size_allocate;
|
widget_class->size_allocate = gtk_menu_bar_size_allocate;
|
||||||
widget_class->draw = gtk_menu_bar_draw;
|
widget_class->draw = gtk_menu_bar_draw;
|
||||||
widget_class->hierarchy_changed = gtk_menu_bar_hierarchy_changed;
|
widget_class->hierarchy_changed = gtk_menu_bar_hierarchy_changed;
|
||||||
@ -347,6 +354,30 @@ gtk_menu_bar_size_request (GtkWidget *widget,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gtk_menu_bar_get_preferred_width (GtkWidget *widget,
|
||||||
|
gint *minimum,
|
||||||
|
gint *natural)
|
||||||
|
{
|
||||||
|
GtkRequisition requisition;
|
||||||
|
|
||||||
|
gtk_menu_bar_size_request (widget, &requisition);
|
||||||
|
|
||||||
|
*minimum = *natural = requisition.width;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gtk_menu_bar_get_preferred_height (GtkWidget *widget,
|
||||||
|
gint *minimum,
|
||||||
|
gint *natural)
|
||||||
|
{
|
||||||
|
GtkRequisition requisition;
|
||||||
|
|
||||||
|
gtk_menu_bar_size_request (widget, &requisition);
|
||||||
|
|
||||||
|
*minimum = *natural = requisition.height;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_menu_bar_size_allocate (GtkWidget *widget,
|
gtk_menu_bar_size_allocate (GtkWidget *widget,
|
||||||
GtkAllocation *allocation)
|
GtkAllocation *allocation)
|
||||||
|
Loading…
Reference in New Issue
Block a user