Mercurial > dwindows
comparison gtk/dw.c @ 511:80dbd5a1f403
Removed the increments parameter from dw_scrollbar_new().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 09 Mar 2004 03:54:21 +0000 |
parents | 710f82598210 |
children | 7755599311d4 |
comparison
equal
deleted
inserted
replaced
510:710f82598210 | 511:80dbd5a1f403 |
---|---|
2748 * Parameters: | 2748 * Parameters: |
2749 * vertical: TRUE or FALSE if scrollbar is vertical. | 2749 * vertical: TRUE or FALSE if scrollbar is vertical. |
2750 * increments: Number of increments available. | 2750 * increments: Number of increments available. |
2751 * id: An ID to be used with dw_window_from_id() or 0L. | 2751 * id: An ID to be used with dw_window_from_id() or 0L. |
2752 */ | 2752 */ |
2753 HWND dw_scrollbar_new(int vertical, int increments, ULONG id) | 2753 HWND dw_scrollbar_new(int vertical, ULONG id) |
2754 { | 2754 { |
2755 GtkWidget *tmp; | 2755 GtkWidget *tmp; |
2756 GtkAdjustment *adjustment; | 2756 GtkAdjustment *adjustment; |
2757 int _locked_by_me = FALSE; | 2757 int _locked_by_me = FALSE; |
2758 | 2758 |
2759 DW_MUTEX_LOCK; | 2759 DW_MUTEX_LOCK; |
2760 adjustment = (GtkAdjustment *)gtk_adjustment_new(0, 0, (gfloat)increments, 1, 1, 1); | 2760 adjustment = (GtkAdjustment *)gtk_adjustment_new(0, 0, 0, 1, 1, 1); |
2761 if(vertical) | 2761 if(vertical) |
2762 tmp = gtk_vscrollbar_new(adjustment); | 2762 tmp = gtk_vscrollbar_new(adjustment); |
2763 else | 2763 else |
2764 tmp = gtk_hscrollbar_new(adjustment); | 2764 tmp = gtk_hscrollbar_new(adjustment); |
2765 GTK_WIDGET_UNSET_FLAGS(tmp, GTK_CAN_FOCUS); | 2765 GTK_WIDGET_UNSET_FLAGS(tmp, GTK_CAN_FOCUS); |