summaryrefslogtreecommitdiff
path: root/thunar-volman-settings
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2010-07-21 14:07:36 +0200
committerJannis Pohlmann <jannis@xfce.org>2010-07-25 19:42:29 +0200
commit3407dce340a7860de244ce2c1957f346482a1b80 (patch)
tree27a27ee15a0ab7396841a39f3ad4953cc741eb46 /thunar-volman-settings
parent24890c59eb95b8488e0cacdc43ead2c13fec9523 (diff)
downloadthunar-volman-3407dce340a7860de244ce2c1957f346482a1b80.tar.gz
Make the input devices tab available again.
Except for PDA (Palm, PocketPC) support everything is more or less complete now.
Diffstat (limited to 'thunar-volman-settings')
-rw-r--r--thunar-volman-settings/tvm-preferences-dialog.c126
1 files changed, 126 insertions, 0 deletions
diff --git a/thunar-volman-settings/tvm-preferences-dialog.c b/thunar-volman-settings/tvm-preferences-dialog.c
index f52a550..13772e8 100644
--- a/thunar-volman-settings/tvm-preferences-dialog.c
+++ b/thunar-volman-settings/tvm-preferences-dialog.c
@@ -558,6 +558,132 @@ tvm_preferences_dialog_init (TvmPreferencesDialog *dialog)
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"));
+ 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 (_("Keyboards"));
+ 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-keyboard", 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 an USB _keyboard is connected"));
+ xfconf_g_property_bind (channel, "/autokeyboard/enabled", G_TYPE_BOOLEAN,
+ 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:"));
+ xfconf_g_property_bind (channel, "/autokeyboard/enabled", G_TYPE_BOOLEAN,
+ entry, "sensitive");
+ xfconf_g_property_bind (channel, "/autokeyboard/command", G_TYPE_STRING,
+ 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);
+
+ 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 (_("Mice"));
+ 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-mouse-optical", 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 an USB _mouse is connected"));
+ xfconf_g_property_bind (channel, "/automouse/enabled", G_TYPE_BOOLEAN,
+ 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 (_("C_ommand:"));
+ xfconf_g_property_bind (channel, "/automouse/enabled", G_TYPE_BOOLEAN,
+ entry, "sensitive");
+ xfconf_g_property_bind (channel, "/automouse/command", G_TYPE_STRING,
+ 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);
+
+ 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 (_("Tablet"));
+ 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 ("tvm-dev-tablet", 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 _tablet is connected"));
+ xfconf_g_property_bind (channel, "/autotablet/enabled", G_TYPE_BOOLEAN,
+ 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 (_("Com_mand:"));
+ xfconf_g_property_bind (channel, "/autotablet/enabled", G_TYPE_BOOLEAN,
+ entry, "sensitive");
+ xfconf_g_property_bind (channel, "/autotablet/command", G_TYPE_STRING,
+ 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);
}