diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-12-09 20:34:19 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-12-09 20:34:19 +0800 |
commit | 7770329ddb6007e771b761f253b1b96b2216f645 (patch) | |
tree | c75fefc0707d22b2a0f3e01468a5e98dab7539bd /embed/print-dialog.c | |
parent | ce437e5277114f3d4717f638536fe4b019215f40 (diff) | |
download | gsoc2013-epiphany-7770329ddb6007e771b761f253b1b96b2216f645.tar gsoc2013-epiphany-7770329ddb6007e771b761f253b1b96b2216f645.tar.gz gsoc2013-epiphany-7770329ddb6007e771b761f253b1b96b2216f645.tar.bz2 gsoc2013-epiphany-7770329ddb6007e771b761f253b1b96b2216f645.tar.lz gsoc2013-epiphany-7770329ddb6007e771b761f253b1b96b2216f645.tar.xz gsoc2013-epiphany-7770329ddb6007e771b761f253b1b96b2216f645.tar.zst gsoc2013-epiphany-7770329ddb6007e771b761f253b1b96b2216f645.zip |
Lockdown: set some buttons insensitive when their pref key is not
2003-12-09 Christian Persch <chpe@cvs.gnome.org>
* data/glade/prefs-dialog.glade:
* embed/print-dialog.c: (ephy_print_dialog_new):
* src/prefs-dialog.c: (create_language_menu),
(create_download_path_label), (prefs_dialog_init):
Lockdown: set some buttons insensitive when their
pref key is not writable.
* src/prefs-dialog.c: (download_path_response_cb):
Convert filename to utf8 first.
Diffstat (limited to 'embed/print-dialog.c')
-rwxr-xr-x | embed/print-dialog.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/embed/print-dialog.c b/embed/print-dialog.c index fed912b78..89306f732 100755 --- a/embed/print-dialog.c +++ b/embed/print-dialog.c @@ -58,6 +58,7 @@ enum PRINTON_PROP, PRINTER_PROP, FILE_PROP, + BROWSE_PROP, ALL_PAGES_PROP, SELECTION_PROP, TO_PROP, @@ -71,6 +72,7 @@ EphyDialogProperty print_props [] = { "printer_radiobutton", CONF_PRINT_PRINTON, PT_AUTOAPPLY, 0 }, { "printer_entry", CONF_PRINT_PRINTER, PT_AUTOAPPLY, 0 }, { "file_entry", CONF_PRINT_FILE, PT_AUTOAPPLY, 0 }, + { "browse_button", NULL, PT_NORMAL, 0 }, { "all_pages_radiobutton", CONF_PRINT_ALL_PAGES, PT_AUTOAPPLY, 0 }, { "selection_radiobutton", NULL, PT_NORMAL, 0 }, { "to_spinbutton", CONF_PRINT_FROM_PAGE, PT_AUTOAPPLY, G_TYPE_INT }, @@ -297,7 +299,7 @@ ephy_print_dialog_new (GtkWidget *parent, gboolean only_collect_info) { EphyDialog *dialog; - GtkWidget *window; + GtkWidget *window, *button; GdkPixbuf *icon; dialog = EPHY_DIALOG (g_object_new (EPHY_TYPE_EMBED_DIALOG, @@ -320,6 +322,9 @@ ephy_print_dialog_new (GtkWidget *parent, gtk_window_set_icon (GTK_WINDOW (window), icon); g_object_unref (icon); + button = ephy_dialog_get_control (dialog, print_props[BROWSE_PROP].id); + gtk_widget_set_sensitive (button, eel_gconf_key_is_writable (CONF_PRINT_FILE)); + g_object_set_data (G_OBJECT (dialog), "only-collect-info", GINT_TO_POINTER (only_collect_info)); |