Mercurial > dwindows
diff dw.h @ 120:7d2108cbcd3e
Porting DW to GTK 2.0... and changed the percent value from into to a float
so there won't be any rounding.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 19 Oct 2002 11:46:54 +0000 |
parents | 1cad81b7cc4c |
children | caeb52bb5ef4 |
line wrap: on
line diff
--- a/dw.h Sat Oct 19 06:36:41 2002 +0000 +++ b/dw.h Sat Oct 19 11:46:54 2002 +0000 @@ -380,6 +380,7 @@ void dw_box_pack_end_stub(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); #else /* GTK */ +#define GTK_ENABLE_BROKEN 1 #include <gtk/gtk.h> #include <gdk/gdkx.h> #include <gdk/gdkprivate.h> @@ -729,8 +730,8 @@ unsigned int dw_notebook_page_query(HWND handle); void dw_notebook_pack(HWND handle, unsigned long pageid, HWND page); HWND dw_splitbar_new(int type, HWND topleft, HWND bottomright, unsigned long id); -void dw_splitbar_set(HWND handle, int percent); -int dw_splitbar_get(HWND handle); +void dw_splitbar_set(HWND handle, float percent); +float dw_splitbar_get(HWND handle); HMENUI dw_menu_new(unsigned long id); HMENUI dw_menubar_new(HWND location); HWND dw_menu_append_item(HMENUI menu, char *title, unsigned long id, unsigned long flags, int end, int check, HMENUI submenu);