[ghex] Remove GNOME session management support



commit 546c1adeff459488866cb61b9086eac596de6638
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Jan 27 04:45:31 2010 +0100

    Remove GNOME session management support
    
    So we can get rid of libgnomeui dependency completely

 configure.in    |    1 -
 src/Makefile.am |    4 +-
 src/main.c      |   11 ------
 src/session.c   |   96 -------------------------------------------------------
 src/session.h   |   44 -------------------------
 5 files changed, 2 insertions(+), 154 deletions(-)
---
diff --git a/configure.in b/configure.in
index c893c34..9c48015 100644
--- a/configure.in
+++ b/configure.in
@@ -40,7 +40,6 @@ PKG_CHECK_MODULES(GHEX,
 		  gnome-vfs-2.0			\
 		  gtk+-2.0 >= 2.4.0 		\
 		  libbonoboui-2.0		\
-		  libgnomeui-2.0 >= 2.6.0	\
 		  libgnomeprintui-2.2)
 
 GHEX_CFLAGS="$GHEX_CFLAGS"
diff --git a/src/Makefile.am b/src/Makefile.am
index 28b460c..25cfa43 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -43,13 +43,13 @@ libgtkhex_HEADERS = \
 
 ghex2_SOURCES = \
 	hex-document-ui.c preferences.c findreplace.c converter.c	\
-	config.c main.c ui.c chartable.c session.c		\
+	config.c main.c ui.c chartable.c				\
 	print.c ghex-window.c ghex-window.h				\
 	gnome-print-font-dialog.c gnome-print-font-dialog.h		\
 	gnome-print-font-picker.c gnome-print-font-picker.h		\
 	factory.c factory.h hex-dialog.c hex-dialog.h			\
 	configuration.h preferences.h findreplace.h print.h		\
-	converter.h chartable.h ui.h session.h
+	converter.h chartable.h ui.h
 
 ghex-marshal.h: ghex-marshal.list $(GLIB_GENMARSHAL)
 	$(GLIB_GENMARSHAL) $< --header --prefix=ghex_marshal > $@
diff --git a/src/main.c b/src/main.c
index b29dce3..a4a9186 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,10 +23,7 @@
 
 #include <config.h>
 
-#include <libgnomeui/gnome-client.h>
-
 #include "configuration.h"
-#include "session.h"
 #include "factory.h"
 #include "ghex-window.h"
 
@@ -43,7 +40,6 @@ static GOptionEntry options[] = {
 int
 main(int argc, char **argv)
 {
-	GnomeClient *client;
 	GtkWidget *win;
 	GError *error = NULL;
 
@@ -76,13 +72,6 @@ main(int argc, char **argv)
 	if (bonobo_ui_init ("Gnome Binary Editor", VERSION, &argc, argv) == FALSE)
 		g_error (_("Could not initialize Bonobo!\n"));
 
-	client = gnome_master_client();
-
-	g_signal_connect (G_OBJECT (client), "save_yourself",
-					  G_CALLBACK (save_session), (gpointer) argv[0]);
-	g_signal_connect (G_OBJECT (client), "die",
-					  G_CALLBACK (client_die), NULL);
-
 	if (args_remaining != NULL) {
 		gchar **filename;
 		for (filename = args_remaining; *filename != NULL; filename++) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]