summaryrefslogtreecommitdiff
path: root/pluma/pluma-session.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-19 14:52:18 +0200
committerinfirit <[email protected]>2014-05-19 18:37:37 +0200
commit51291bf1b29004ea4703845fc127cc1a4468b092 (patch)
treea6280641c96a58b9872e6c4e7835d5dd313667ca /pluma/pluma-session.c
parent53be5f994d2c52142debdfdaf089ae077389cfbd (diff)
downloadpluma-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-session.c')
-rw-r--r--pluma/pluma-session.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/pluma/pluma-session.c b/pluma/pluma-session.c
index 2cc4ec39..8971ce00 100644
--- a/pluma/pluma-session.c
+++ b/pluma/pluma-session.c
@@ -54,10 +54,6 @@
#include "dialogs/pluma-close-confirmation-dialog.h"
#include "smclient/eggsmclient.h"
-#if GTK_CHECK_VERSION (3, 0, 0)
-#define GTK_WIDGET_VISIBLE gtk_widget_get_visible
-#endif
-
/* The master client we use for SM */
static EggSMClient *master_client = NULL;
@@ -91,11 +87,11 @@ save_window_session (GKeyFile *state_file,
panel = pluma_window_get_side_panel (window);
g_key_file_set_boolean (state_file, group_name, "side-panel-visible",
- GTK_WIDGET_VISIBLE (panel));
+ gtk_widget_get_visible (panel));
panel = pluma_window_get_bottom_panel (window);
g_key_file_set_boolean (state_file, group_name, "bottom-panel-visible",
- GTK_WIDGET_VISIBLE (panel));
+ gtk_widget_get_visible (panel));
active_document = pluma_window_get_active_document (window);
if (active_document)