diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2003-10-25 19:58:51 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2003-10-25 19:58:51 +0000 |
commit | 356df7f65002a47516b542ace1fe88badf9d4965 (patch) | |
tree | effb19a2188dff1b081eb353c61afa2539db64fa /gtk/gtktoolitem.c | |
parent | 3a7a64aa46ea1c312c06e17a177c81fddfa93683 (diff) | |
download | gtk+-356df7f65002a47516b542ace1fe88badf9d4965.tar.gz |
Make this function take an index and a GtkToolItem.
Thu Oct 23 21:55:10 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
this function take an index and a GtkToolItem.
* tests/testtoolbar.c (main): Make "Show Arrow" default to
true. Make one of the separators !draw and expand.
Update for new highlight_drop_location() API.
* gtk/gtktoolitem.[ch]: Remove "pack_end" property
* gtk/gtktoolbar.h: Formatting fixes.
* gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
separator tool items to expand.
(logical_to_physical, physical_to_logical): Fix off-by-one errors
(Fix #125472, Marco Pesenti Gritti)
* gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
(gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
return FALSE, not TRUE.
(gtk_separator_too_item_{set|get}_property,
(gtk_separator_tool_item_{set|get}_draw): new functions
Diffstat (limited to 'gtk/gtktoolitem.c')
-rw-r--r-- | gtk/gtktoolitem.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c index 8ec7a0ad2a..e7ac11a536 100644 --- a/gtk/gtktoolitem.c +++ b/gtk/gtktoolitem.c @@ -54,7 +54,6 @@ struct _GtkToolItemPrivate guint visible_vertical : 1; guint homogeneous : 1; guint expand : 1; - guint pack_end : 1; guint use_drag_window : 1; guint is_important : 1; @@ -672,52 +671,6 @@ gtk_tool_item_get_expand (GtkToolItem *tool_item) } /** - * gtk_tool_item_set_pack_end: - * @tool_item: a #GtkToolItem: - * @pack_end: whether @tool_item is allocated at the end of the toolbar. - * - * Sets whether @tool_item is allocated at the end of the toolbar. This is - * useful for #GtkToolItem<!-- -->s that are used as "throbbers" in - * web-browser-type applications. - * - * Since: 2.4 - **/ -void -gtk_tool_item_set_pack_end (GtkToolItem *tool_item, - gboolean pack_end) -{ - g_return_if_fail (GTK_IS_TOOL_ITEM (tool_item)); - - pack_end = pack_end != FALSE; - - if (tool_item->priv->pack_end != pack_end) - { - tool_item->priv->pack_end = pack_end; - gtk_widget_child_notify (GTK_WIDGET (tool_item), "pack_end"); - gtk_widget_queue_resize (GTK_WIDGET (tool_item)); - } -} - -/** - * gtk_tool_item_get_pack_end: - * @tool_item: a #GtkToolItem: - * - * Returns whether @tool_item is packed at the end of the toolbar. - * See gtk_tool_item_set_pack_end(). - * - * Return value: %TRUE if @tool_item is packed at the end of the toolbar. - * - * Since: 2.4 - **/ -gboolean -gtk_tool_item_get_pack_end (GtkToolItem *tool_item) -{ - g_return_val_if_fail (GTK_IS_TOOL_ITEM (tool_item), FALSE); - - return tool_item->priv->pack_end; -} - -/** * gtk_tool_item_set_homogeneous: * @tool_item: a #GtkToolItem: * @homogeneous: whether @tool_item is the same size as other homogeneous items |