diff options
author | infirit <[email protected]> | 2014-05-19 14:52:18 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-05-19 18:37:37 +0200 |
commit | 51291bf1b29004ea4703845fc127cc1a4468b092 (patch) | |
tree | a6280641c96a58b9872e6c4e7835d5dd313667ca /pluma/pluma-print-preview.c | |
parent | 53be5f994d2c52142debdfdaf089ae077389cfbd (diff) | |
download | pluma-51291bf1b29004ea4703845fc127cc1a4468b092.tar.bz2 pluma-51291bf1b29004ea4703845fc127cc1a4468b092.tar.xz |
Replace deprecated gtk widget function
The replacement functions are available since 2.18
GTK_WIDGET_HAS_FOCUS -> gtk_widget_has_focus
GTK_WIDGET_VISIBLE -> gtk_widget_get_visible
GTK_WIDGET_SET_FLAGS -> gtk_widget_set_*
Diffstat (limited to 'pluma/pluma-print-preview.c')
-rw-r--r-- | pluma/pluma-print-preview.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pluma/pluma-print-preview.c b/pluma/pluma-print-preview.c index 350f7367..ac7bbdd8 100644 --- a/pluma/pluma-print-preview.c +++ b/pluma/pluma-print-preview.c @@ -959,11 +959,7 @@ create_preview_layout (PlumaPrintPreview *preview) GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK); -#if GTK_CHECK_VERSION (3, 0, 0) gtk_widget_set_can_focus (priv->layout, TRUE); -#else - GTK_WIDGET_SET_FLAGS (priv->layout, GTK_CAN_FOCUS); -#endif g_signal_connect (priv->layout, "key-press-event", |