Commit 6c489d91 authored by Stephan Arts's avatar Stephan Arts

Fix some kb-settings

Make the damn COPYING file contain GPL-v2



(Old svn revision: 27069)
parent 3446fe91
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Sat Jun 14 09:26:50 2008 -->
<!--Generated with glade3 3.4.5 on Sun Jun 15 22:47:58 2008 -->
<glade-interface>
<requires lib="xfce4"/>
<widget class="GtkDialog" id="keyboard-settings-dialog">
......@@ -49,7 +49,7 @@
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<child>
<widget class="GtkTreeView" id="treeview1">
<widget class="GtkTreeView" id="gtk_keytheme_treeview">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_visible">False</property>
......@@ -104,8 +104,9 @@
</packing>
</child>
<child>
<widget class="GtkAlignment" id="alignment4">
<widget class="GtkAlignment" id="xkb_key_repeat_box">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="left_padding">12</property>
<child>
<widget class="GtkVBox" id="vbox6">
......@@ -274,8 +275,9 @@
</packing>
</child>
<child>
<widget class="GtkAlignment" id="alignment5">
<widget class="GtkAlignment" id="net_cursor_blink_box">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="left_padding">12</property>
<child>
<widget class="GtkVBox" id="vbox7">
......@@ -306,10 +308,10 @@
</packing>
</child>
<child>
<widget class="GtkHScale" id="net_cursor_blink_delay_scale">
<widget class="GtkHScale" id="net_cursor_blink_time_scale">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="adjustment">10 0 100 1 10 10</property>
<property name="adjustment">100 100 2000 100 10 10</property>
<property name="draw_value">False</property>
</widget>
<packing>
......
......@@ -50,18 +50,33 @@ static GOptionEntry entries[] =
{ NULL }
};
void
cb_net_cursor_blink_toggled (GtkToggleButton *button, gpointer user_data)
{
GladeXML *gxml = GLADE_XML(user_data);
GtkWidget *box = glade_xml_get_widget (gxml, "net_cursor_blink_box");
gtk_widget_set_sensitive (box, gtk_toggle_button_get_active (button));
}
GtkWidget *
keyboard_settings_dialog_new_from_xml (GladeXML *gxml)
{
XfconfChannel *xsettings_channel = xfconf_channel_new("xsettings");
XfconfChannel *xkb_channel = xfconf_channel_new("xkb");
GtkWidget *blinking_check = glade_xml_get_widget (gxml, "net_cursor_blink_check");
GtkWidget *blinking_scale = glade_xml_get_widget (gxml, "net_cursor_blink_time_scale");
GtkWidget *net_cursor_blink_check = glade_xml_get_widget (gxml, "net_cursor_blink_check");
GtkWidget *net_cursor_blink_time_scale = (GtkWidget *)gtk_range_get_adjustment (GTK_RANGE (glade_xml_get_widget (gxml, "net_cursor_blink_time_scale")));
g_signal_connect (G_OBJECT(net_cursor_blink_check), "toggled", (GCallback)cb_net_cursor_blink_toggled, gxml);
xfconf_g_property_bind (xsettings_channel,
"/Net/CursorBlink",
G_TYPE_BOOLEAN,
(GObject *)blinking_check, "active");
(GObject *)net_cursor_blink_check, "active");
xfconf_g_property_bind (xsettings_channel,
"/Net/CursorBlinkTime",
G_TYPE_INT,
(GObject *)net_cursor_blink_time_scale, "value");
GtkWidget *dialog = glade_xml_get_widget (gxml, "keyboard-settings-dialog");
gtk_widget_show_all(dialog);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment