diff options
| author | Denis Declara <declara91@gmail.com> | 2012-04-26 11:14:34 +0000 |
|---|---|---|
| committer | Denis Declara <declara91@gmail.com> | 2012-04-26 11:14:34 +0000 |
| commit | 95a8ad7bfec98f7cede15c4e8856ce547aaf4aa4 (patch) | |
| tree | 506de5a8437cb39917a66d74b68d78692d10a993 /src/widgets/spinbutton-events.cpp | |
| parent | Added first support for elliptical arrangements (diff) | |
| parent | powerstroke: cautious fix. (diff) | |
| download | inkscape-95a8ad7bfec98f7cede15c4e8856ce547aaf4aa4.tar.gz inkscape-95a8ad7bfec98f7cede15c4e8856ce547aaf4aa4.zip | |
Trunk merge
(bzr r11073.1.20)
Diffstat (limited to 'src/widgets/spinbutton-events.cpp')
| -rw-r--r-- | src/widgets/spinbutton-events.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/spinbutton-events.cpp b/src/widgets/spinbutton-events.cpp index 994d954cc..565c89ece 100644 --- a/src/widgets/spinbutton-events.cpp +++ b/src/widgets/spinbutton-events.cpp @@ -48,7 +48,7 @@ spinbutton_undo (GtkWidget *w) } void -spinbutton_defocus (GtkObject *container) +spinbutton_defocus (GtkWidget *container) { // defocus spinbuttons by moving focus to the canvas, unless "stay" is on gboolean stay = GPOINTER_TO_INT(g_object_get_data(G_OBJECT (container), "stay")); @@ -71,12 +71,12 @@ spinbutton_keypress (GtkWidget *w, GdkEventKey *event, gpointer data) switch (get_group0_keyval (event)) { case GDK_Escape: // defocus spinbutton_undo (w); - spinbutton_defocus (GTK_OBJECT (spw)); + spinbutton_defocus(GTK_WIDGET(spw)); return TRUE; // I consumed the event break; case GDK_Return: // defocus case GDK_KP_Enter: - spinbutton_defocus (GTK_OBJECT (spw)); + spinbutton_defocus (GTK_WIDGET(spw)); return TRUE; // I consumed the event break; case GDK_Tab: |
