avoid void pointer math

* gtk/gtkclist.c: avoid void pointer math

* gtk/gtkhscale.c
* gtk/gtkhscrollbar.c
* gtk/gtkvscale.c
* gtk/gtkvscrollbar.c: removed trailing , from enums

* gtk/gtksignal.c: can't use enums as a bitfield type, use guint

* gtk/testgtk.c: removed C++ comment added by owenpoo

-Yosh
This commit is contained in:
Manish Singh 1998-12-11 05:52:42 +00:00
parent 939c818395
commit 6af277b502
15 changed files with 99 additions and 8 deletions

View File

@ -1,3 +1,16 @@
Thu Dec 10 20:48:19 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkclist.c: avoid void pointer math
* gtk/gtkhscale.c
* gtk/gtkhscrollbar.c
* gtk/gtkvscale.c
* gtk/gtkvscrollbar.c: removed trailing , from enums
* gtk/gtksignal.c: can't use enums as a bitfield type, use guint
* gtk/testgtk.c: removed C++ comment added by owenpoo
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()

View File

@ -1,3 +1,16 @@
Thu Dec 10 20:48:19 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkclist.c: avoid void pointer math
* gtk/gtkhscale.c
* gtk/gtkhscrollbar.c
* gtk/gtkvscale.c
* gtk/gtkvscrollbar.c: removed trailing , from enums
* gtk/gtksignal.c: can't use enums as a bitfield type, use guint
* gtk/testgtk.c: removed C++ comment added by owenpoo
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()

View File

@ -1,3 +1,16 @@
Thu Dec 10 20:48:19 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkclist.c: avoid void pointer math
* gtk/gtkhscale.c
* gtk/gtkhscrollbar.c
* gtk/gtkvscale.c
* gtk/gtkvscrollbar.c: removed trailing , from enums
* gtk/gtksignal.c: can't use enums as a bitfield type, use guint
* gtk/testgtk.c: removed C++ comment added by owenpoo
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()

View File

@ -1,3 +1,16 @@
Thu Dec 10 20:48:19 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkclist.c: avoid void pointer math
* gtk/gtkhscale.c
* gtk/gtkhscrollbar.c
* gtk/gtkvscale.c
* gtk/gtkvscrollbar.c: removed trailing , from enums
* gtk/gtksignal.c: can't use enums as a bitfield type, use guint
* gtk/testgtk.c: removed C++ comment added by owenpoo
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()

View File

@ -1,3 +1,16 @@
Thu Dec 10 20:48:19 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkclist.c: avoid void pointer math
* gtk/gtkhscale.c
* gtk/gtkhscrollbar.c
* gtk/gtkvscale.c
* gtk/gtkvscrollbar.c: removed trailing , from enums
* gtk/gtksignal.c: can't use enums as a bitfield type, use guint
* gtk/testgtk.c: removed C++ comment added by owenpoo
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()

View File

@ -1,3 +1,16 @@
Thu Dec 10 20:48:19 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkclist.c: avoid void pointer math
* gtk/gtkhscale.c
* gtk/gtkhscrollbar.c
* gtk/gtkvscale.c
* gtk/gtkvscrollbar.c: removed trailing , from enums
* gtk/gtksignal.c: can't use enums as a bitfield type, use guint
* gtk/testgtk.c: removed C++ comment added by owenpoo
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()

View File

@ -1,3 +1,16 @@
Thu Dec 10 20:48:19 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/gtkclist.c: avoid void pointer math
* gtk/gtkhscale.c
* gtk/gtkhscrollbar.c
* gtk/gtkvscale.c
* gtk/gtkvscrollbar.c: removed trailing , from enums
* gtk/gtksignal.c: can't use enums as a bitfield type, use guint
* gtk/testgtk.c: removed C++ comment added by owenpoo
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()

View File

@ -2891,7 +2891,7 @@ real_row_move (GtkCList *clist,
list->data = GINT_TO_POINTER (dest_row);
else if (first <= GPOINTER_TO_INT (list->data) &&
last >= GPOINTER_TO_INT (list->data))
list->data += d;
list->data = GINT_TO_POINTER (GPOINTER_TO_INT (list->data) + d);
}
if (clist->focus_row == source_row)

View File

@ -27,7 +27,7 @@
enum {
ARG_0,
ARG_ADJUSTMENT,
ARG_ADJUSTMENT
};
static void gtk_hscale_class_init (GtkHScaleClass *klass);

View File

@ -27,7 +27,7 @@
enum {
ARG_0,
ARG_ADJUSTMENT,
ARG_ADJUSTMENT
};
static void gtk_hscrollbar_class_init (GtkHScrollbarClass *klass);

View File

@ -57,7 +57,7 @@ struct _GtkSignal
guint function_offset;
GtkSignalMarshaller marshaller;
GtkType return_val;
GtkSignalRunType signal_flags : 16;
guint signal_flags : 16;
guint nparams : 16;
GtkType *params;
GHookList *hook_list;

View File

@ -27,7 +27,7 @@
enum {
ARG_0,
ARG_ADJUSTMENT,
ARG_ADJUSTMENT
};
static void gtk_vscale_class_init (GtkVScaleClass *klass);

View File

@ -27,7 +27,7 @@
enum {
ARG_0,
ARG_ADJUSTMENT,
ARG_ADJUSTMENT
};
static void gtk_vscrollbar_class_init (GtkVScrollbarClass *klass);

View File

@ -8169,7 +8169,7 @@ void create_layout (void)
{
sprintf(buf, "Button %d, %d", i, j);
if ((i + j) % 2)
// button = gtk_button_new_with_label (buf);
/* button = gtk_button_new_with_label (buf); */
button = gtk_combo_new();
else
button = gtk_label_new (buf);

View File

@ -8169,7 +8169,7 @@ void create_layout (void)
{
sprintf(buf, "Button %d, %d", i, j);
if ((i + j) % 2)
// button = gtk_button_new_with_label (buf);
/* button = gtk_button_new_with_label (buf); */
button = gtk_combo_new();
else
button = gtk_label_new (buf);