[tasks/gnome3: 15/18] Remove libunique code
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasks/gnome3: 15/18] Remove libunique code
- Date: Fri, 2 Dec 2011 15:06:28 +0000 (UTC)
commit 6897fc4c7f4de9bb8dd4d1c3ce2f5bc73f58fc5a
Author: Ross Burton <ross linux intel com>
Date: Mon Jul 18 17:10:07 2011 +0100
Remove libunique code
configure.ac | 9 ---------
src/gtk/main.c | 22 ++--------------------
2 files changed, 2 insertions(+), 29 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 250cdf2..b79b30a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,15 +40,6 @@ AS_IF([test "x$with_owl" = "xyes"], [
])
AM_CONDITIONAL(WITH_OWL, test "x$with_owl" = "xyes")
-AC_ARG_WITH(unique,
- AS_HELP_STRING([--with-unique],[Enable LibUnique support]),
- ,with_unique=no)
-AS_IF([test "x$with_unique" = "xyes"], [
- PKG_CHECK_MODULES(UNIQUE, unique-1.0)
- AC_DEFINE(WITH_UNIQUE, 1, [LibUnique present])
- ])
-AM_CONDITIONAL(WITH_UNIQUE, test "$with_unique" = "xyes")
-
AC_OUTPUT([
Makefile
data/Makefile
diff --git a/src/gtk/main.c b/src/gtk/main.c
index 6c8a0f1..8848bf3 100644
--- a/src/gtk/main.c
+++ b/src/gtk/main.c
@@ -46,15 +46,6 @@
#include <owlwindowmenu.h>
#endif
-#if WITH_UNIQUE
-#include <unique/unique.h>
-
-enum {
- COMMAND_ACTIVATE = UNIQUE_ACTIVATE,
- COMMAND_EDIT = 1
-};
-#endif
-
#include "ui.h"
#include "window-util.h"
@@ -542,7 +533,7 @@ koto_platform_edit_task (KotoTask *task)
edit_task (task);
}
-#if WITH_UNIQUE
+#if 0
static UniqueResponse
do_message_received (UniqueApp *app,
gint command,
@@ -595,10 +586,6 @@ main (int argc, char **argv)
{ NULL }
};
-#if WITH_UNIQUE
- UniqueApp *app;
-#endif
-
#ifdef ENABLE_NLS
/* Initialise i18n*/
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
@@ -616,7 +603,7 @@ main (int argc, char **argv)
return EXIT_FAILURE;
}
-#if WITH_UNIQUE
+#if 0
app = unique_app_new_with_commands ("org.pimlico-project.Tasks", NULL,
"edit", COMMAND_EDIT,
NULL);
@@ -674,11 +661,6 @@ main (int argc, char **argv)
window_bind_state (GTK_WINDOW (window), "main");
g_signal_connect (window, "destroy", gtk_main_quit, NULL);
-#if WITH_UNIQUE
- unique_app_watch_window (app, GTK_WINDOW (window));
- g_signal_connect (app, "message-received", G_CALLBACK (do_message_received), NULL);
-#endif
-
top_box = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (window), top_box);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]