mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
make show_arrow default to TRUE; ignore the property when api_mode !=
Thu Jul 31 23:09:02 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow default to TRUE; ignore the property when api_mode != NEW_API
This commit is contained in:
parent
5e79f817bd
commit
d047149856
@ -1,3 +1,8 @@
|
||||
Thu Jul 31 23:09:02 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
|
||||
default to TRUE; ignore the property when api_mode != NEW_API
|
||||
|
||||
2003-07-31 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf to icon, to
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Jul 31 23:09:02 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
|
||||
default to TRUE; ignore the property when api_mode != NEW_API
|
||||
|
||||
2003-07-31 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf to icon, to
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Jul 31 23:09:02 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
|
||||
default to TRUE; ignore the property when api_mode != NEW_API
|
||||
|
||||
2003-07-31 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf to icon, to
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Jul 31 23:09:02 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
|
||||
default to TRUE; ignore the property when api_mode != NEW_API
|
||||
|
||||
2003-07-31 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf to icon, to
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Jul 31 23:09:02 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
|
||||
default to TRUE; ignore the property when api_mode != NEW_API
|
||||
|
||||
2003-07-31 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf to icon, to
|
||||
|
@ -380,7 +380,7 @@ gtk_toolbar_class_init (GtkToolbarClass *klass)
|
||||
g_param_spec_boolean ("show_arrow",
|
||||
_("Show Arrow"),
|
||||
_("If an arrow should be shown if the toolbar doesn't fit"),
|
||||
FALSE,
|
||||
TRUE,
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
/* child properties */
|
||||
@ -530,7 +530,7 @@ gtk_toolbar_init (GtkToolbar *toolbar)
|
||||
priv->drag_highlight = NULL;
|
||||
|
||||
priv->menu = NULL;
|
||||
|
||||
priv->show_arrow = TRUE;
|
||||
priv->settings = NULL;
|
||||
}
|
||||
|
||||
@ -843,7 +843,7 @@ gtk_toolbar_size_request (GtkWidget *widget,
|
||||
pack_front_size += size;
|
||||
}
|
||||
|
||||
if (priv->show_arrow)
|
||||
if (priv->show_arrow && priv->api_mode == NEW_API)
|
||||
{
|
||||
gtk_widget_size_request (priv->arrow_button, &arrow_requisition);
|
||||
|
||||
@ -1014,7 +1014,7 @@ gtk_toolbar_size_allocate (GtkWidget *widget,
|
||||
needed_size += get_item_size (toolbar, GTK_WIDGET (item));
|
||||
}
|
||||
|
||||
need_arrow = (needed_size > available_size) && priv->show_arrow;
|
||||
need_arrow = (needed_size > available_size) && priv->show_arrow && priv->api_mode == NEW_API;
|
||||
|
||||
if (need_arrow)
|
||||
size = available_size - arrow_size;
|
||||
|
Loading…
Reference in New Issue
Block a user