Mercurial > pidgin.yaz
changeset 11299:421007f39e53
[gaim-migrate @ 13499]
Fix a C99ism.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 18 Aug 2005 06:33:33 +0000 |
parents | e26b3f52b6f2 |
children | dd1a5969b2e5 |
files | src/gtkconv.c src/gtkimhtml.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkconv.c Thu Aug 18 05:07:33 2005 +0000 +++ b/src/gtkconv.c Thu Aug 18 06:33:33 2005 +0000 @@ -2196,6 +2196,7 @@ gint nb_x, nb_y, x_rel, y_rel; int tab_clicked; GtkWidget *page; + GtkWidget *tab; if (e->button != 1 || e->type != GDK_BUTTON_PRESS) return FALSE; @@ -2234,7 +2235,7 @@ /* Find out which tab was dragged. */ page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(gtkwin->notebook), tab_clicked); - GtkWidget *tab = gtk_notebook_get_tab_label(GTK_NOTEBOOK(gtkwin->notebook), page); + tab = gtk_notebook_get_tab_label(GTK_NOTEBOOK(gtkwin->notebook), page); gtkwin->drag_min_x = tab->allocation.x + nb_x; gtkwin->drag_min_y = tab->allocation.y + nb_y;
--- a/src/gtkimhtml.c Thu Aug 18 05:07:33 2005 +0000 +++ b/src/gtkimhtml.c Thu Aug 18 06:33:33 2005 +0000 @@ -4378,9 +4378,9 @@ } if (pixbuf) { + struct im_image_data *t = g_new(struct im_image_data, 1); filename = imhtml->funcs->image_get_filename(image); imhtml->funcs->image_ref(id); - struct im_image_data *t = g_new(struct im_image_data, 1); t->id = id; t->mark = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, iter, TRUE); imhtml->im_images = g_slist_prepend(imhtml->im_images, t);