summaryrefslogtreecommitdiff
path: root/gtk/gtkstyle.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-04-02 03:47:25 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-04-02 03:47:25 +0000
commitdac3b3a168558171b452d75d5692f6fb216a5294 (patch)
tree1347c6c3468af4f7114a47e890a992e95d8be003 /gtk/gtkstyle.h
parentd3b826ba342302627ab2b033601b6eae44b4eb5d (diff)
downloadgtk+-dac3b3a168558171b452d75d5692f6fb216a5294.tar.gz
Add boxed type for GtkRequistion. Use it for ::size-request.
Sun Apr 1 21:37:22 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs: Add boxed type for GtkRequistion. Use it for ::size-request. * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs: Add a new GtkBorder structure useful for geometry properties for widgets. Add corresponding GTK_TYPE_BORDER. * gtk/gtkwidget.c (gtk_widget_class_install_style_property): Support automatic parser selection like gtk_settings_install_property_parser(). * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export functionality for use by gtk_widget_class_install_style_property. Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION. Sun Apr 1 20:48:59 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char g_param_spec_unichar().
Diffstat (limited to 'gtk/gtkstyle.h')
-rw-r--r--gtk/gtkstyle.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkstyle.h b/gtk/gtkstyle.h
index e19b02f5c9..a07965f5ce 100644
--- a/gtk/gtkstyle.h
+++ b/gtk/gtkstyle.h
@@ -46,6 +46,7 @@ extern "C" {
/* Some forward declarations needed to rationalize the header
* files.
*/
+typedef struct _GtkBorder GtkBorder;
typedef struct _GtkStyle GtkStyle;
typedef struct _GtkStyleClass GtkStyleClass;
typedef struct _GtkThemeEngine GtkThemeEngine;
@@ -400,6 +401,14 @@ struct _GtkStyleClass
};
+struct _GtkBorder
+{
+ gint left;
+ gint right;
+ gint top;
+ gint bottom;
+};
+
GType gtk_style_get_type (void) G_GNUC_CONST;
GtkStyle* gtk_style_new (void);
GtkStyle* gtk_style_copy (GtkStyle *style);
@@ -815,6 +824,9 @@ void gtk_paint_resize_grip (GtkStyle *style,
gint height);
+GtkBorder *gtk_border_copy (const GtkBorder *border);
+void gtk_border_free (GtkBorder *border);
+
/* --- private API --- */
const GValue* _gtk_style_peek_property_value (GtkStyle *style,
GType widget_type,