[nautilus-actions: 16/19] No more build useless nautilus-actions-check-actions-changed program



commit 1e68709940c96f3383ec5256ababb8263f105f32
Author: Pierre Wieser <pwieser trychlos org>
Date:   Tue Jun 9 22:19:20 2009 +0200

    No more build useless nautilus-actions-check-actions-changed program
---
 ChangeLog                                         |    4 +
 src/utils/Makefile.am                             |    9 --
 src/utils/nautilus-actions-check-actions-change.c |   92 ---------------------
 3 files changed, 4 insertions(+), 101 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 45cd2e5..73171f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -38,6 +38,10 @@
 	Removed files as functions are now integrated in NactActionProfile
 	class.
 
+	* src/utils/nautilus-check-actions-changed.c:
+	* src/utils/Makefile.am:
+	No more build useless nautilus-actions-check-actions-changed program.
+
 2009-06-08 Pierre Wieser <pwieser trychlos org>
 
 	* src/common/nact-action-profile.c:
diff --git a/src/utils/Makefile.am b/src/utils/Makefile.am
index 0facd7e..8150ad6 100644
--- a/src/utils/Makefile.am
+++ b/src/utils/Makefile.am
@@ -28,7 +28,6 @@
 
 bin_PROGRAMS = \
 	nautilus-actions-new-config					\
-	nautilus-actions-check-actions-change		\
 	$(NULL)
 
 AM_CPPFLAGS += \
@@ -47,11 +46,3 @@ nautilus_actions_new_config_LDADD = \
 	$(top_builddir)/src/common/libnact.la		\
 	$(NAUTILUS_ACTIONS_UTILS_LIBS)				\
 	$(NULL)
-
-nautilus_actions_check_actions_change_SOURCES = \
-	nautilus-actions-check-actions-change.c
-
-nautilus_actions_check_actions_change_LDADD = \
-	$(top_builddir)/src/common/libnact.la		\
-	$(NAUTILUS_ACTIONS_LIBS)					\
-	$(NULL)
diff --git a/src/utils/nautilus-actions-check-actions-change.c b/src/utils/nautilus-actions-check-actions-change.c
deleted file mode 100644
index 62dea09..0000000
--- a/src/utils/nautilus-actions-check-actions-change.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * Nautilus Actions
- * A Nautilus extension which offers configurable context menu actions.
- *
- * Copyright (C) 2005 The GNOME Foundation
- * Copyright (C) 2006, 2007, 2008 Frederic Ruaudel and others (see AUTHORS)
- * Copyright (C) 2009 Pierre Wieser and others (see AUTHORS)
- *
- * This Program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This Program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this Library; see the file COPYING.  If not,
- * write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307, USA.
- *
- * Authors:
- *   Frederic Ruaudel <grumz grumz net>
- *   Rodrigo Moya <rodrigo gnome-db org>
- *   Pierre Wieser <pwieser trychlos org>
- *   ... and many others (see AUTHORS)
- */
-
-#include <config.h>
-#include <gtk/gtk.h>
-#include <common/nautilus-actions-config.h>
-#include <common/nautilus-actions-config-gconf-reader.h>
-
-static void nautilus_actions_action_added_handler (NautilusActionsConfig* config,
-																				NautilusActionsConfigAction* action,
-																				gpointer user_data)
-{
-	printf ("Action added: <>\n");
-	/*nautilus_actions_config_free_actions_list (self->config_list);*/
-	/*self->config_list = nautilus_actions_config_get_actions (NAUTILUS_ACTIONS_CONFIG (self->configs));*/
-}
-
-static void nautilus_actions_action_changed_handler (NautilusActionsConfig* config,
-																				NautilusActionsConfigAction* action,
-																				gpointer user_data)
-{
-	printf ("Action changed: <%s>\n", action->label);
-	NautilusActionsConfigAction *cur_action = nautilus_actions_config_get_action (config, action->uuid);
-	printf ("Action changed: cur <%s>\n", cur_action->label);
-	/*nautilus_actions_config_free_actions_list (self->config_list);*/
-	/*self->config_list = nautilus_actions_config_get_actions (NAUTILUS_ACTIONS_CONFIG (self->configs));*/
-}
-
-static void nautilus_actions_action_removed_handler (NautilusActionsConfig* config,
-																				NautilusActionsConfigAction* action,
-																				gpointer user_data)
-{
-	printf ("Action removed: <>\n");
-	/*nautilus_actions_config_free_actions_list (self->config_list);*/
-	/*self->config_list = nautilus_actions_config_get_actions (NAUTILUS_ACTIONS_CONFIG (self->configs));*/
-}
-
-
-int main (int argc, char **argv)
-{
-	NautilusActionsConfigGconfReader* config;
-
-	/* Initialize the widget set */
-	gtk_init (&argc, &argv);
-
-	printf ("Tracking for Action changes started... (Type Ctrl+C to stop)\n");
-
-	config = nautilus_actions_config_gconf_reader_get ();
-
-	g_signal_connect_after (G_OBJECT (config), "action_added",
-									(GCallback)nautilus_actions_action_added_handler,
-									NULL);
-	g_signal_connect_after (G_OBJECT (config), "action_changed",
-									(GCallback)nautilus_actions_action_changed_handler,
-									NULL);
-	g_signal_connect_after (G_OBJECT (config), "action_removed",
-									(GCallback)nautilus_actions_action_removed_handler,
-									NULL);
-
-	/* Enter the main event loop, and wait for user interaction */
-	gtk_main ();
-
-	/* The user lost interest */
-	return 0;
-}



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