[gnome-todo] activatable: Remove header widgets support
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] activatable: Remove header widgets support
- Date: Sat, 2 May 2020 02:12:05 +0000 (UTC)
commit d66d854c3d93ff0b08838a2d1efcd88a0a774a2d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri May 1 11:15:32 2020 -0300
activatable: Remove header widgets support
plugins/all-tasks-panel/gtd-plugin-all-tasks-panel.c | 7 -------
plugins/background/gtd-plugin-background.c | 7 -------
plugins/dark-theme/gtd-plugin-dark-theme.c | 7 -------
plugins/eds/gtd-plugin-eds.c | 7 -------
plugins/inbox-panel/gtd-plugin-inbox-panel.c | 7 -------
plugins/next-week-panel/gtd-plugin-next-week-panel.c | 7 -------
plugins/night-light/gtd-night-light-plugin.c | 7 -------
plugins/scheduled-panel/gtd-plugin-scheduled-panel.c | 7 -------
.../gtd-plugin-task-lists-workspace.c | 7 -------
plugins/today-panel/gtd-plugin-today-panel.c | 7 -------
plugins/unscheduled-panel/unscheduled-panel/__init__.py | 3 ---
src/interfaces/gtd-activatable.c | 17 -----------------
src/interfaces/gtd-activatable.h | 4 ----
13 files changed, 94 deletions(-)
---
diff --git a/plugins/all-tasks-panel/gtd-plugin-all-tasks-panel.c
b/plugins/all-tasks-panel/gtd-plugin-all-tasks-panel.c
index 2191167..dbf1aeb 100644
--- a/plugins/all-tasks-panel/gtd-plugin-all-tasks-panel.c
+++ b/plugins/all-tasks-panel/gtd-plugin-all-tasks-panel.c
@@ -60,12 +60,6 @@ gtd_plugin_all_tasks_panel_deactivate (GtdActivatable *activatable)
{
}
-static GList*
-gtd_plugin_all_tasks_panel_get_header_widgets (GtdActivatable *activatable)
-{
- return NULL;
-}
-
static GtkWidget*
gtd_plugin_all_tasks_panel_get_preferences_panel (GtdActivatable *activatable)
{
@@ -83,7 +77,6 @@ gtd_activatable_iface_init (GtdActivatableInterface *iface)
{
iface->activate = gtd_plugin_all_tasks_panel_activate;
iface->deactivate = gtd_plugin_all_tasks_panel_deactivate;
- iface->get_header_widgets = gtd_plugin_all_tasks_panel_get_header_widgets;
iface->get_preferences_panel = gtd_plugin_all_tasks_panel_get_preferences_panel;
iface->get_providers = gtd_plugin_all_tasks_panel_get_providers;
}
diff --git a/plugins/background/gtd-plugin-background.c b/plugins/background/gtd-plugin-background.c
index bc8d8e1..15eb2d1 100644
--- a/plugins/background/gtd-plugin-background.c
+++ b/plugins/background/gtd-plugin-background.c
@@ -490,12 +490,6 @@ gtd_plugin_background_deactivate (GtdActivatable *activatable)
start_update (self);
}
-static GList*
-gtd_plugin_background_get_header_widgets (GtdActivatable *activatable)
-{
- return NULL;
-}
-
static GtkWidget*
gtd_plugin_background_get_preferences_panel (GtdActivatable *activatable)
{
@@ -515,7 +509,6 @@ gtd_activatable_iface_init (GtdActivatableInterface *iface)
{
iface->activate = gtd_plugin_background_activate;
iface->deactivate = gtd_plugin_background_deactivate;
- iface->get_header_widgets = gtd_plugin_background_get_header_widgets;
iface->get_preferences_panel = gtd_plugin_background_get_preferences_panel;
iface->get_providers = gtd_plugin_background_get_providers;
}
diff --git a/plugins/dark-theme/gtd-plugin-dark-theme.c b/plugins/dark-theme/gtd-plugin-dark-theme.c
index 492a116..a852e63 100644
--- a/plugins/dark-theme/gtd-plugin-dark-theme.c
+++ b/plugins/dark-theme/gtd-plugin-dark-theme.c
@@ -59,12 +59,6 @@ gtd_plugin_dark_theme_deactivate (GtdActivatable *activatable)
NULL);
}
-static GList*
-gtd_plugin_dark_theme_get_header_widgets (GtdActivatable *activatable)
-{
- return NULL;
-}
-
static GtkWidget*
gtd_plugin_dark_theme_get_preferences_panel (GtdActivatable *activatable)
{
@@ -82,7 +76,6 @@ gtd_activatable_iface_init (GtdActivatableInterface *iface)
{
iface->activate = gtd_plugin_dark_theme_activate;
iface->deactivate = gtd_plugin_dark_theme_deactivate;
- iface->get_header_widgets = gtd_plugin_dark_theme_get_header_widgets;
iface->get_preferences_panel = gtd_plugin_dark_theme_get_preferences_panel;
iface->get_providers = gtd_plugin_dark_theme_get_providers;
}
diff --git a/plugins/eds/gtd-plugin-eds.c b/plugins/eds/gtd-plugin-eds.c
index fab4df6..e131a5b 100644
--- a/plugins/eds/gtd-plugin-eds.c
+++ b/plugins/eds/gtd-plugin-eds.c
@@ -84,12 +84,6 @@ gtd_plugin_eds_deactivate (GtdActivatable *activatable)
;
}
-static GList*
-gtd_plugin_eds_get_header_widgets (GtdActivatable *activatable)
-{
- return NULL;
-}
-
static GtkWidget*
gtd_plugin_eds_get_preferences_panel (GtdActivatable *activatable)
{
@@ -109,7 +103,6 @@ gtd_activatable_iface_init (GtdActivatableInterface *iface)
{
iface->activate = gtd_plugin_eds_activate;
iface->deactivate = gtd_plugin_eds_deactivate;
- iface->get_header_widgets = gtd_plugin_eds_get_header_widgets;
iface->get_preferences_panel = gtd_plugin_eds_get_preferences_panel;
iface->get_providers = gtd_plugin_eds_get_providers;
}
diff --git a/plugins/inbox-panel/gtd-plugin-inbox-panel.c b/plugins/inbox-panel/gtd-plugin-inbox-panel.c
index b2eeb5c..f09caa5 100644
--- a/plugins/inbox-panel/gtd-plugin-inbox-panel.c
+++ b/plugins/inbox-panel/gtd-plugin-inbox-panel.c
@@ -63,12 +63,6 @@ gtd_plugin_inbox_panel_deactivate (GtdActivatable *activatable)
;
}
-static GList*
-gtd_plugin_inbox_panel_get_header_widgets (GtdActivatable *activatable)
-{
- return NULL;
-}
-
static GtkWidget*
gtd_plugin_inbox_panel_get_preferences_panel (GtdActivatable *activatable)
{
@@ -86,7 +80,6 @@ gtd_activatable_iface_init (GtdActivatableInterface *iface)
{
iface->activate = gtd_plugin_inbox_panel_activate;
iface->deactivate = gtd_plugin_inbox_panel_deactivate;
- iface->get_header_widgets = gtd_plugin_inbox_panel_get_header_widgets;
iface->get_preferences_panel = gtd_plugin_inbox_panel_get_preferences_panel;
iface->get_providers = gtd_plugin_inbox_panel_get_providers;
}
diff --git a/plugins/next-week-panel/gtd-plugin-next-week-panel.c
b/plugins/next-week-panel/gtd-plugin-next-week-panel.c
index 8edd146..46f2b73 100644
--- a/plugins/next-week-panel/gtd-plugin-next-week-panel.c
+++ b/plugins/next-week-panel/gtd-plugin-next-week-panel.c
@@ -63,12 +63,6 @@ gtd_plugin_next_week_panel_deactivate (GtdActivatable *activatable)
;
}
-static GList*
-gtd_plugin_next_week_panel_get_header_widgets (GtdActivatable *activatable)
-{
- return NULL;
-}
-
static GtkWidget*
gtd_plugin_next_week_panel_get_preferences_panel (GtdActivatable *activatable)
{
@@ -86,7 +80,6 @@ gtd_activatable_iface_init (GtdActivatableInterface *iface)
{
iface->activate = gtd_plugin_next_week_panel_activate;
iface->deactivate = gtd_plugin_next_week_panel_deactivate;
- iface->get_header_widgets = gtd_plugin_next_week_panel_get_header_widgets;
iface->get_preferences_panel = gtd_plugin_next_week_panel_get_preferences_panel;
iface->get_providers = gtd_plugin_next_week_panel_get_providers;
}
diff --git a/plugins/night-light/gtd-night-light-plugin.c b/plugins/night-light/gtd-night-light-plugin.c
index d42a11d..9f800f3 100644
--- a/plugins/night-light/gtd-night-light-plugin.c
+++ b/plugins/night-light/gtd-night-light-plugin.c
@@ -147,12 +147,6 @@ gtd_night_light_plugin_deactivate (GtdActivatable *activatable)
GTD_EXIT;
}
-static GList*
-gtd_night_light_plugin_get_header_widgets (GtdActivatable *activatable)
-{
- return NULL;
-}
-
static GtkWidget*
gtd_night_light_plugin_get_preferences_panel (GtdActivatable *activatable)
{
@@ -170,7 +164,6 @@ gtd_activatable_iface_init (GtdActivatableInterface *iface)
{
iface->activate = gtd_night_light_plugin_activate;
iface->deactivate = gtd_night_light_plugin_deactivate;
- iface->get_header_widgets = gtd_night_light_plugin_get_header_widgets;
iface->get_preferences_panel = gtd_night_light_plugin_get_preferences_panel;
iface->get_providers = gtd_night_light_plugin_get_providers;
}
diff --git a/plugins/scheduled-panel/gtd-plugin-scheduled-panel.c
b/plugins/scheduled-panel/gtd-plugin-scheduled-panel.c
index b1400bc..38e03e9 100644
--- a/plugins/scheduled-panel/gtd-plugin-scheduled-panel.c
+++ b/plugins/scheduled-panel/gtd-plugin-scheduled-panel.c
@@ -60,12 +60,6 @@ gtd_plugin_scheduled_panel_deactivate (GtdActivatable *activatable)
;
}
-static GList*
-gtd_plugin_scheduled_panel_get_header_widgets (GtdActivatable *activatable)
-{
- return NULL;
-}
-
static GtkWidget*
gtd_plugin_scheduled_panel_get_preferences_panel (GtdActivatable *activatable)
{
@@ -83,7 +77,6 @@ gtd_activatable_iface_init (GtdActivatableInterface *iface)
{
iface->activate = gtd_plugin_scheduled_panel_activate;
iface->deactivate = gtd_plugin_scheduled_panel_deactivate;
- iface->get_header_widgets = gtd_plugin_scheduled_panel_get_header_widgets;
iface->get_preferences_panel = gtd_plugin_scheduled_panel_get_preferences_panel;
iface->get_providers = gtd_plugin_scheduled_panel_get_providers;
}
diff --git a/plugins/task-lists-workspace/gtd-plugin-task-lists-workspace.c
b/plugins/task-lists-workspace/gtd-plugin-task-lists-workspace.c
index 0361793..013b332 100644
--- a/plugins/task-lists-workspace/gtd-plugin-task-lists-workspace.c
+++ b/plugins/task-lists-workspace/gtd-plugin-task-lists-workspace.c
@@ -64,12 +64,6 @@ gtd_plugin_task_lists_workspace_deactivate (GtdActivatable *activatable)
{
}
-static GList*
-gtd_plugin_task_lists_workspace_get_header_widgets (GtdActivatable *activatable)
-{
- return NULL;
-}
-
static GtkWidget*
gtd_plugin_task_lists_workspace_get_preferences_panel (GtdActivatable *activatable)
{
@@ -87,7 +81,6 @@ gtd_activatable_iface_init (GtdActivatableInterface *iface)
{
iface->activate = gtd_plugin_task_lists_workspace_activate;
iface->deactivate = gtd_plugin_task_lists_workspace_deactivate;
- iface->get_header_widgets = gtd_plugin_task_lists_workspace_get_header_widgets;
iface->get_preferences_panel = gtd_plugin_task_lists_workspace_get_preferences_panel;
iface->get_providers = gtd_plugin_task_lists_workspace_get_providers;
}
diff --git a/plugins/today-panel/gtd-plugin-today-panel.c b/plugins/today-panel/gtd-plugin-today-panel.c
index 8916451..7954f12 100644
--- a/plugins/today-panel/gtd-plugin-today-panel.c
+++ b/plugins/today-panel/gtd-plugin-today-panel.c
@@ -61,12 +61,6 @@ gtd_plugin_today_panel_deactivate (GtdActivatable *activatable)
;
}
-static GList*
-gtd_plugin_today_panel_get_header_widgets (GtdActivatable *activatable)
-{
- return NULL;
-}
-
static GtkWidget*
gtd_plugin_today_panel_get_preferences_panel (GtdActivatable *activatable)
{
@@ -84,7 +78,6 @@ gtd_activatable_iface_init (GtdActivatableInterface *iface)
{
iface->activate = gtd_plugin_today_panel_activate;
iface->deactivate = gtd_plugin_today_panel_deactivate;
- iface->get_header_widgets = gtd_plugin_today_panel_get_header_widgets;
iface->get_preferences_panel = gtd_plugin_today_panel_get_preferences_panel;
iface->get_providers = gtd_plugin_today_panel_get_providers;
}
diff --git a/plugins/unscheduled-panel/unscheduled-panel/__init__.py
b/plugins/unscheduled-panel/unscheduled-panel/__init__.py
index 46a4af4..784e1c7 100644
--- a/plugins/unscheduled-panel/unscheduled-panel/__init__.py
+++ b/plugins/unscheduled-panel/unscheduled-panel/__init__.py
@@ -130,9 +130,6 @@ class UnscheduledPanelPlugin(GObject.Object, Gtd.Activatable):
def do_deactivate(self):
pass
- def do_get_header_widgets(self):
- return None
-
def do_get_preferences_panel(self):
return None
diff --git a/src/interfaces/gtd-activatable.c b/src/interfaces/gtd-activatable.c
index ce87c15..c32d523 100644
--- a/src/interfaces/gtd-activatable.c
+++ b/src/interfaces/gtd-activatable.c
@@ -156,23 +156,6 @@ gtd_activatable_deactivate (GtdActivatable *activatable)
GTD_ACTIVATABLE_GET_IFACE (activatable)->deactivate (activatable);
}
-/**
- * gtd_activatable_get_header_widgets:
- * @activatable: a #GtdActivatable
- *
- * Retrieve the list header widgets of @activatable if any.
- *
- * Returns: (transfer container) (element-type Gtk.Widget): a #GList
- */
-GList*
-gtd_activatable_get_header_widgets (GtdActivatable *activatable)
-{
- g_return_val_if_fail (GTD_IS_ACTIVATABLE (activatable), NULL);
- g_return_val_if_fail (GTD_ACTIVATABLE_GET_IFACE (activatable)->get_header_widgets, NULL);
-
- return GTD_ACTIVATABLE_GET_IFACE (activatable)->get_header_widgets (activatable);
-}
-
/**
* gtd_activatable_get_preferences_panel:
* @activatable: a #GtdActivatable
diff --git a/src/interfaces/gtd-activatable.h b/src/interfaces/gtd-activatable.h
index ebe9fab..4e1098a 100644
--- a/src/interfaces/gtd-activatable.h
+++ b/src/interfaces/gtd-activatable.h
@@ -38,8 +38,6 @@ struct _GtdActivatableInterface
void (*deactivate) (GtdActivatable *activatable);
- GList* (*get_header_widgets) (GtdActivatable *activatable);
-
GtkWidget* (*get_preferences_panel) (GtdActivatable *activatable);
GList* (*get_providers) (GtdActivatable *activatable);
@@ -49,8 +47,6 @@ void gtd_activatable_activate (GtdActivatable
void gtd_activatable_deactivate (GtdActivatable *activatable);
-GList* gtd_activatable_get_header_widgets (GtdActivatable *activatable);
-
GtkWidget* gtd_activatable_get_preferences_panel (GtdActivatable *activatable);
GList* gtd_activatable_get_providers (GtdActivatable *activatable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]