[gnome-control-center] printers: Make get_paper_size_from_locale() available to other source files
- From: Marek KaÅÃk <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: Make get_paper_size_from_locale() available to other source files
- Date: Tue, 4 Sep 2012 12:11:29 +0000 (UTC)
commit 869555455795d688ec0c520df0bba9ae6ba3c12b
Author: Marek Kasik <mkasik redhat com>
Date: Mon Sep 3 20:27:04 2012 +0200
printers: Make get_paper_size_from_locale() available to other source files
Export get_paper_size_from_locale() in pp-utils.h. (#683229)
panels/printers/pp-utils.c | 2 +-
panels/printers/pp-utils.h | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/printers/pp-utils.c b/panels/printers/pp-utils.c
index 2d6a5a8..e43e4a2 100644
--- a/panels/printers/pp-utils.c
+++ b/panels/printers/pp-utils.c
@@ -2532,7 +2532,7 @@ printer_get_hostname (cups_ptype_t printer_type,
}
/* Returns default media size for current locale */
-static const gchar *
+const gchar *
get_paper_size_from_locale ()
{
if (g_str_equal (gtk_paper_size_get_default (), GTK_PAPER_NAME_LETTER))
diff --git a/panels/printers/pp-utils.h b/panels/printers/pp-utils.h
index 0299979..5343e0e 100644
--- a/panels/printers/pp-utils.h
+++ b/panels/printers/pp-utils.h
@@ -289,6 +289,8 @@ typedef struct{
void pp_print_device_free (PpPrintDevice *device);
+const gchar *get_paper_size_from_locale (void);
+
typedef void (*GCDCallback) (GList *devices,
gboolean finished,
gboolean cancelled,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]