diff --git a/ChangeLog b/ChangeLog index ac582495bf..1b3dba0be4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 31 23:09:02 2003 Soeren Sandmann + + * 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 * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf to icon, to diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ac582495bf..1b3dba0be4 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Thu Jul 31 23:09:02 2003 Soeren Sandmann + + * 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 * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf to icon, to diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index ac582495bf..1b3dba0be4 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Thu Jul 31 23:09:02 2003 Soeren Sandmann + + * 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 * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf to icon, to diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index ac582495bf..1b3dba0be4 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Thu Jul 31 23:09:02 2003 Soeren Sandmann + + * 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 * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf to icon, to diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index ac582495bf..1b3dba0be4 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Thu Jul 31 23:09:02 2003 Soeren Sandmann + + * 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 * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf to icon, to diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index b77d8d7b1f..2ad65e552b 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -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;