summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
Diffstat (limited to 'libslab')
-rw-r--r--libslab/app-shell.c5
-rw-r--r--libslab/libslab-utils.c4
2 files changed, 2 insertions, 7 deletions
diff --git a/libslab/app-shell.c b/libslab/app-shell.c
index e5844be3..19d98bf2 100644
--- a/libslab/app-shell.c
+++ b/libslab/app-shell.c
@@ -28,7 +28,6 @@
#include <gdk/gdkkeysyms.h>
#if GTK_CHECK_VERSION (3, 0, 0)
#include <gdk/gdkkeysyms-compat.h>
-#define gtk_widget_hide_all gtk_widget_hide
#endif
#include <sys/types.h>
#include <sys/stat.h>
@@ -112,7 +111,7 @@ show_shell (AppShellData * app_data)
{
gtk_widget_show_all (app_data->main_app);
if (!app_data->static_actions)
- gtk_widget_hide_all (app_data->actions_section); /* don't show unless a launcher is selected */
+ gtk_widget_hide (app_data->actions_section); /* don't show unless a launcher is selected */
if (app_data->main_app_window_shown_once)
gtk_window_move (GTK_WINDOW (app_data->main_app),
@@ -381,7 +380,7 @@ relayout_shell (AppShellData * app_data)
gtk_widget_show_all (shell);
if (!app_data->static_actions && !app_data->last_clicked_launcher)
- gtk_widget_hide_all (app_data->actions_section); /* don't show unless a launcher is selected */
+ gtk_widget_hide (app_data->actions_section); /* don't show unless a launcher is selected */
}
static GtkWidget *
diff --git a/libslab/libslab-utils.c b/libslab/libslab-utils.c
index 5c553069..66d1e4d3 100644
--- a/libslab/libslab-utils.c
+++ b/libslab/libslab-utils.c
@@ -191,11 +191,7 @@ libslab_get_current_screen (void)
event = gtk_get_current_event ();
if (event) {
if (event->any.window)
-#if GTK_CHECK_VERSION (3, 0, 0)
screen = gtk_window_get_screen (GTK_WINDOW (event->any.window));
-#else
- screen = gdk_drawable_get_screen (GDK_DRAWABLE (event->any.window));
-#endif
gdk_event_free (event);
}