Commit 1a6efe96 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Add GDK_TYPE_RECTANGLE.

Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
	GDK_TYPE_RECTANGLE.

	* gtk/gtkwidget.c (gtk_widget_class_init): Fix type
	of allocation argument be GDK_TYPE_RECTANGLE.
parent f7ce63ab
Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
GDK_TYPE_RECTANGLE.
* gtk/gtkwidget.c (gtk_widget_class_init): Fix type
of allocation argument be GDK_TYPE_RECTANGLE.
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
......
Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
GDK_TYPE_RECTANGLE.
* gtk/gtkwidget.c (gtk_widget_class_init): Fix type
of allocation argument be GDK_TYPE_RECTANGLE.
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
......
Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
GDK_TYPE_RECTANGLE.
* gtk/gtkwidget.c (gtk_widget_class_init): Fix type
of allocation argument be GDK_TYPE_RECTANGLE.
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
......
Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
GDK_TYPE_RECTANGLE.
* gtk/gtkwidget.c (gtk_widget_class_init): Fix type
of allocation argument be GDK_TYPE_RECTANGLE.
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
......
Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
GDK_TYPE_RECTANGLE.
* gtk/gtkwidget.c (gtk_widget_class_init): Fix type
of allocation argument be GDK_TYPE_RECTANGLE.
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
......
Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
GDK_TYPE_RECTANGLE.
* gtk/gtkwidget.c (gtk_widget_class_init): Fix type
of allocation argument be GDK_TYPE_RECTANGLE.
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
......
Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
GDK_TYPE_RECTANGLE.
* gtk/gtkwidget.c (gtk_widget_class_init): Fix type
of allocation argument be GDK_TYPE_RECTANGLE.
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
......
......@@ -126,6 +126,8 @@ void gdk_rectangle_union (GdkRectangle *src1,
GdkRectangle *src2,
GdkRectangle *dest);
#define GDK_TYPE_RECTANGLE (gdk_rectangle_get_type ())
/* Conversion functions between wide char and multibyte strings.
*/
gchar *gdk_wcstombs (const GdkWChar *src);
......
......@@ -81,3 +81,27 @@ gdk_rectangle_intersect (GdkRectangle *src1,
return return_val;
}
static GdkRectangle *
gdk_rectangle_copy (const GdkRectangle *rectangle)
{
GdkRectangle *result = g_new (GdkRectangle, 1);
*result = *rectangle;
return result;
}
GType
gdk_rectangle_get_type (void)
{
static GType our_type = 0;
if (our_type == 0)
our_type = g_boxed_type_register_static ("GdkRectangle",
NULL,
(GBoxedCopyFunc)gdk_rectangle_copy,
(GBoxedFreeFunc)g_free,
FALSE);
return our_type;
}
......@@ -586,9 +586,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, size_allocate),
gtk_marshal_VOID__POINTER,
gtk_marshal_VOID__BOXED,
GTK_TYPE_NONE, 1,
GTK_TYPE_POINTER);
GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE);
widget_signals[STATE_CHANGED] =
gtk_signal_new ("state_changed",
GTK_RUN_FIRST,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment