gtk+ r21707 - in trunk: . gtk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21707 - in trunk: . gtk
- Date: Fri, 24 Oct 2008 04:18:48 +0000 (UTC)
Author: matthiasc
Date: Fri Oct 24 04:18:48 2008
New Revision: 21707
URL: http://svn.gnome.org/viewvc/gtk+?rev=21707&view=rev
Log:
2008-10-24 Matthias Clasen <mclasen redhat com>
Bug 556835 â gtkentry.c: variable is declared at middle of block
* gtk/gtkentry.c (gtk_entry_copy_clipboard): Fix a C99ism pointed
out by Kazuki Iwamoto
Modified:
trunk/ChangeLog
trunk/gtk/gtkentry.c
Modified: trunk/gtk/gtkentry.c
==============================================================================
--- trunk/gtk/gtkentry.c (original)
+++ trunk/gtk/gtkentry.c Fri Oct 24 04:18:48 2008
@@ -3122,6 +3122,7 @@
{
GtkEditable *editable = GTK_EDITABLE (entry);
gint start, end;
+ gchar *str;
if (gtk_editable_get_selection_bounds (editable, &start, &end))
{
@@ -3131,7 +3132,7 @@
return;
}
- gchar *str = gtk_entry_get_public_chars (entry, start, end);
+ str = gtk_entry_get_public_chars (entry, start, end);
gtk_clipboard_set_text (gtk_widget_get_clipboard (GTK_WIDGET (entry),
GDK_SELECTION_CLIPBOARD),
str, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]