summaryrefslogtreecommitdiff
path: root/mate-window-picker-applet/applet.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-04-28 16:56:54 +0300
committerStefano Karapetsas <[email protected]>2015-05-06 10:01:03 +0200
commitb84fe12fad7717ddfad5cb3bd12090f61864e759 (patch)
treea25c799c4401ddc5f2b7c46ffe95c8884a8f1f4c /mate-window-picker-applet/applet.c
parent77e619f1b5c11342c705936af3ac875e1369ebaa (diff)
downloadmate-netbook-b84fe12fad7717ddfad5cb3bd12090f61864e759.tar.bz2
mate-netbook-b84fe12fad7717ddfad5cb3bd12090f61864e759.tar.xz
window picker applet: don't mess with maximus settings
Closes https://github.com/mate-desktop/mate-netbook/pull/21
Diffstat (limited to 'mate-window-picker-applet/applet.c')
-rw-r--r--mate-window-picker-applet/applet.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/mate-window-picker-applet/applet.c b/mate-window-picker-applet/applet.c
index 3985383..3cd9c7a 100644
--- a/mate-window-picker-applet/applet.c
+++ b/mate-window-picker-applet/applet.c
@@ -47,10 +47,6 @@
#define APPLET_SCHEMA "org.mate.panel.applet.mate-window-picker-applet"
#define SHOW_WIN_KEY "show-all-windows"
-#define MAXIMUS_SCHEMA "org.mate.maximus"
-#define UNDECORATE_KEY "undecorate"
-#define NO_MAXIMIZE_KEY "no-maximize"
-
typedef struct
{
GtkWidget *tasks;
@@ -133,13 +129,6 @@ force_no_focus_padding (GtkWidget *widget)
static void
cw_applet_finalize (GObject *object)
{
- /* disable Maximus */
- GSettings *maximus_settings;
- maximus_settings = g_settings_new (MAXIMUS_SCHEMA);
- g_settings_set_boolean (maximus_settings, UNDECORATE_KEY, FALSE);
- g_settings_set_boolean (maximus_settings, NO_MAXIMIZE_KEY, TRUE);
- g_object_unref (maximus_settings);
-
if (G_OBJECT_CLASS (parent_class)->finalize)
(* G_OBJECT_CLASS (parent_class)->finalize) (object);
}
@@ -169,18 +158,10 @@ cw_applet_fill (MatePanelApplet *applet,
mainapp = app;
screen = wnck_screen_get_default ();
- /* prepare to disable Maximus */
object_class = G_OBJECT_GET_CLASS (G_OBJECT(applet));
object_class->finalize = cw_applet_finalize;
parent_class = g_type_class_peek_parent (object_class);
- /* enable Maximus */
- GSettings *maximus_settings;
- maximus_settings = g_settings_new (MAXIMUS_SCHEMA);
- g_settings_set_boolean (maximus_settings, UNDECORATE_KEY, TRUE);
- g_settings_set_boolean (maximus_settings, NO_MAXIMIZE_KEY, FALSE);
- g_object_unref (maximus_settings);
-
/* gsettings prefs */
app->settings = mate_panel_applet_settings_new (applet, APPLET_SCHEMA);
g_signal_connect (app->settings, "changed::" SHOW_WIN_KEY,