mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
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.
This commit is contained in:
parent
f7ce63ab5f
commit
1a6efe96a7
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
@ -1,3 +1,11 @@
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user