Mercurial > dwindows
comparison gtk3/dw.c @ 843:d51e958aad95
Updates to the comments about scrollboxes and removing them from incomplete status.
Will be functional on 4 of the 5 platforms today... and will be implementing on OS/2 as soon as I decide the best way.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 29 Mar 2011 23:04:32 +0000 |
parents | 28f9810dfebc |
children | 8f2722696a8e |
comparison
equal
deleted
inserted
replaced
842:89dd3e442e7e | 843:d51e958aad95 |
---|---|
2991 gtk_widget_show(tmp); | 2991 gtk_widget_show(tmp); |
2992 DW_MUTEX_UNLOCK; | 2992 DW_MUTEX_UNLOCK; |
2993 return tmp; | 2993 return tmp; |
2994 } | 2994 } |
2995 | 2995 |
2996 #ifndef INCOMPLETE | |
2997 /* | 2996 /* |
2998 * Create a new scrollable Box to be packed. | 2997 * Create a new scrollable Box to be packed. |
2999 * Parameters: | 2998 * Parameters: |
3000 * type: Either DW_VERT (vertical) or DW_HORZ (horizontal). | 2999 * type: Either DW_VERT (vertical) or DW_HORZ (horizontal). |
3001 * pad: Number of pixels to pad around the box. | 3000 * pad: Number of pixels to pad around the box. |
3002 * This works fine under GTK+, but is incomplete on other platforms | |
3003 */ | 3001 */ |
3004 HWND dw_scrollbox_new( int type, int pad ) | 3002 HWND dw_scrollbox_new( int type, int pad ) |
3005 { | 3003 { |
3006 GtkWidget *tmp, *box, *eventbox; | 3004 GtkWidget *tmp, *box, *eventbox; |
3007 int _locked_by_me = FALSE; | 3005 int _locked_by_me = FALSE; |
3077 range = _round_value(gtk_adjustment_get_upper(adjustment)); | 3075 range = _round_value(gtk_adjustment_get_upper(adjustment)); |
3078 } | 3076 } |
3079 DW_MUTEX_UNLOCK; | 3077 DW_MUTEX_UNLOCK; |
3080 return range; | 3078 return range; |
3081 } | 3079 } |
3082 #endif | |
3083 | 3080 |
3084 /* | 3081 /* |
3085 * Create a new Group Box to be packed. | 3082 * Create a new Group Box to be packed. |
3086 * Parameters: | 3083 * Parameters: |
3087 * type: Either DW_VERT (vertical) or DW_HORZ (horizontal). | 3084 * type: Either DW_VERT (vertical) or DW_HORZ (horizontal). |