[gnome-calendar] app: remove unused view type action
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] app: remove unused view type action
- Date: Thu, 4 Dec 2014 22:33:06 +0000 (UTC)
commit 7ab1af4e96ba7161c1b1b8c036a561ee587b9b00
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Sun Sep 28 20:50:43 2014 -0400
app: remove unused view type action
src/gcal-application.c | 46 ----------------------------------------------
1 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/src/gcal-application.c b/src/gcal-application.c
index 10ce508..d8fe41d 100644
--- a/src/gcal-application.c
+++ b/src/gcal-application.c
@@ -35,7 +35,6 @@ typedef struct
{
GtkWidget *window;
- GSimpleAction *view_action;
GSettings *settings;
GcalManager *manager;
@@ -61,10 +60,6 @@ static void gcal_application_launch_search (GSimpleAction *
GVariant *parameter,
gpointer app);
-static void gcal_application_change_view (GSimpleAction *simple,
- GVariant *parameter,
- gpointer user_data);
-
static void gcal_application_show_about (GSimpleAction *simple,
GVariant *parameter,
gpointer user_data);
@@ -73,10 +68,6 @@ static void gcal_application_quit (GSimpleAction *
GVariant *parameter,
gpointer user_data);
-static void gcal_application_changed_view (GSettings *settings,
- gchar *key,
- gpointer user_data);
-
G_DEFINE_TYPE_WITH_PRIVATE (GcalApplication, gcal_application, GTK_TYPE_APPLICATION);
static gboolean show_version = FALSE;
@@ -93,7 +84,6 @@ static GOptionEntry gcal_application_goptions[] = {
static const GActionEntry gcal_app_entries[] = {
{ "new", gcal_application_create_new_event },
{ "search", gcal_application_launch_search },
- { "view", gcal_application_change_view, "s" },
{ "about", gcal_application_show_about },
{ "quit", gcal_application_quit },
};
@@ -154,13 +144,6 @@ gcal_application_activate (GApplication *application)
"active-view",
G_SETTINGS_BIND_SET | G_SETTINGS_BIND_GET);
- g_object_bind_property (priv->window,
- "new-event-mode",
- priv->view_action,
- "enabled",
- G_BINDING_DEFAULT |
- G_BINDING_INVERT_BOOLEAN);
-
gtk_widget_show_all (priv->window);
}
}
@@ -288,18 +271,6 @@ gcal_application_launch_search (GSimpleAction *search,
}
static void
-gcal_application_change_view (GSimpleAction *simple,
- GVariant *parameter,
- gpointer user_data)
-{
- GcalApplicationPrivate *priv;
-
- priv = gcal_application_get_instance_private (GCAL_APPLICATION (user_data));
-
- g_settings_set_value (priv->settings, "active-view", parameter);
-}
-
-static void
gcal_application_show_about (GSimpleAction *simple,
GVariant *parameter,
gpointer user_data)
@@ -356,19 +327,6 @@ gcal_application_quit (GSimpleAction *simple,
g_application_quit (G_APPLICATION (user_data));
}
-static void
-gcal_application_changed_view (GSettings *settings,
- gchar *key,
- gpointer user_data)
-{
- GcalApplicationPrivate *priv;
-
- priv = gcal_application_get_instance_private (GCAL_APPLICATION (user_data));
- g_simple_action_set_state (priv->view_action,
- g_settings_get_value (priv->settings,
- "active-view"));
-}
-
/* Public API */
GcalApplication*
gcal_application_new (void)
@@ -385,10 +343,6 @@ gcal_application_new (void)
priv = gcal_application_get_instance_private (app);
priv->settings = g_settings_new ("org.gnome.calendar");
- g_signal_connect (priv->settings,
- "changed::active-view",
- G_CALLBACK (gcal_application_changed_view),
- app);
return app;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]