Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove gtk-layer-shell #3443

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions config.h.meson.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#mesondefine HAVE_SELINUX
// Define to enable pango-1.44 fixes
#mesondefine HAVE_PANGO_144
// Define to use gtk-layer-shell
#mesondefine HAVE_GTK_LAYER_SHELL



Expand Down
1 change: 0 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Build-Depends:
libgsf-1-dev,
libgtk-3-dev (>= 3.10),
libgtk-3-doc,
libgtk-layer-shell-dev,
libjson-glib-dev (>= 1.6),
libpango1.0-dev,
libx11-dev,
Expand Down
3 changes: 1 addition & 2 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ CONFIGURE_EXTRA_FLAGS = \
--buildtype=debugoptimized \
-D deprecated_warnings=false \
-D gtk_doc=true \
-D selinux=false \
-D gtk_layer_shell=true
-D selinux=false

export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
Expand Down
7 changes: 0 additions & 7 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,6 @@ if libselinux_enabled
endif
conf.set('HAVE_SELINUX', libselinux_enabled)

gtk_layer_shell_enabled = get_option('gtk_layer_shell')
if gtk_layer_shell_enabled
gtk_layer_shell = dependency('gtk-layer-shell-0', version: '>=0.8', required: false)
conf.set('HAVE_GTK_LAYER_SHELL', gtk_layer_shell.found())
endif

# make sure pango development files are installed
pango = dependency('pango', version: '>=1.40.0')
# check for newer pango for necessary workarounds
Expand Down Expand Up @@ -208,7 +202,6 @@ message('\n'.join(['',
' exempi support: @0@'.format(exempi_enabled),
' Tracker support: @0@'.format(tracker_enabled),
' Wayland support: @0@'.format(cc.has_header('gdk/gdkwayland.h', dependencies: gtk)),
' gtk-layer-shell-0: @0@'.format(gtk_layer_shell_enabled and gtk_layer_shell.found()),
'',
' nemo-extension documentation: @0@'.format(gtkdoc_enabled),
' nemo-extension introspection: @0@'.format(true),
Expand Down
2 changes: 0 additions & 2 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ option('empty_view', type : 'boolean', value : false,
description: 'Enable empty view')
option('tracker',type : 'combo', choices : ['true', 'false', 'auto'], value : 'false',
description: 'Tracker support')
option('gtk_layer_shell', type : 'boolean', value : false,
description: 'Use gtk-layer-shell to draw desktop on wayland')
4 changes: 0 additions & 4 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ if libexif_enabled
nemo_deps += libexif
endif

if gtk_layer_shell_enabled
nemo_deps += gtk_layer_shell
endif

nemo = executable('nemo',
nemoCommon_sources + nemoWindow_sources,
include_directories: [ rootInclude ],
Expand Down
8 changes: 1 addition & 7 deletions src/nemo-desktop-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,7 @@ main (int argc, char *argv[])

g_set_prgname ("nemo-desktop");

#ifdef HAVE_GTK_LAYER_SHELL
if (gtk_layer_is_supported())
gdk_set_allowed_backends ("wayland");
else
#else
gdk_set_allowed_backends ("x11");
#endif
gdk_set_allowed_backends ("x11");

#ifdef HAVE_EXEMPI
xmp_init();
Expand Down
16 changes: 0 additions & 16 deletions src/nemo-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@
#include <math.h>
#include <sys/time.h>

#ifdef HAVE_GTK_LAYER_SHELL
#include <gtk-layer-shell/gtk-layer-shell.h>
#endif

#define MAX_TITLE_LENGTH 180

/* Forward and back buttons on the mouse */
Expand Down Expand Up @@ -623,18 +619,6 @@ nemo_window_constructed (GObject *self)
window = NEMO_WINDOW (self);
application = nemo_application_get_singleton ();

#ifdef HAVE_GTK_LAYER_SHELL
if (gtk_layer_is_supported() && window->details->disable_chrome) {
gtk_layer_init_for_window(GTK_WINDOW(window));
gtk_layer_set_namespace(GTK_WINDOW(window), _("Nemo"));
gtk_layer_set_layer(GTK_WINDOW(window), GTK_LAYER_SHELL_LAYER_BOTTOM);
gtk_layer_set_margin(GTK_WINDOW(window), GTK_LAYER_SHELL_EDGE_TOP, 0);
for (int anchor = 0; anchor < 4; anchor++) {
gtk_layer_set_anchor(GTK_WINDOW(window), anchor, 1);
}
}
#endif

G_OBJECT_CLASS (nemo_window_parent_class)->constructed (self);
gtk_window_set_application (GTK_WINDOW (window), GTK_APPLICATION (application));

Expand Down
Loading