diff options
author | Benedikt Meurer <benny@xfce.org> | 2007-01-15 17:57:27 +0000 |
---|---|---|
committer | Benedikt Meurer <benny@xfce.org> | 2007-01-15 17:57:27 +0000 |
commit | 433fca05a8a7bee0432eca879a9b88f954749ead (patch) | |
tree | d50e54ec3259671ccf5eac478a623c2decb824fb /thunar-volman/tvm-preferences-dialog.c | |
parent | 3112b17554fabc808676f4a2ba090961abaf207c (diff) | |
download | thunar-volman-433fca05a8a7bee0432eca879a9b88f954749ead.tar.gz |
2007-01-15 Benedikt Meurer <benny@xfce.org>
* thunar-volman/: Add support for printers.
* po/POTFILES.in: Add new files here.
* po/thunar-volman.pot, po/*.po: Merge new strings.
* po/de.po: Update german translations.
(Old svn revision: 2364)
Diffstat (limited to 'thunar-volman/tvm-preferences-dialog.c')
-rw-r--r-- | thunar-volman/tvm-preferences-dialog.c | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/thunar-volman/tvm-preferences-dialog.c b/thunar-volman/tvm-preferences-dialog.c index eac5efb..f8657bc 100644 --- a/thunar-volman/tvm-preferences-dialog.c +++ b/thunar-volman/tvm-preferences-dialog.c @@ -380,7 +380,7 @@ tvm_preferences_dialog_init (TvmPreferencesDialog *dialog) /* - Cameras + PDAs */ label = gtk_label_new (_("PDAs")); vbox = g_object_new (GTK_TYPE_VBOX, "border-width", 12, "spacing", 12, NULL); @@ -424,7 +424,7 @@ tvm_preferences_dialog_init (TvmPreferencesDialog *dialog) gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0); gtk_widget_show (frame); - label = gtk_label_new (_("Pocket PC")); + label = gtk_label_new (_("Pocket PCs")); gtk_label_set_attributes (GTK_LABEL (label), tvm_pango_attr_list_bold ()); gtk_frame_set_label_widget (GTK_FRAME (frame), label); gtk_widget_show (label); @@ -454,6 +454,48 @@ tvm_preferences_dialog_init (TvmPreferencesDialog *dialog) /* + Printers + */ + label = gtk_label_new (_("Printers")); + vbox = g_object_new (GTK_TYPE_VBOX, "border-width", 12, "spacing", 12, NULL); + gtk_notebook_append_page (GTK_NOTEBOOK (notebook), vbox, label); + gtk_widget_show (label); + gtk_widget_show (vbox); + + frame = g_object_new (GTK_TYPE_FRAME, "border-width", 0, "shadow-type", GTK_SHADOW_NONE, NULL); + gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0); + gtk_widget_show (frame); + + label = gtk_label_new (_("Printers")); + gtk_label_set_attributes (GTK_LABEL (label), tvm_pango_attr_list_bold ()); + gtk_frame_set_label_widget (GTK_FRAME (frame), label); + gtk_widget_show (label); + + table = gtk_table_new (2, 2, FALSE); + gtk_table_set_row_spacings (GTK_TABLE (table), 3); + gtk_table_set_col_spacings (GTK_TABLE (table), 12); + gtk_container_set_border_width (GTK_CONTAINER (table), 8); + gtk_container_add (GTK_CONTAINER (frame), table); + gtk_widget_show (table); + + image = gtk_image_new_from_icon_name ("gnome-dev-printer", GTK_ICON_SIZE_DIALOG); + gtk_misc_set_alignment (GTK_MISC (image), 0.5f, 0.0f); + gtk_table_attach (GTK_TABLE (table), image, 0, 1, 0, 3, GTK_FILL, GTK_FILL, 0, 0); + gtk_widget_show (image); + + button = gtk_check_button_new_with_mnemonic (_("Automatically run a program when a _printer is connected")); + exo_mutual_binding_new (G_OBJECT (dialog->preferences), "autoprinter", G_OBJECT (button), "active"); + gtk_table_attach (GTK_TABLE (table), button, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0); + gtk_widget_show (button); + + entry = tvm_command_entry_new_with_label (_("_Command:")); + exo_binding_new (G_OBJECT (button), "active", G_OBJECT (entry), "sensitive"); + exo_mutual_binding_new (G_OBJECT (dialog->preferences), "autoprinter-command", G_OBJECT (entry), "command"); + gtk_table_attach (GTK_TABLE (table), entry, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0); + gtk_widget_show (entry); + + + /* Input Devices */ label = gtk_label_new (_("Input Devices")); |