From 7b5a0590dec1342bc64b4d3372498ded5a7d06ac Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Tue, 13 Nov 2012 12:11:10 +0100 Subject: maximus: migrate to gsettings and drop libmateui --- maximus/main.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'maximus/main.c') diff --git a/maximus/main.c b/maximus/main.c index 4855aac..6bf4e1b 100644 --- a/maximus/main.c +++ b/maximus/main.c @@ -26,30 +26,15 @@ #include #include -#include #include #include "maximus-app.h" -static gboolean on_sess_save (MateClient *client, - gint arg1, - MateSaveStyle arg2, - gboolean arg3, - MateInteractStyle arg4, - gboolean arg5); - -static gboolean no_restart = FALSE; static gboolean version = FALSE; gboolean no_maximize = FALSE; GOptionEntry entries[] = { - { - "no-restart", 's', - 0, G_OPTION_ARG_NONE, - &no_restart, - "Do not automatically restart (standalone)", NULL - }, { "version", 'v', 0, G_OPTION_ARG_NONE, @@ -71,9 +56,7 @@ gint main (gint argc, gchar *argv[]) { UniqueApp *unique; MaximusApp *app; - MateClient *client; GOptionContext *context; - gchar *exec[] = {"maximus"}; g_thread_init (NULL); g_set_application_name ("Maximus"); @@ -92,19 +75,6 @@ gint main (gint argc, gchar *argv[]) g_option_context_add_group (context, gtk_get_option_group (TRUE)); g_option_context_parse (context, &argc, &argv, NULL); g_option_context_free(context); - - if (!no_restart) - { - mate_program_init ("mate-maximus", "1.3.0", LIBMATEUI_MODULE, argc, argv, - MATE_PARAM_NONE, NULL); - - client = mate_master_client (); - mate_client_set_restart_command (client, 1, exec); - mate_client_set_restart_style (client, MATE_RESTART_IMMEDIATELY); - - g_signal_connect (client, "save-yourself", - G_CALLBACK (on_sess_save), NULL); - } gdk_error_trap_push (); app = maximus_app_get_default (); @@ -114,13 +84,3 @@ gint main (gint argc, gchar *argv[]) return EXIT_SUCCESS; } - -static gboolean on_sess_save (MateClient *client, - gint arg1, - MateSaveStyle arg2, - gboolean arg3, - MateInteractStyle arg4, - gboolean arg5) -{ - return TRUE; -} -- cgit v1.2.1