summaryrefslogtreecommitdiff
path: root/gtk/gtktoolitem.h
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2009-07-13 19:13:59 +0200
committerMurray Cumming <murrayc@murrayc.com>2009-07-13 19:13:59 +0200
commitdad6e7343c1fbdbbe2a6ca765aabcf8b887933c9 (patch)
tree1f2565ca69346eccdac3580e16c75a717995e869 /gtk/gtktoolitem.h
parent8a294b8bb75236c52519dcb39794bedad15498df (diff)
downloadgtk+-dad6e7343c1fbdbbe2a6ca765aabcf8b887933c9.tar.gz
ToolShell: Add ellipsize, text-orientation, text-alignment and size-group.
* gtk/gtktoolshell.c: Added vfuncs to get/set ellipsize, text-orientation, text-alignment and size-group plus getter/setters to invoke these vfuncs. * gtk/gtktoolitem.[h|c]: Added getters and setters to get/set these from the parent GtkToolShell. This is in the style of the existing "properties". * gtk/gtktoolbutton.c: Updated to use the extra properties. * docs/reference/gtk/gtk-sections.txt * gtk/gtk.symbols: Updated to mention the new functions. These new "properties" are used by GtkToolPalette.
Diffstat (limited to 'gtk/gtktoolitem.h')
-rw-r--r--gtk/gtktoolitem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtktoolitem.h b/gtk/gtktoolitem.h
index a81b06bb80..7f8d9ada18 100644
--- a/gtk/gtktoolitem.h
+++ b/gtk/gtktoolitem.h
@@ -30,6 +30,7 @@
#include <gtk/gtkbin.h>
#include <gtk/gtktooltips.h>
#include <gtk/gtkmenuitem.h>
+#include <gtk/gtksizegroup.h>
G_BEGIN_DECLS
@@ -113,10 +114,14 @@ gboolean gtk_tool_item_get_is_important (GtkToolItem *tool_item);
void gtk_tool_item_set_is_important (GtkToolItem *tool_item,
gboolean is_important);
+PangoEllipsizeMode gtk_tool_item_get_ellipsize_mode (GtkToolItem *tool_item);
GtkIconSize gtk_tool_item_get_icon_size (GtkToolItem *tool_item);
GtkOrientation gtk_tool_item_get_orientation (GtkToolItem *tool_item);
GtkToolbarStyle gtk_tool_item_get_toolbar_style (GtkToolItem *tool_item);
GtkReliefStyle gtk_tool_item_get_relief_style (GtkToolItem *tool_item);
+gfloat gtk_tool_item_get_text_alignment (GtkToolItem *tool_item);
+GtkOrientation gtk_tool_item_get_text_orientation (GtkToolItem *tool_item);
+GtkSizeGroup * gtk_tool_item_get_text_size_group (GtkToolItem *tool_item);
GtkWidget * gtk_tool_item_retrieve_proxy_menu_item (GtkToolItem *tool_item);
GtkWidget * gtk_tool_item_get_proxy_menu_item (GtkToolItem *tool_item,