aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-12-06 04:25:36 +0800
committerChristian Persch <chpe@src.gnome.org>2005-12-06 04:25:36 +0800
commitfa95de40a8c8f5fe96acd7a6295b4b2de1d01476 (patch)
treec28f069732c137fa96294f0547c4ac2f5cbea253 /embed
parentbcaff0ac1f77177240c796781200fffc38da0e48 (diff)
downloadgsoc2013-epiphany-fa95de40a8c8f5fe96acd7a6295b4b2de1d01476.tar
gsoc2013-epiphany-fa95de40a8c8f5fe96acd7a6295b4b2de1d01476.tar.gz
gsoc2013-epiphany-fa95de40a8c8f5fe96acd7a6295b4b2de1d01476.tar.bz2
gsoc2013-epiphany-fa95de40a8c8f5fe96acd7a6295b4b2de1d01476.tar.lz
gsoc2013-epiphany-fa95de40a8c8f5fe96acd7a6295b4b2de1d01476.tar.xz
gsoc2013-epiphany-fa95de40a8c8f5fe96acd7a6295b4b2de1d01476.tar.zst
gsoc2013-epiphany-fa95de40a8c8f5fe96acd7a6295b4b2de1d01476.zip
Remove the paper selector from the print setup dialogue, we have one in
2005-12-05 Christian Persch <chpe@cvs.gnome.org> * data/glade/print.glade: * embed/print-dialog.c: (ephy_print_setup_dialog_new): Remove the paper selector from the print setup dialogue, we have one in the print dialogue already.
Diffstat (limited to 'embed')
-rwxr-xr-xembed/print-dialog.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/embed/print-dialog.c b/embed/print-dialog.c
index 956353cda..7dfd0525b 100755
--- a/embed/print-dialog.c
+++ b/embed/print-dialog.c
@@ -63,7 +63,6 @@ enum
PAGE_NUMBERS_PROP,
DATE_PROP,
COLOR_PROP,
- PAPER_SELECTOR_PROP,
};
static const
@@ -75,7 +74,6 @@ EphyDialogProperty setup_props [] =
{ "print_page_numbers_checkbutton", CONF_PRINT_PAGE_NUMBERS, PT_AUTOAPPLY, 0 },
{ "print_date_checkbutton", CONF_PRINT_DATE, PT_AUTOAPPLY, 0 },
{ "print_color_radiobutton", CONF_PRINT_COLOR, PT_AUTOAPPLY, 0 },
- { "print_paper_selector_hbox", NULL, PT_NORMAL, 0 },
{ NULL }
};
@@ -146,14 +144,6 @@ ephy_print_save_config_to_file (GnomePrintConfig *config)
g_free (str);
}
-static void
-ephy_print_save_config_to_file_and_unref (GnomePrintConfig *config)
-{
- ephy_print_save_config_to_file (config);
-
- g_object_unref (G_OBJECT (config));
-}
-
EmbedPrintInfo *
ephy_print_get_print_info (void)
{
@@ -352,23 +342,6 @@ ephy_print_setup_dialog_response_cb (GtkWidget *widget,
g_object_unref (dialog);
}
-static GtkWidget *
-ephy_print_paper_selector_new ()
-{
- GtkWidget *paper_selector;
- GnomePrintConfig *config;
-
- config = ephy_print_load_config_from_file ();
-
- paper_selector = gnome_paper_selector_new_with_flags (config,
- GNOME_PAPER_SELECTOR_MARGINS);
-
- g_object_set_data_full (G_OBJECT (paper_selector), "config", config,
- (GDestroyNotify) ephy_print_save_config_to_file_and_unref);
-
- return paper_selector;
-}
-
/*
* A variant of gnome_print_dialog_construct_range_page that can be used when
* the total page count is unknown. It defaults to 1-1
@@ -463,7 +436,6 @@ ephy_print_setup_dialog_new (void)
{
EphyDialog *dialog;
GtkWidget *window;
- GtkWidget *paper_selector_hbox;
dialog = EPHY_DIALOG (g_object_new (EPHY_TYPE_DIALOG, NULL));
@@ -474,15 +446,8 @@ ephy_print_setup_dialog_new (void)
NULL);
window = ephy_dialog_get_control (dialog, setup_props[SETUP_WINDOW_PROP].id);
- gtk_window_set_icon_name (GTK_WINDOW (window), STOCK_PRINT_SETUP);
g_signal_connect (window, "response",
G_CALLBACK (ephy_print_setup_dialog_response_cb), dialog);
- paper_selector_hbox = ephy_dialog_get_control (dialog,
- setup_props[PAPER_SELECTOR_PROP].id);
- gtk_box_pack_start_defaults (GTK_BOX (paper_selector_hbox),
- ephy_print_paper_selector_new ());
- gtk_widget_show_all (paper_selector_hbox);
-
return dialog;
}