new function gdk_window_at_pointer() to retrive the current GdkWindow the
Wed Jun 17 03:47:40 1998 Tim Janik <timj@gtk.org> * gdk/gdk.h: * gdk/gdkwindow.c: new function gdk_window_at_pointer() to retrive the current GdkWindow the pointer is on if there is any. * gtk/gtktable.c (gtk_table_init): preallocate a table with one row and one column, so we don't construction logic at all. changed a few (x < y - 1) to (x + 1 < y), to avoid failing evaluations due to unsigned int wraps. * gtk/gtkwidget.c (gtk_widget_set_parent): removed left over code portion, added an additional check for parent != widget. * more GtkType and macro fixups.
This commit is contained in:
@ -28,10 +28,10 @@ static void gtk_pixmap_finalize (GtkObject *object);
|
||||
|
||||
static GtkWidgetClass *parent_class;
|
||||
|
||||
guint
|
||||
GtkType
|
||||
gtk_pixmap_get_type (void)
|
||||
{
|
||||
static guint pixmap_type = 0;
|
||||
static GtkType pixmap_type = 0;
|
||||
|
||||
if (!pixmap_type)
|
||||
{
|
||||
@ -46,7 +46,7 @@ gtk_pixmap_get_type (void)
|
||||
(GtkArgGetFunc) NULL,
|
||||
};
|
||||
|
||||
pixmap_type = gtk_type_unique (gtk_misc_get_type (), &pixmap_info);
|
||||
pixmap_type = gtk_type_unique (GTK_TYPE_MISC, &pixmap_info);
|
||||
}
|
||||
|
||||
return pixmap_type;
|
||||
|
||||
Reference in New Issue
Block a user