From cf267d03537f9e647a9ee60fc7916de89ad6721f Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 5 Nov 2003 13:33:53 +0000 Subject: Set "Print Selection" insensitive when there is no selection. Ported from 2003-11-05 Christian Persch * data/glade/print.glade: * embed/print-dialog.c: (impl_show), (print_dialog_class_init), (print_dialog_new), (print_dialog_new_with_parent), (print_dialog_print), (print_dialog_preview), (print_cancel_button_cb), (print_preview_button_cb): * lib/ephy-dialog.c: (impl_run): Set "Print Selection" insensitive when there is no selection. Ported from galeon. --- lib/ephy-dialog.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'lib/ephy-dialog.c') diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c index 06ef88f06..ed929d3b4 100644 --- a/lib/ephy-dialog.c +++ b/lib/ephy-dialog.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000, 2001, 2002 Marco Pesenti Gritti + * Copyright (C) 2000-2003 Marco Pesenti Gritti * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1180,15 +1180,7 @@ setup_default_size (EphyDialog *dialog) static gint impl_run (EphyDialog *dialog) { - if (dialog->priv->props && !dialog->priv->initialized) - { - load_props (dialog->priv->props); - prefs_connect_signals (dialog); - prefs_set_sensitivity (dialog->priv->props); - dialog->priv->initialized = TRUE; - } - - setup_default_size (dialog); + ephy_dialog_show (dialog); return gtk_dialog_run (GTK_DIALOG(dialog->priv->dialog)); } -- cgit v1.2.3