Remove dubious bitfields of unspecified signedness. (#112919, Morten

2003-05-27  Matthias Clasen  <maclas@gmx.de>

	* io-wbmp.c: Remove dubious bitfields of
	unspecified signedness.  (#112919, Morten Welinder)gdk-p

	* gdk-pixdata.c (gdk_pixdata_to_csource): Replace all occurances
	of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder)

	* gtk/gtkwindow-decorate.c:
	* gtk/gtktreeprivate.h:
	* gtk/gtkdnd.c:
	* gdk/win32/gdkwindow-win32.h:
	* gdk/linux-fb/gdkprivate-fb.h:
	* gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
	unspecified signedness.  (#112919, Morten Welinder)

	* gtk/queryimmodules.c (escape_string):
	* gtk/gtktextbtree.c (_gtk_text_btree_get_text):
	* gtk/gtksettings.c (_gtk_settings_parse_convert):
	* gtk/gtkrc.c (gtk_rc_parse_assignment):
	* gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
	* gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
	occurances of g_string_new ("") by g_string_new (NULL). (#106975,
	Morten Welinder)
This commit is contained in:
Matthias Clasen 2003-05-27 21:21:00 +00:00 committed by Matthias Clasen
parent fd99f43ac5
commit 83c626bbe0
20 changed files with 139 additions and 36 deletions

View File

@ -1,3 +1,22 @@
2003-05-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwindow-decorate.c:
* gtk/gtktreeprivate.h:
* gtk/gtkdnd.c:
* gdk/win32/gdkwindow-win32.h:
* gdk/linux-fb/gdkprivate-fb.h:
* gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
unspecified signedness. (#112919, Morten Welinder)
* gtk/queryimmodules.c (escape_string):
* gtk/gtktextbtree.c (_gtk_text_btree_get_text):
* gtk/gtksettings.c (_gtk_settings_parse_convert):
* gtk/gtkrc.c (gtk_rc_parse_assignment):
* gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
* gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
occurances of g_string_new ("") by g_string_new (NULL). (#106975,
Morten Welinder)
2003-05-27 Tor Lillqvist <tml@iki.fi>
* gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc

View File

@ -1,3 +1,22 @@
2003-05-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwindow-decorate.c:
* gtk/gtktreeprivate.h:
* gtk/gtkdnd.c:
* gdk/win32/gdkwindow-win32.h:
* gdk/linux-fb/gdkprivate-fb.h:
* gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
unspecified signedness. (#112919, Morten Welinder)
* gtk/queryimmodules.c (escape_string):
* gtk/gtktextbtree.c (_gtk_text_btree_get_text):
* gtk/gtksettings.c (_gtk_settings_parse_convert):
* gtk/gtkrc.c (gtk_rc_parse_assignment):
* gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
* gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
occurances of g_string_new ("") by g_string_new (NULL). (#106975,
Morten Welinder)
2003-05-27 Tor Lillqvist <tml@iki.fi>
* gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc

View File

@ -1,3 +1,22 @@
2003-05-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwindow-decorate.c:
* gtk/gtktreeprivate.h:
* gtk/gtkdnd.c:
* gdk/win32/gdkwindow-win32.h:
* gdk/linux-fb/gdkprivate-fb.h:
* gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
unspecified signedness. (#112919, Morten Welinder)
* gtk/queryimmodules.c (escape_string):
* gtk/gtktextbtree.c (_gtk_text_btree_get_text):
* gtk/gtksettings.c (_gtk_settings_parse_convert):
* gtk/gtkrc.c (gtk_rc_parse_assignment):
* gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
* gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
occurances of g_string_new ("") by g_string_new (NULL). (#106975,
Morten Welinder)
2003-05-27 Tor Lillqvist <tml@iki.fi>
* gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc

View File

@ -1,3 +1,22 @@
2003-05-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwindow-decorate.c:
* gtk/gtktreeprivate.h:
* gtk/gtkdnd.c:
* gdk/win32/gdkwindow-win32.h:
* gdk/linux-fb/gdkprivate-fb.h:
* gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
unspecified signedness. (#112919, Morten Welinder)
* gtk/queryimmodules.c (escape_string):
* gtk/gtktextbtree.c (_gtk_text_btree_get_text):
* gtk/gtksettings.c (_gtk_settings_parse_convert):
* gtk/gtkrc.c (gtk_rc_parse_assignment):
* gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
* gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
occurances of g_string_new ("") by g_string_new (NULL). (#106975,
Morten Welinder)
2003-05-27 Tor Lillqvist <tml@iki.fi>
* gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc

View File

@ -1,3 +1,22 @@
2003-05-27 Matthias Clasen <maclas@gmx.de>
* gtk/gtkwindow-decorate.c:
* gtk/gtktreeprivate.h:
* gtk/gtkdnd.c:
* gdk/win32/gdkwindow-win32.h:
* gdk/linux-fb/gdkprivate-fb.h:
* gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
unspecified signedness. (#112919, Morten Welinder)
* gtk/queryimmodules.c (escape_string):
* gtk/gtktextbtree.c (_gtk_text_btree_get_text):
* gtk/gtksettings.c (_gtk_settings_parse_convert):
* gtk/gtkrc.c (gtk_rc_parse_assignment):
* gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
* gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
occurances of g_string_new ("") by g_string_new (NULL). (#106975,
Morten Welinder)
2003-05-27 Tor Lillqvist <tml@iki.fi>
* gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc

View File

@ -1,3 +1,11 @@
2003-05-27 Matthias Clasen <maclas@gmx.de>
* io-wbmp.c: Remove dubious bitfields of
unspecified signedness. (#112919, Morten Welinder)gdk-p
* gdk-pixdata.c (gdk_pixdata_to_csource): Replace all occurances
of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder)
2003-05-21 Matthias Clasen <maclas@gmx.de>
* pixbufloader_pcx.def:

View File

@ -635,7 +635,7 @@ gdk_pixdata_to_csource (GdkPixdata *pixdata,
cdata.dump_rle_decoder = (dump_type & GDK_PIXDATA_DUMP_RLE_DECODER) > 0;
cdata.static_prefix = (dump_type & GDK_PIXDATA_DUMP_STATIC) ? "static " : "";
cdata.const_prefix = (dump_type & GDK_PIXDATA_DUMP_CONST) ? "const " : "";
gstring = g_string_new ("");
gstring = g_string_new (NULL);
cdata.gstring = gstring;
if (!cdata.dump_macros && cdata.dump_gtypes)

View File

@ -47,12 +47,12 @@ struct wbmp_progressive_state {
GdkPixbufModuleUpdatedFunc updated_func;
gpointer user_data;
gboolean need_type : 1;
gboolean need_header : 1;
gboolean need_width : 1;
gboolean need_height : 1;
gboolean needmore : 1;
gboolean call_progressive_updates : 1;
guint need_type : 1;
guint need_header : 1;
guint need_width : 1;
guint need_height : 1;
guint needmore : 1;
guint call_progressive_updates : 1;
guchar last_buf[16]; /* Just needs to be big enough to hold the largest datum requestable via 'getin' */
guint last_len;

View File

@ -40,7 +40,7 @@ struct _GdkFBKeyboard {
gint io_tag;
guint modifier_state;
gboolean caps_lock : 1;
guint caps_lock : 1;
gint group;
gint level;

View File

@ -119,7 +119,7 @@ struct _GdkWindowFBData
GdkRegion *shape; /* Can also be GDK_FB_USE_CHILD_SHAPE */
gboolean realized : 1;
guint realized : 1;
};
typedef struct {
@ -338,9 +338,9 @@ struct _GdkFBDrawingContext {
guint rowstride, clip_rowstride;
int clipxoff, clipyoff;
gboolean draw_bg : 1;
gboolean copy_region : 1;
gboolean handle_cursor : 1;
guint draw_bg : 1;
guint copy_region : 1;
guint handle_cursor : 1;
};
void gdk_fb_drawing_context_init (GdkFBDrawingContext *dc,

View File

@ -43,9 +43,9 @@ struct _GdkWin32PositionInfo
gint height;
gint x_offset; /* Offsets to add to Win32 coordinates */
gint y_offset; /* within window to get GDK coodinates */
gboolean big : 1;
gboolean mapped : 1;
gboolean no_bg : 1; /* Set when the window background
guint big : 1;
guint mapped : 1;
guint no_bg : 1; /* Set when the window background
* is temporarily unset during resizing
* and scaling
*/

View File

@ -736,7 +736,7 @@ escape_for_xmessage (const char *str)
GString *retval;
const char *p;
retval = g_string_new ("");
retval = g_string_new (NULL);
p = str;
while (*p)

View File

@ -114,9 +114,9 @@ struct _GtkDragDestSite
GdkDragAction actions;
GdkWindow *proxy_window;
GdkDragProtocol proxy_protocol;
gboolean do_proxy : 1;
gboolean proxy_coords : 1;
gboolean have_drag : 1;
guint do_proxy : 1;
guint proxy_coords : 1;
guint have_drag : 1;
};
struct _GtkDragDestInfo
@ -125,9 +125,9 @@ struct _GtkDragDestInfo
GdkDragContext *context; /* Drag context */
GtkDragSourceInfo *proxy_source; /* Set if this is a proxy drag */
GtkSelectionData *proxy_data; /* Set while retrieving proxied data */
gboolean dropped : 1; /* Set after we receive a drop */
guint dropped : 1; /* Set after we receive a drop */
guint32 proxy_drop_time; /* Timestamp for proxied drop */
gboolean proxy_drop_wait : 1; /* Set if we are waiting for a
guint proxy_drop_wait : 1; /* Set if we are waiting for a
* status reply before sending
* a proxied drop on.
*/

View File

@ -648,7 +648,7 @@ gtk_input_dialog_set_key (GtkInputKeyInfo *key,
if (keyval)
{
str = g_string_new("");
str = g_string_new (NULL);
if (modifiers & GDK_SHIFT_MASK)
g_string_append (str, "Shift+");

View File

@ -2283,7 +2283,7 @@ gtk_rc_parse_assignment (GScanner *scanner,
case G_TOKEN_LEFT_BRACE:
if (!negate)
{
GString *gstring = g_string_new ("");
GString *gstring = g_string_new (NULL);
token = rc_parse_token_or_compound (scanner, gstring, 0);
if (token == G_TOKEN_NONE)

View File

@ -438,12 +438,12 @@ _gtk_settings_parse_convert (GtkRcPropertyParser parser,
}
else if (G_VALUE_HOLDS_LONG (src_value))
{
gstring = g_string_new ("");
gstring = g_string_new (NULL);
g_string_append_printf (gstring, "%ld", g_value_get_long (src_value));
}
else if (G_VALUE_HOLDS_DOUBLE (src_value))
{
gstring = g_string_new ("");
gstring = g_string_new (NULL);
g_string_append_printf (gstring, "%f", g_value_get_double (src_value));
}
else if (G_VALUE_HOLDS_STRING (src_value))

View File

@ -2211,7 +2211,7 @@ _gtk_text_btree_get_text (const GtkTextIter *start_orig,
gtk_text_iter_order (&start, &end);
retval = g_string_new ("");
retval = g_string_new (NULL);
tree = _gtk_text_iter_get_btree (&start);

View File

@ -207,7 +207,7 @@ struct _GtkCellRendererInfo
gulong focus_out_id;
/* toggle renderer */
gboolean inconsistent :1;
guint inconsistent :1;
};
#ifdef __GNUC__

View File

@ -75,14 +75,14 @@ struct _GtkWindowDecoration
GtkWindowResizeType resize;
gboolean moving : 1;
gboolean closing : 1;
gboolean maximizing : 1;
gboolean maximized : 1;
gboolean maximizable : 1;
gboolean decorated : 1;
gboolean real_inner_move : 1;
gboolean focused : 1;
guint moving : 1;
guint closing : 1;
guint maximizing : 1;
guint maximized : 1;
guint maximizable : 1;
guint decorated : 1;
guint real_inner_move : 1;
guint focused : 1;
};
#define DECORATION_BORDER_TOP 15

View File

@ -44,7 +44,7 @@
static char *
escape_string (const char *str)
{
GString *result = g_string_new ("");
GString *result = g_string_new (NULL);
while (TRUE)
{