/[classpath]/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c
ViewVC logotype

Diff of /classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mark, Tue Jan 22 22:27:02 2002 UTC revision 1.4 by tromey, Sat Nov 9 23:17:30 2002 UTC
# Line 1  Line 1 
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    
# Line 60  struct _GtkLayoutChild { Line 60  struct _GtkLayoutChild {
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;
# Line 71  void sr (GtkWidget *widget, GtkRequisiti Line 71  void sr (GtkWidget *widget, GtkRequisiti
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      {      {
# Line 97  void sr (GtkWidget *widget, GtkRequisiti Line 90  void sr (GtkWidget *widget, GtkRequisiti
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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26