summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation-unix.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-12-31 05:54:46 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-12-31 05:54:46 +0000
commit7979cd6ac71a04e2b72bff7c00da261c49476c43 (patch)
treed58c2fdd38471bcf2f2e057c4a40aad8837a9ded /gtk/gtkprintoperation-unix.c
parentb361ebba9b6e4a0d16764cc3e9c35d51ddef96f0 (diff)
downloadgdk-pixbuf-7979cd6ac71a04e2b72bff7c00da261c49476c43.tar.gz
Move a few settings to gtksettings.c to make sure they show up in the
2006-12-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation-unix.c: * gtk/gtkprintbackend.c: * gtk/gtkfilechooserdefault.c: * gtk/gtksettings.c: Move a few settings to gtksettings.c to make sure they show up in the docs. (#365364, Christian Persch) svn path=/trunk/; revision=16992
Diffstat (limited to 'gtk/gtkprintoperation-unix.c')
-rw-r--r--gtk/gtkprintoperation-unix.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c
index 4c72940c5..5e4f42279 100644
--- a/gtk/gtkprintoperation-unix.c
+++ b/gtk/gtkprintoperation-unix.c
@@ -165,34 +165,6 @@ shell_command_substitute_file (const gchar *cmd,
return result;
}
-static void
-gtk_print_operation_unix_initialize (void)
-{
- static gboolean initialized = FALSE;
-
- if (!initialized)
- {
- /**
- * GtkSettings:gtk-print-preview-command:
- *
- * A command to run for displaying the print preview. The command
- * should contain a %f placeholder, which will get replaced by
- * the path to the pdf file.
- *
- * The preview application is responsible for removing the pdf file
- * when it is done.
- *
- * Since: 2.10
- */
- gtk_settings_install_property (g_param_spec_string ("gtk-print-preview-command",
- P_("Default command to run when displaying a print preview"),
- P_("Command to run when displaying a print preview"),
- GTK_PRINT_PREVIEW_COMMAND,
- GTK_PARAM_READWRITE));
- initialized = TRUE;
- }
-}
-
void
_gtk_print_operation_platform_backend_launch_preview (GtkPrintOperation *op,
cairo_surface_t *surface,
@@ -208,8 +180,6 @@ _gtk_print_operation_platform_backend_launch_preview (GtkPrintOperation *op,
GdkScreen *screen;
GError *error = NULL;
- gtk_print_operation_unix_initialize ();
-
cairo_surface_destroy (surface);
settings = gtk_settings_get_default ();