[gnome-todo] window: Remove obsolete method
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] window: Remove obsolete method
- Date: Sat, 2 May 2020 11:49:15 +0000 (UTC)
commit 55ed418e02e335d371836e08f6d16b1f579d6a60
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat May 2 08:48:31 2020 -0300
window: Remove obsolete method
src/gtd-window.c | 28 ----------------------------
src/gtd-window.h | 4 ----
2 files changed, 32 deletions(-)
---
diff --git a/src/gtd-window.c b/src/gtd-window.c
index 9d08267..19ef0a0 100644
--- a/src/gtd-window.c
+++ b/src/gtd-window.c
@@ -688,34 +688,6 @@ gtd_window_cancel_notification (GtdWindow *self,
gtd_notification_widget_cancel (self->notification_widget, notification);
}
-/**
- * gtd_window_set_custom_title:
- * @window: a #GtdWindow
- * @title: (nullable): the #GtkHeaderBar title
- * @subtitle: (nullable): the #GtkHeaderBar subtitle
- *
- * Sets the #GtdWindow's headerbar title and subtitle. If @title is %NULL,
- * the header will be set to the stack switcher.
- */
-void
-gtd_window_set_custom_title (GtdWindow *self,
- const gchar *title,
- const gchar *subtitle)
-{
- g_return_if_fail (GTD_IS_WINDOW (self));
-
- if (title)
- {
- gtk_header_bar_set_custom_title (self->headerbar, NULL);
- gtk_header_bar_set_title (self->headerbar, title);
- gtk_header_bar_set_subtitle (self->headerbar, subtitle);
- }
- else
- {
- gtk_header_bar_set_title (self->headerbar, _("To Do"));
- }
-}
-
/**
* gtd_window_embed_widget_in_header:
* @self: a #GtdWindow
diff --git a/src/gtd-window.h b/src/gtd-window.h
index cf6b656..fcb1c04 100644
--- a/src/gtd-window.h
+++ b/src/gtd-window.h
@@ -40,10 +40,6 @@ void gtd_window_notify (GtdWindow
void gtd_window_cancel_notification (GtdWindow *window,
GtdNotification *notification);
-void gtd_window_set_custom_title (GtdWindow *window,
- const gchar *title,
- const gchar *subtitle);
-
void gtd_window_embed_widget_in_header (GtdWindow *self,
GtkWidget *widget,
GtkPositionType position);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]