Commit 0ef74c93 authored by Marek Kasik's avatar Marek Kasik

Add paper size combo and orientation combo to print dialog

Paper size combo and orientation combo can be added by
gtk_print_operation_set_embed_page_setup_dialog() to GtkPrinUnixDialog
now. This function induce calling of
gtk_print_unix_dailog_set_embed_page_setup_dialog() after creation of
dialog. These two functions control embed-page-setup-dialog properties
in GtkPrintOperation and in GtkPrintUnixDialog.
There is also new function gtk_print_unix_dialog_get_page_setup_set()
which says whether page setup was set by user.
Selected page setup is stored as default page setup in
GtkPrintOperation.
New class is added, its name is GtkCustomPaperUnixDialog. The class
manages custom sizes. It is derived from GtkPageSetupUnixDialog's
CustomPaperDialog structure.
Page layout preview is modified, so, it shows dimensions of current
page setup (mm or inch - depends on locale). It also shows the name of
actual paper if page setup dialog is not embedded (paper size combo is
not visible).
gtk-demo is actualized to include this new feature.
parent 6ca5430a
...@@ -166,6 +166,7 @@ do_printing (GtkWidget *do_widget) ...@@ -166,6 +166,7 @@ do_printing (GtkWidget *do_widget)
gtk_print_operation_set_use_full_page (operation, FALSE); gtk_print_operation_set_use_full_page (operation, FALSE);
gtk_print_operation_set_unit (operation, GTK_UNIT_POINTS); gtk_print_operation_set_unit (operation, GTK_UNIT_POINTS);
gtk_print_operation_set_embed_page_setup (operation, TRUE);
settings = gtk_print_settings_new (); settings = gtk_print_settings_new ();
dir = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS); dir = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS);
......
...@@ -6605,6 +6605,8 @@ gtk_print_operation_set_support_selection ...@@ -6605,6 +6605,8 @@ gtk_print_operation_set_support_selection
gtk_print_operation_get_support_selection gtk_print_operation_get_support_selection
gtk_print_operation_set_has_selection gtk_print_operation_set_has_selection
gtk_print_operation_get_has_selection gtk_print_operation_get_has_selection
gtk_print_operation_set_embed_page_setup
gtk_print_operation_get_embed_page_setup
gtk_print_run_page_setup_dialog gtk_print_run_page_setup_dialog
GtkPageSetupDoneFunc GtkPageSetupDoneFunc
gtk_print_run_page_setup_dialog_async gtk_print_run_page_setup_dialog_async
...@@ -6653,6 +6655,9 @@ gtk_print_unix_dialog_set_support_selection ...@@ -6653,6 +6655,9 @@ gtk_print_unix_dialog_set_support_selection
gtk_print_unix_dialog_get_support_selection gtk_print_unix_dialog_get_support_selection
gtk_print_unix_dialog_set_has_selection gtk_print_unix_dialog_set_has_selection
gtk_print_unix_dialog_get_has_selection gtk_print_unix_dialog_get_has_selection
gtk_print_unix_dialog_set_embed_page_setup
gtk_print_unix_dialog_get_embed_page_setup
gtk_print_unix_dialog_get_page_setup_set
GtkPrintCapabilities GtkPrintCapabilities
gtk_print_unix_dialog_set_manual_capabilities gtk_print_unix_dialog_set_manual_capabilities
gtk_print_unix_dialog_get_manual_capabilities gtk_print_unix_dialog_get_manual_capabilities
......
...@@ -358,6 +358,7 @@ gtk_private_h_sources = \ ...@@ -358,6 +358,7 @@ gtk_private_h_sources = \
gtkdndcursors.h \ gtkdndcursors.h \
gtkentryprivate.h \ gtkentryprivate.h \
gtkbuilderprivate.h \ gtkbuilderprivate.h \
gtkcustompaperunixdialog.h\
gtkfilechooserdefault.h \ gtkfilechooserdefault.h \
gtkfilechooserembed.h \ gtkfilechooserembed.h \
gtkfilechooserentry.h \ gtkfilechooserentry.h \
...@@ -662,6 +663,7 @@ gtk_c_sources = $(gtk_base_c_sources) ...@@ -662,6 +663,7 @@ gtk_c_sources = $(gtk_base_c_sources)
gtk_all_c_sources = $(gtk_base_c_sources) gtk_all_c_sources = $(gtk_base_c_sources)
gtk_os_unix_c_sources = \ gtk_os_unix_c_sources = \
gtkcustompaperunixdialog.c \
gtkpagesetupunixdialog.c \ gtkpagesetupunixdialog.c \
gtkprinter.c \ gtkprinter.c \
gtkprinteroption.c \ gtkprinteroption.c \
......
...@@ -2998,6 +2998,8 @@ gtk_print_operation_set_support_selection ...@@ -2998,6 +2998,8 @@ gtk_print_operation_set_support_selection
gtk_print_operation_get_support_selection gtk_print_operation_get_support_selection
gtk_print_operation_set_has_selection gtk_print_operation_set_has_selection
gtk_print_operation_get_has_selection gtk_print_operation_get_has_selection
gtk_print_operation_set_embed_page_setup
gtk_print_operation_get_embed_page_setup
#endif #endif
#endif #endif
...@@ -3127,6 +3129,9 @@ gtk_print_unix_dialog_set_support_selection ...@@ -3127,6 +3129,9 @@ gtk_print_unix_dialog_set_support_selection
gtk_print_unix_dialog_get_support_selection gtk_print_unix_dialog_get_support_selection
gtk_print_unix_dialog_set_has_selection gtk_print_unix_dialog_set_has_selection
gtk_print_unix_dialog_get_has_selection gtk_print_unix_dialog_get_has_selection
gtk_print_unix_dialog_set_embed_page_setup
gtk_print_unix_dialog_get_embed_page_setup
gtk_print_unix_dialog_get_page_setup_set
#endif #endif
#endif #endif
#endif #endif
......
This diff is collapsed.
/* GtkCustomPaperUnixDialog
* Copyright (C) 2006 Alexander Larsson <alexl@redhat.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_UNIX_PRINT_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtkunixprint.h> can be included directly."
#endif
#ifndef __GTK_CUSTOM_PAPER_UNIX_DIALOG_H__
#define __GTK_CUSTOM_PAPER_UNIX_DIALOG_H__
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define GTK_TYPE_CUSTOM_PAPER_UNIX_DIALOG (gtk_custom_paper_unix_dialog_get_type ())
#define GTK_CUSTOM_PAPER_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CUSTOM_PAPER_UNIX_DIALOG, GtkCustomPaperUnixDialog))
#define GTK_CUSTOM_PAPER_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CUSTOM_PAPER_UNIX_DIALOG, GtkCustomPaperUnixDialogClass))
#define GTK_IS_CUSTOM_PAPER_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CUSTOM_PAPER_UNIX_DIALOG))
#define GTK_IS_CUSTOM_PAPER_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CUSTOM_PAPER_UNIX_DIALOG))
#define GTK_CUSTOM_PAPER_UNIX_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CUSTOM_PAPER_UNIX_DIALOG, GtkCustomPaperUnixDialogClass))
typedef struct _GtkCustomPaperUnixDialog GtkCustomPaperUnixDialog;
typedef struct _GtkCustomPaperUnixDialogClass GtkCustomPaperUnixDialogClass;
typedef struct GtkCustomPaperUnixDialogPrivate GtkCustomPaperUnixDialogPrivate;
struct _GtkCustomPaperUnixDialog
{
GtkDialog parent_instance;
GtkCustomPaperUnixDialogPrivate *GSEAL (priv);
};
struct _GtkCustomPaperUnixDialogClass
{
GtkDialogClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
void (*_gtk_reserved5) (void);
void (*_gtk_reserved6) (void);
void (*_gtk_reserved7) (void);
};
GType gtk_custom_paper_unix_dialog_get_type (void) G_GNUC_CONST;
GtkWidget * _gtk_custom_paper_unix_dialog_new (GtkWindow *parent,
const gchar *title);
GtkUnit _gtk_print_get_default_user_units (void);
void _gtk_print_load_custom_papers (GtkListStore *store);
void _gtk_print_save_custom_papers (GtkListStore *store);
G_END_DECLS
#endif /* __GTK_CUSTOM_PAPER_UNIX_DIALOG_H__ */
This diff is collapsed.
...@@ -56,6 +56,7 @@ struct _GtkPrintOperationPrivate ...@@ -56,6 +56,7 @@ struct _GtkPrintOperationPrivate
guint is_sync : 1; guint is_sync : 1;
guint support_selection : 1; guint support_selection : 1;
guint has_selection : 1; guint has_selection : 1;
guint embed_page_setup : 1;
GtkPageDrawingState page_drawing_state; GtkPageDrawingState page_drawing_state;
......
...@@ -414,10 +414,14 @@ get_print_dialog (GtkPrintOperation *op, ...@@ -414,10 +414,14 @@ get_print_dialog (GtkPrintOperation *op,
if (priv->print_settings) if (priv->print_settings)
gtk_print_unix_dialog_set_settings (GTK_PRINT_UNIX_DIALOG (pd), gtk_print_unix_dialog_set_settings (GTK_PRINT_UNIX_DIALOG (pd),
priv->print_settings); priv->print_settings);
if (priv->default_page_setup) if (priv->default_page_setup)
gtk_print_unix_dialog_set_page_setup (GTK_PRINT_UNIX_DIALOG (pd), gtk_print_unix_dialog_set_page_setup (GTK_PRINT_UNIX_DIALOG (pd),
priv->default_page_setup); priv->default_page_setup);
gtk_print_unix_dialog_set_embed_page_setup (GTK_PRINT_UNIX_DIALOG (pd),
priv->embed_page_setup);
gtk_print_unix_dialog_set_current_page (GTK_PRINT_UNIX_DIALOG (pd), gtk_print_unix_dialog_set_current_page (GTK_PRINT_UNIX_DIALOG (pd),
priv->current_page); priv->current_page);
...@@ -477,7 +481,8 @@ static void ...@@ -477,7 +481,8 @@ static void
finish_print (PrintResponseData *rdata, finish_print (PrintResponseData *rdata,
GtkPrinter *printer, GtkPrinter *printer,
GtkPageSetup *page_setup, GtkPageSetup *page_setup,
GtkPrintSettings *settings) GtkPrintSettings *settings,
gboolean page_setup_set)
{ {
GtkPrintOperation *op = rdata->op; GtkPrintOperation *op = rdata->op;
GtkPrintOperationPrivate *priv = op->priv; GtkPrintOperationPrivate *priv = op->priv;
...@@ -488,7 +493,9 @@ finish_print (PrintResponseData *rdata, ...@@ -488,7 +493,9 @@ finish_print (PrintResponseData *rdata,
gtk_print_operation_set_print_settings (op, settings); gtk_print_operation_set_print_settings (op, settings);
priv->print_context = _gtk_print_context_new (op); priv->print_context = _gtk_print_context_new (op);
if ( (page_setup != NULL) && (gtk_print_operation_get_default_page_setup (op) == NULL)) if (page_setup != NULL &&
(gtk_print_operation_get_default_page_setup (op) == NULL ||
page_setup_set))
gtk_print_operation_set_default_page_setup (op, page_setup); gtk_print_operation_set_default_page_setup (op, page_setup);
_gtk_print_context_set_page_setup (priv->print_context, page_setup); _gtk_print_context_set_page_setup (priv->print_context, page_setup);
...@@ -561,6 +568,7 @@ handle_print_response (GtkWidget *dialog, ...@@ -561,6 +568,7 @@ handle_print_response (GtkWidget *dialog,
GtkPrintSettings *settings = NULL; GtkPrintSettings *settings = NULL;
GtkPageSetup *page_setup = NULL; GtkPageSetup *page_setup = NULL;
GtkPrinter *printer = NULL; GtkPrinter *printer = NULL;
gboolean page_setup_set = FALSE;
if (response == GTK_RESPONSE_OK) if (response == GTK_RESPONSE_OK)
{ {
...@@ -585,11 +593,12 @@ handle_print_response (GtkWidget *dialog, ...@@ -585,11 +593,12 @@ handle_print_response (GtkWidget *dialog,
{ {
settings = gtk_print_unix_dialog_get_settings (GTK_PRINT_UNIX_DIALOG (pd)); settings = gtk_print_unix_dialog_get_settings (GTK_PRINT_UNIX_DIALOG (pd));
page_setup = gtk_print_unix_dialog_get_page_setup (GTK_PRINT_UNIX_DIALOG (pd)); page_setup = gtk_print_unix_dialog_get_page_setup (GTK_PRINT_UNIX_DIALOG (pd));
page_setup_set = gtk_print_unix_dialog_get_page_setup_set (GTK_PRINT_UNIX_DIALOG (pd));
g_signal_emit_by_name (rdata->op, "custom-widget-apply", rdata->op->priv->custom_widget); g_signal_emit_by_name (rdata->op, "custom-widget-apply", rdata->op->priv->custom_widget);
} }
finish_print (rdata, printer, page_setup, settings); finish_print (rdata, printer, page_setup, settings, page_setup_set);
if (settings) if (settings)
g_object_unref (settings); g_object_unref (settings);
...@@ -631,7 +640,7 @@ found_printer (GtkPrinter *printer, ...@@ -631,7 +640,7 @@ found_printer (GtkPrinter *printer,
page_setup = gtk_page_setup_new (); page_setup = gtk_page_setup_new ();
} }
finish_print (rdata, printer, page_setup, settings); finish_print (rdata, printer, page_setup, settings, FALSE);
if (settings) if (settings)
g_object_unref (settings); g_object_unref (settings);
......
...@@ -69,7 +69,8 @@ enum ...@@ -69,7 +69,8 @@ enum
PROP_EXPORT_FILENAME, PROP_EXPORT_FILENAME,
PROP_STATUS, PROP_STATUS,
PROP_STATUS_STRING, PROP_STATUS_STRING,
PROP_CUSTOM_TAB_LABEL PROP_CUSTOM_TAB_LABEL,
PROP_EMBED_PAGE_SETUP
}; };
static guint signals[LAST_SIGNAL] = { 0 }; static guint signals[LAST_SIGNAL] = { 0 };
...@@ -165,6 +166,7 @@ gtk_print_operation_init (GtkPrintOperation *operation) ...@@ -165,6 +166,7 @@ gtk_print_operation_init (GtkPrintOperation *operation)
priv->is_sync = FALSE; priv->is_sync = FALSE;
priv->support_selection = FALSE; priv->support_selection = FALSE;
priv->has_selection = FALSE; priv->has_selection = FALSE;
priv->embed_page_setup = FALSE;
priv->page_drawing_state = GTK_PAGE_DRAWING_STATE_READY; priv->page_drawing_state = GTK_PAGE_DRAWING_STATE_READY;
...@@ -320,6 +322,9 @@ gtk_print_operation_set_property (GObject *object, ...@@ -320,6 +322,9 @@ gtk_print_operation_set_property (GObject *object,
case PROP_CUSTOM_TAB_LABEL: case PROP_CUSTOM_TAB_LABEL:
gtk_print_operation_set_custom_tab_label (op, g_value_get_string (value)); gtk_print_operation_set_custom_tab_label (op, g_value_get_string (value));
break; break;
case PROP_EMBED_PAGE_SETUP:
gtk_print_operation_set_embed_page_setup (op, g_value_get_boolean (value));
break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break; break;
...@@ -379,6 +384,9 @@ gtk_print_operation_get_property (GObject *object, ...@@ -379,6 +384,9 @@ gtk_print_operation_get_property (GObject *object,
case PROP_CUSTOM_TAB_LABEL: case PROP_CUSTOM_TAB_LABEL:
g_value_set_string (value, priv->custom_tab_label); g_value_set_string (value, priv->custom_tab_label);
break; break;
case PROP_EMBED_PAGE_SETUP:
g_value_set_boolean (value, priv->embed_page_setup);
break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break; break;
...@@ -1229,6 +1237,21 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class) ...@@ -1229,6 +1237,21 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
FALSE, FALSE,
GTK_PARAM_READWRITE)); GTK_PARAM_READWRITE));
/**
* GtkPrintOperation:embed-page-setup:
*
* If %TRUE, page size combo box and orientation combo box are embedded into page setup page.
*
* Since: 2.18
*/
g_object_class_install_property (gobject_class,
PROP_EMBED_PAGE_SETUP,
g_param_spec_boolean ("embed-page-setup",
P_("Embed Page Setup"),
P_("TRUE if page setup combos are embedded in GtkPrintDialog"),
FALSE,
GTK_PARAM_READWRITE));
} }
/** /**
...@@ -2197,6 +2220,52 @@ gtk_print_operation_set_defer_drawing (GtkPrintOperation *op) ...@@ -2197,6 +2220,52 @@ gtk_print_operation_set_defer_drawing (GtkPrintOperation *op)
priv->page_drawing_state = GTK_PAGE_DRAWING_STATE_DEFERRED_DRAWING; priv->page_drawing_state = GTK_PAGE_DRAWING_STATE_DEFERRED_DRAWING;
} }
/**
* gtk_print_operation_set_embed_page_setup:
* @op: a #GtkPrintOperation
* @embed: %TRUE to embed page setup selection in the #GtkPrintDialog
*
* Embed page size combo box and orientation combo box into page setup page.
* Selected page setup is stored as default page setup in #GtkPrintOperation.
*
* Since: 2.18
**/
void
gtk_print_operation_set_embed_page_setup (GtkPrintOperation *op,
gboolean embed)
{
GtkPrintOperationPrivate *priv;
g_return_if_fail (GTK_IS_PRINT_OPERATION (op));
priv = op->priv;
embed = embed != FALSE;
if (priv->embed_page_setup != embed)
{
priv->embed_page_setup = embed;
g_object_notify (G_OBJECT (op), "embed-page-setup");
}
}
/**
* gtk_print_operation_get_embed_page_setup:
* @op: a #GtkPrintOperation
*
* Gets the value of #GtkPrintOperation::embed-page-setup property.
*
* Returns: whether page setup selection combos are embedded
*
* Since: 2.18
*/
gboolean
gtk_print_operation_get_embed_page_setup (GtkPrintOperation *op)
{
g_return_val_if_fail (GTK_IS_PRINT_OPERATION (op), FALSE);
return op->priv->embed_page_setup;
}
/** /**
* gtk_print_operation_draw_page_finish: * gtk_print_operation_draw_page_finish:
* @op: a #GtkPrintOperation * @op: a #GtkPrintOperation
......
...@@ -184,6 +184,9 @@ gboolean gtk_print_operation_get_support_selection (GtkPrintOper ...@@ -184,6 +184,9 @@ gboolean gtk_print_operation_get_support_selection (GtkPrintOper
void gtk_print_operation_set_has_selection (GtkPrintOperation *op, void gtk_print_operation_set_has_selection (GtkPrintOperation *op,
gboolean has_selection); gboolean has_selection);
gboolean gtk_print_operation_get_has_selection (GtkPrintOperation *op); gboolean gtk_print_operation_get_has_selection (GtkPrintOperation *op);
void gtk_print_operation_set_embed_page_setup (GtkPrintOperation *op,
gboolean embed);
gboolean gtk_print_operation_get_embed_page_setup (GtkPrintOperation *op);
GtkPageSetup *gtk_print_run_page_setup_dialog (GtkWindow *parent, GtkPageSetup *gtk_print_run_page_setup_dialog (GtkWindow *parent,
GtkPageSetup *page_setup, GtkPageSetup *page_setup,
......
This diff is collapsed.
...@@ -64,25 +64,25 @@ struct _GtkPrintUnixDialogClass ...@@ -64,25 +64,25 @@ struct _GtkPrintUnixDialogClass
void (*_gtk_reserved7) (void); void (*_gtk_reserved7) (void);
}; };
GType gtk_print_unix_dialog_get_type (void) G_GNUC_CONST; GType gtk_print_unix_dialog_get_type (void) G_GNUC_CONST;
GtkWidget * gtk_print_unix_dialog_new (const gchar *title, GtkWidget * gtk_print_unix_dialog_new (const gchar *title,
GtkWindow *parent); GtkWindow *parent);
void gtk_print_unix_dialog_set_page_setup (GtkPrintUnixDialog *dialog, void gtk_print_unix_dialog_set_page_setup (GtkPrintUnixDialog *dialog,
GtkPageSetup *page_setup); GtkPageSetup *page_setup);
GtkPageSetup * gtk_print_unix_dialog_get_page_setup (GtkPrintUnixDialog *dialog); GtkPageSetup * gtk_print_unix_dialog_get_page_setup (GtkPrintUnixDialog *dialog);
void gtk_print_unix_dialog_set_current_page (GtkPrintUnixDialog *dialog, void gtk_print_unix_dialog_set_current_page (GtkPrintUnixDialog *dialog,
gint current_page); gint current_page);
gint gtk_print_unix_dialog_get_current_page (GtkPrintUnixDialog *dialog); gint gtk_print_unix_dialog_get_current_page (GtkPrintUnixDialog *dialog);
void gtk_print_unix_dialog_set_settings (GtkPrintUnixDialog *dialog, void gtk_print_unix_dialog_set_settings (GtkPrintUnixDialog *dialog,
GtkPrintSettings *settings); GtkPrintSettings *settings);
GtkPrintSettings *gtk_print_unix_dialog_get_settings (GtkPrintUnixDialog *dialog); GtkPrintSettings * gtk_print_unix_dialog_get_settings (GtkPrintUnixDialog *dialog);
GtkPrinter * gtk_print_unix_dialog_get_selected_printer (GtkPrintUnixDialog *dialog); GtkPrinter * gtk_print_unix_dialog_get_selected_printer (GtkPrintUnixDialog *dialog);
void gtk_print_unix_dialog_add_custom_tab (GtkPrintUnixDialog *dialog, void gtk_print_unix_dialog_add_custom_tab (GtkPrintUnixDialog *dialog,
GtkWidget *child, GtkWidget *child,
GtkWidget *tab_label); GtkWidget *tab_label);
void gtk_print_unix_dialog_set_manual_capabilities (GtkPrintUnixDialog *dialog, void gtk_print_unix_dialog_set_manual_capabilities (GtkPrintUnixDialog *dialog,
GtkPrintCapabilities capabilities); GtkPrintCapabilities capabilities);
GtkPrintCapabilities gtk_print_unix_dialog_get_manual_capabilities (GtkPrintUnixDialog *dialog); GtkPrintCapabilities gtk_print_unix_dialog_get_manual_capabilities (GtkPrintUnixDialog *dialog);
void gtk_print_unix_dialog_set_support_selection (GtkPrintUnixDialog *dialog, void gtk_print_unix_dialog_set_support_selection (GtkPrintUnixDialog *dialog,
gboolean support_selection); gboolean support_selection);
...@@ -90,6 +90,10 @@ gboolean gtk_print_unix_dialog_get_support_selection (GtkPrintUnix ...@@ -90,6 +90,10 @@ gboolean gtk_print_unix_dialog_get_support_selection (GtkPrintUnix
void gtk_print_unix_dialog_set_has_selection (GtkPrintUnixDialog *dialog, void gtk_print_unix_dialog_set_has_selection (GtkPrintUnixDialog *dialog,
gboolean has_selection); gboolean has_selection);
gboolean gtk_print_unix_dialog_get_has_selection (GtkPrintUnixDialog *dialog); gboolean gtk_print_unix_dialog_get_has_selection (GtkPrintUnixDialog *dialog);
void gtk_print_unix_dialog_set_embed_page_setup (GtkPrintUnixDialog *dialog,
gboolean embed);
gboolean gtk_print_unix_dialog_get_embed_page_setup (GtkPrintUnixDialog *dialog);
gboolean gtk_print_unix_dialog_get_page_setup_set (GtkPrintUnixDialog *dialog);
G_END_DECLS G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment