1 |
/* gtkpanelpeer.c -- Native implementation of GtkPanelPeer |
/* gtkpanelpeer.c -- Native implementation of GtkPanelPeer |
2 |
Copyright (C) 1998, 1999 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
60 |
gint y; |
gint y; |
61 |
}; |
}; |
62 |
|
|
63 |
void sr (GtkWidget *widget, GtkRequisition *requisition, |
static |
64 |
gpointer user_data) |
void sr (GtkWidget *widget, GtkRequisition *requisition, gpointer user_data) |
65 |
{ |
{ |
66 |
GtkLayout *layout; |
GtkLayout *layout; |
67 |
GtkLayoutChild *child; |
GtkLayoutChild *child; |
71 |
requisition->width = GTK_WIDGET (widget)->allocation.width; |
requisition->width = GTK_WIDGET (widget)->allocation.width; |
72 |
requisition->height = GTK_WIDGET (widget)->allocation.height; |
requisition->height = GTK_WIDGET (widget)->allocation.height; |
73 |
|
|
|
if (user_data) |
|
|
{ |
|
|
printf ("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11\n"); |
|
|
printf ("%i, %i\n", requisition->width, requisition->height); |
|
|
} |
|
|
return; |
|
|
|
|
74 |
children = layout->children; |
children = layout->children; |
75 |
while (children) |
while (children) |
76 |
{ |
{ |
90 |
|
|
91 |
requisition->height += GTK_CONTAINER (layout)->border_width * 2; |
requisition->height += GTK_CONTAINER (layout)->border_width * 2; |
92 |
requisition->width += GTK_CONTAINER (layout)->border_width * 2; |
requisition->width += GTK_CONTAINER (layout)->border_width * 2; |
|
|
|
|
printf ("width, height %i, %i\n", requisition->width, requisition->height); |
|
93 |
} |
} |
94 |
|
|
95 |
JNIEXPORT void JNICALL |
JNIEXPORT void JNICALL |