[gnome-todo] plugins: Remove useless panel menus
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] plugins: Remove useless panel menus
- Date: Wed, 12 Sep 2018 11:54:51 +0000 (UTC)
commit f05b72daf9a3e59976494937e76dd83905a48ec0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Sep 5 11:04:10 2018 -0300
plugins: Remove useless panel menus
plugins/scheduled-panel/gtd-panel-scheduled.c | 10 +---------
plugins/today-panel/gtd-panel-today.c | 10 +---------
2 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/plugins/scheduled-panel/gtd-panel-scheduled.c b/plugins/scheduled-panel/gtd-panel-scheduled.c
index 40faf7d..196cc5c 100644
--- a/plugins/scheduled-panel/gtd-panel-scheduled.c
+++ b/plugins/scheduled-panel/gtd-panel-scheduled.c
@@ -29,7 +29,6 @@ struct _GtdPanelScheduled
{
GtkBox parent;
- GMenu *menu;
GIcon *icon;
guint number_of_tasks;
@@ -361,7 +360,7 @@ gtd_panel_scheduled_get_header_widgets (GtdPanel *panel)
static const GMenu*
gtd_panel_scheduled_get_menu (GtdPanel *panel)
{
- return GTD_PANEL_SCHEDULED (panel)->menu;
+ return NULL;
}
static GIcon*
@@ -402,7 +401,6 @@ gtd_panel_scheduled_finalize (GObject *object)
GtdPanelScheduled *self = (GtdPanelScheduled *)object;
g_clear_object (&self->icon);
- g_clear_object (&self->menu);
g_clear_object (&self->model);
G_OBJECT_CLASS (gtd_panel_scheduled_parent_class)->finalize (object);
@@ -504,12 +502,6 @@ gtd_panel_scheduled_init (GtdPanelScheduled *self)
G_CALLBACK (gtd_panel_scheduled_count_tasks),
self);
- /* Menu */
- self->menu = g_menu_new ();
- g_menu_append (self->menu,
- _("Clear completed tasks…"),
- "list.clear-completed-tasks");
-
/* The main view */
self->view = gtd_task_list_view_new ();
gtd_task_list_view_set_model (GTD_TASK_LIST_VIEW (self->view), G_LIST_MODEL (self->model));
diff --git a/plugins/today-panel/gtd-panel-today.c b/plugins/today-panel/gtd-panel-today.c
index 5c95c7a..7d97899 100644
--- a/plugins/today-panel/gtd-panel-today.c
+++ b/plugins/today-panel/gtd-panel-today.c
@@ -28,7 +28,6 @@ struct _GtdPanelToday
GtkBox parent;
GtkWidget *view;
- GMenu *menu;
GIcon *icon;
GListStore *model;
@@ -281,7 +280,7 @@ gtd_panel_today_get_header_widgets (GtdPanel *panel)
static const GMenu*
gtd_panel_today_get_menu (GtdPanel *panel)
{
- return GTD_PANEL_TODAY (panel)->menu;
+ return NULL;
}
static GIcon*
@@ -322,7 +321,6 @@ gtd_panel_today_finalize (GObject *object)
GtdPanelToday *self = (GtdPanelToday *)object;
g_clear_object (&self->icon);
- g_clear_object (&self->menu);
g_clear_object (&self->model);
G_OBJECT_CLASS (gtd_panel_today_parent_class)->finalize (object);
@@ -424,12 +422,6 @@ gtd_panel_today_init (GtdPanelToday *self)
self,
G_CONNECT_SWAPPED);
- /* Menu */
- self->menu = g_menu_new ();
- g_menu_append (self->menu,
- _("Clear completed tasks…"),
- "list.clear-completed-tasks");
-
/* The main view */
self->view = gtd_task_list_view_new ();
gtd_task_list_view_set_model (GTD_TASK_LIST_VIEW (self->view), G_LIST_MODEL (self->model));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]