[gtk/deprecate-all-the-cells: 1/9] paperdialog: Drop an unused function
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/deprecate-all-the-cells: 1/9] paperdialog: Drop an unused function
- Date: Sat, 8 Oct 2022 02:02:17 +0000 (UTC)
commit a84d074fe121a49e743ae09d6212d4b6d90b6a34
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 7 22:00:23 2022 -0400
paperdialog: Drop an unused function
This gets rid of a GtkListStore use.
gtk/gtkcustompaperunixdialog.c | 23 -----------------------
gtk/gtkcustompaperunixdialog.h | 1 -
2 files changed, 24 deletions(-)
---
diff --git a/gtk/gtkcustompaperunixdialog.c b/gtk/gtkcustompaperunixdialog.c
index 3ed3949ecf..35d379484a 100644
--- a/gtk/gtkcustompaperunixdialog.c
+++ b/gtk/gtkcustompaperunixdialog.c
@@ -197,29 +197,6 @@ _gtk_load_custom_papers (void)
return g_list_reverse (result);
}
-void
-_gtk_print_load_custom_papers (GtkListStore *store)
-{
- GtkTreeIter iter;
- GList *papers, *p;
- GtkPageSetup *page_setup;
-
- gtk_list_store_clear (store);
-
- papers = _gtk_load_custom_papers ();
- for (p = papers; p; p = p->next)
- {
- page_setup = p->data;
- gtk_list_store_append (store, &iter);
- gtk_list_store_set (store, &iter,
- 0, page_setup,
- -1);
- g_object_unref (page_setup);
- }
-
- g_list_free (papers);
-}
-
void
gtk_print_load_custom_papers (GListStore *store)
{
diff --git a/gtk/gtkcustompaperunixdialog.h b/gtk/gtkcustompaperunixdialog.h
index 8f96bf91d2..b123ee9392 100644
--- a/gtk/gtkcustompaperunixdialog.h
+++ b/gtk/gtkcustompaperunixdialog.h
@@ -33,7 +33,6 @@ GType gtk_custom_paper_unix_dialog_get_type (void) G_GNUC_
GtkWidget * _gtk_custom_paper_unix_dialog_new (GtkWindow *parent,
const char *title);
GtkUnit _gtk_print_get_default_user_units (void);
-void _gtk_print_load_custom_papers (GtkListStore *store);
void gtk_print_load_custom_papers (GListStore *store);
GList * _gtk_load_custom_papers (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]