Mercurial > pidgin
changeset 15776:909e59dae123
Get rid of some minor C99isms
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 06 Mar 2007 07:17:27 +0000 |
parents | b5c4de70577d |
children | c2c2a854f5b3 |
files | console/libgnt/gntentry.c console/libgnt/gntwm.c |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/console/libgnt/gntentry.c Tue Mar 06 03:01:59 2007 +0000 +++ b/console/libgnt/gntentry.c Tue Mar 06 07:17:27 2007 +0000 @@ -302,15 +302,15 @@ clipboard_paste(GntBindable *bind, GList *n) { GntEntry *entry = GNT_ENTRY(bind); - gchar *i; - gchar *text = i = gnt_get_clipboard_string(); + gchar *i, *text, *a, *all; + text = i = gnt_get_clipboard_string(); while (*i != '\0') { i = g_utf8_next_char(i); if (*i == '\r' || *i == '\n') *i = ' '; } - char *a = g_strndup(entry->start, entry->cursor - entry->start); - char *all = g_strconcat(a, text, entry->cursor, NULL); + a = g_strndup(entry->start, entry->cursor - entry->start); + all = g_strconcat(a, text, entry->cursor, NULL); gnt_entry_set_text_internal(entry, all); g_free(a); g_free(text);
--- a/console/libgnt/gntwm.c Tue Mar 06 03:01:59 2007 +0000 +++ b/console/libgnt/gntwm.c Tue Mar 06 07:17:27 2007 +0000 @@ -1476,8 +1476,8 @@ gboolean gnt_wm_process_click(GntWM *wm, GntMouseEvent event, int x, int y, GntWidget *widget) { + gboolean ret = TRUE; idle_update = TRUE; - gboolean ret = TRUE; g_signal_emit(wm, signals[SIG_MOUSE_CLICK], 0, event, x, y, widget, &ret); return ret; }