diff options
author | Stefano Karapetsas <[email protected]> | 2012-11-13 12:11:10 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-11-13 12:11:10 +0100 |
commit | 7b5a0590dec1342bc64b4d3372498ded5a7d06ac (patch) | |
tree | b6b36f40ca43ddf662b99949805f0dff5437a4ae /maximus/main.c | |
parent | fbef320f6d79dfdddfc2e77ac98936fbe1d5e183 (diff) | |
download | mate-netbook-7b5a0590dec1342bc64b4d3372498ded5a7d06ac.tar.bz2 mate-netbook-7b5a0590dec1342bc64b4d3372498ded5a7d06ac.tar.xz |
maximus: migrate to gsettings and drop libmateui
Diffstat (limited to 'maximus/main.c')
-rw-r--r-- | maximus/main.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/maximus/main.c b/maximus/main.c index 4855aac..6bf4e1b 100644 --- a/maximus/main.c +++ b/maximus/main.c @@ -26,31 +26,16 @@ #include <gtk/gtk.h> #include <gdk/gdkx.h> -#include <libmateui/libmateui.h> #include <unique/unique.h> #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, &version, @@ -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; -} |