mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
Bug 556835 – gtkentry.c: variable is declared at middle of block
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 svn path=/trunk/; revision=21707
This commit is contained in:
parent
cdef5cdc49
commit
5899bbd492
@ -1,3 +1,10 @@
|
|||||||
|
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
|
||||||
|
|
||||||
2008-10-24 Matthias Clasen <mclasen@redhat.com>
|
2008-10-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 557524 – "va_end(args);" should be added into
|
Bug 557524 – "va_end(args);" should be added into
|
||||||
|
@ -3122,6 +3122,7 @@ gtk_entry_copy_clipboard (GtkEntry *entry)
|
|||||||
{
|
{
|
||||||
GtkEditable *editable = GTK_EDITABLE (entry);
|
GtkEditable *editable = GTK_EDITABLE (entry);
|
||||||
gint start, end;
|
gint start, end;
|
||||||
|
gchar *str;
|
||||||
|
|
||||||
if (gtk_editable_get_selection_bounds (editable, &start, &end))
|
if (gtk_editable_get_selection_bounds (editable, &start, &end))
|
||||||
{
|
{
|
||||||
@ -3131,7 +3132,7 @@ gtk_entry_copy_clipboard (GtkEntry *entry)
|
|||||||
return;
|
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),
|
gtk_clipboard_set_text (gtk_widget_get_clipboard (GTK_WIDGET (entry),
|
||||||
GDK_SELECTION_CLIPBOARD),
|
GDK_SELECTION_CLIPBOARD),
|
||||||
str, -1);
|
str, -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user