summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbutton.h
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-07-08 18:20:45 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-07-08 18:20:45 +0000
commit7913e63f692a7f7b155fe07246d69c58f4087688 (patch)
treeba5fed8f6268c7afd187dcb6a1f34270672957f4 /gtk/gtktoolbutton.h
parentb3b16bebcf3a28475190b764091442e7be18fdb2 (diff)
downloadgtk+-7913e63f692a7f7b155fe07246d69c58f4087688.tar.gz
remove correction on x when detail is "menuitem". With the new menu look
Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x when detail is "menuitem". With the new menu look is isn't needed anymore. * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a resize here, so that tool items will get a chance to relayout themselves based on the toolbar configuration. change DEFAULT_SPACE_SIZE to 4 instead of 5 * gtk/gtktoolbar.c Get rid of "!GTK_BIN (item)->child means separator". Separators are widgets in their own right change DEFAULT_SPACE_SIZE to 4 instead of 5 (get_space_size): remove this function (toolbar_item_is_homogeneous): new function * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_size_request): new function. Tue Jul 8 14:10:35 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoggletoolbutton.h: use private data, add new internal function _gtk_toggle_tool_button_get_button() * gtk/gtktoolbutton.h: move to private data * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new private data.
Diffstat (limited to 'gtk/gtktoolbutton.h')
-rw-r--r--gtk/gtktoolbutton.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/gtk/gtktoolbutton.h b/gtk/gtktoolbutton.h
index e2c6efbfe7..e002e14a52 100644
--- a/gtk/gtktoolbutton.h
+++ b/gtk/gtktoolbutton.h
@@ -33,6 +33,7 @@ G_BEGIN_DECLS
#define GTK_IS_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOL_BUTTON))
#define GTK_IS_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), GTK_TYPE_TOOL_BUTTON))
#define GTK_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_TOOL_BUTTON, GtkToolButtonClass))
+#define GTK_TOOL_ITEM_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_TOOL_BUTTON, GtkToolButtonPrivate))
typedef struct _GtkToolButton GtkToolButton;
typedef struct _GtkToolButtonClass GtkToolButtonClass;
@@ -42,14 +43,8 @@ struct _GtkToolButton
{
GtkToolItem parent;
- GtkWidget *button;
-
- gchar *stock_id;
- gchar *label_text;
- GtkWidget *label_widget;
- GtkWidget *icon_widget;
-
- guint use_underline : 1;
+ /*< private >*/
+ GtkToolButtonPrivate *priv;
};
struct _GtkToolButtonClass
@@ -84,6 +79,9 @@ void gtk_tool_button_set_label_widget (GtkToolButton *button,
GtkWidget *label_widget);
GtkWidget * gtk_tool_button_get_label_widget (GtkToolButton *button);
+/* internal function */
+GtkWidget *_gtk_tool_button_get_button (GtkToolButton *button);
+
G_END_DECLS
#endif /* __GTK_TOOL_BUTTON_H__ */