forked from AuroraMiddleware/gtk
Fix some warnings.
* gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *). * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local. * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local. * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment): Restructure loop to get rid of uninitialized variable warning. Also gives a tiny efficiency gain.
This commit is contained in:
parent
dd00b8878e
commit
20a870a6e0
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
||||
2001-12-15 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
Fix some warnings.
|
||||
|
||||
* gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
|
||||
g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
|
||||
* gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
|
||||
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
|
||||
* gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
|
||||
* gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
|
||||
Restructure loop to get rid of uninitialized variable warning. Also
|
||||
gives a tiny efficiency gain.
|
||||
|
||||
2001-12-15 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
* Fixed first arg type of GtkScale's "format_value" signal's
|
||||
|
@ -1,3 +1,16 @@
|
||||
2001-12-15 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
Fix some warnings.
|
||||
|
||||
* gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
|
||||
g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
|
||||
* gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
|
||||
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
|
||||
* gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
|
||||
* gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
|
||||
Restructure loop to get rid of uninitialized variable warning. Also
|
||||
gives a tiny efficiency gain.
|
||||
|
||||
2001-12-15 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
* Fixed first arg type of GtkScale's "format_value" signal's
|
||||
|
@ -1,3 +1,16 @@
|
||||
2001-12-15 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
Fix some warnings.
|
||||
|
||||
* gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
|
||||
g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
|
||||
* gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
|
||||
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
|
||||
* gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
|
||||
* gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
|
||||
Restructure loop to get rid of uninitialized variable warning. Also
|
||||
gives a tiny efficiency gain.
|
||||
|
||||
2001-12-15 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
* Fixed first arg type of GtkScale's "format_value" signal's
|
||||
|
@ -1,3 +1,16 @@
|
||||
2001-12-15 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
Fix some warnings.
|
||||
|
||||
* gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
|
||||
g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
|
||||
* gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
|
||||
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
|
||||
* gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
|
||||
* gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
|
||||
Restructure loop to get rid of uninitialized variable warning. Also
|
||||
gives a tiny efficiency gain.
|
||||
|
||||
2001-12-15 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
* Fixed first arg type of GtkScale's "format_value" signal's
|
||||
|
@ -1,3 +1,16 @@
|
||||
2001-12-15 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
Fix some warnings.
|
||||
|
||||
* gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
|
||||
g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
|
||||
* gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
|
||||
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
|
||||
* gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
|
||||
* gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
|
||||
Restructure loop to get rid of uninitialized variable warning. Also
|
||||
gives a tiny efficiency gain.
|
||||
|
||||
2001-12-15 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
* Fixed first arg type of GtkScale's "format_value" signal's
|
||||
|
@ -1,3 +1,16 @@
|
||||
2001-12-15 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
Fix some warnings.
|
||||
|
||||
* gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
|
||||
g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
|
||||
* gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
|
||||
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
|
||||
* gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
|
||||
* gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
|
||||
Restructure loop to get rid of uninitialized variable warning. Also
|
||||
gives a tiny efficiency gain.
|
||||
|
||||
2001-12-15 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
* Fixed first arg type of GtkScale's "format_value" signal's
|
||||
|
@ -1,3 +1,16 @@
|
||||
2001-12-15 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
Fix some warnings.
|
||||
|
||||
* gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
|
||||
g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
|
||||
* gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
|
||||
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
|
||||
* gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
|
||||
* gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
|
||||
Restructure loop to get rid of uninitialized variable warning. Also
|
||||
gives a tiny efficiency gain.
|
||||
|
||||
2001-12-15 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
* Fixed first arg type of GtkScale's "format_value" signal's
|
||||
|
@ -388,7 +388,7 @@ gdk_property_get (GdkWindow *window,
|
||||
* to an array of GDK Atoms
|
||||
*/
|
||||
gint i;
|
||||
GdkAtom *ret_atoms = g_new (GdkAtom *, ret_nitems);
|
||||
GdkAtom *ret_atoms = g_new (GdkAtom, ret_nitems);
|
||||
Atom *xatoms = (Atom *)ret_data;
|
||||
|
||||
data = (guchar *)ret_atoms;
|
||||
|
@ -4397,7 +4397,7 @@ create_moveresize_window (guint32 timestamp)
|
||||
FALSE,
|
||||
GDK_BUTTON_RELEASE_MASK |
|
||||
GDK_POINTER_MOTION_MASK,
|
||||
FALSE,
|
||||
NULL,
|
||||
NULL,
|
||||
timestamp);
|
||||
|
||||
|
@ -484,7 +484,6 @@ gboolean
|
||||
gtk_accel_label_refetch (GtkAccelLabel *accel_label)
|
||||
{
|
||||
GtkAccelLabelClass *class;
|
||||
gchar *utf8;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_ACCEL_LABEL (accel_label), FALSE);
|
||||
|
||||
|
@ -539,7 +539,6 @@ gtk_list_item_expose (GtkWidget *widget,
|
||||
GdkEventExpose *event)
|
||||
{
|
||||
GtkBin *bin;
|
||||
gint focus_width;
|
||||
|
||||
g_return_val_if_fail (widget != NULL, FALSE);
|
||||
|
||||
|
@ -2109,7 +2109,7 @@ _gtk_text_iter_backward_indexable_segment (GtkTextIter *iter)
|
||||
* segment just before our current segment.
|
||||
*/
|
||||
g_assert (seg != real->segment);
|
||||
while (seg != real->segment)
|
||||
do
|
||||
{
|
||||
prev_seg = seg;
|
||||
prev_any_seg = any_seg;
|
||||
@ -2119,6 +2119,7 @@ _gtk_text_iter_backward_indexable_segment (GtkTextIter *iter)
|
||||
while (seg->char_count == 0)
|
||||
seg = seg->next;
|
||||
}
|
||||
while (seg != real->segment);
|
||||
|
||||
g_assert (prev_seg != NULL);
|
||||
g_assert (prev_any_seg != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user