[gnumeric] ssconvert: init gtk+ without opening any displays.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] ssconvert: init gtk+ without opening any displays.
- Date: Wed, 7 Aug 2013 20:20:07 +0000 (UTC)
commit f7fdf7f15844df6aa33f040f204a54ee7e99a1da
Author: Morten Welinder <terra gnome org>
Date: Wed Aug 7 16:18:54 2013 -0400
ssconvert: init gtk+ without opening any displays.
The print (and thus pdf) code uses GtkPrintOperation etc. We need to
init gtk+.
ChangeLog | 5 +++++
src/ssconvert.c | 7 ++++++-
2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 25915ce..60cec0c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-07 Morten Welinder <terra gnome org>
+
+ * src/ssconvert.c (main): Initialize gtk+ without opening any
+ display.
+
2013-08-04 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/sheet-control-gui.c (scg_show_im_tooltip): handle rtl sheets
diff --git a/src/ssconvert.c b/src/ssconvert.c
index 556ebb8..7294d03 100644
--- a/src/ssconvert.c
+++ b/src/ssconvert.c
@@ -812,7 +812,12 @@ main (int argc, char const **argv)
ocontext = g_option_context_new (_("INFILE [OUTFILE]"));
g_option_context_add_main_entries (ocontext, ssconvert_options, GETTEXT_PACKAGE);
- g_option_context_add_group (ocontext, gnm_get_option_group ());
+ g_option_context_add_group (ocontext, gnm_get_option_group ());
+ /*
+ * The printing code uses gtk+ stuff, so we need to init gtk+. We
+ * do that without opening any displays.
+ */
+ g_option_context_add_group (ocontext, gtk_get_option_group (FALSE));
g_option_context_parse (ocontext, &argc, (char ***)&argv, &error);
g_option_context_free (ocontext);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]