|
@@ -63,6 +63,18 @@ static void mssh_pref_bg_colour_select(GtkWidget *widget, gpointer data)
|
|
|
NULL);
|
|
|
}
|
|
|
|
|
|
+static void mssh_pref_columns_select(GtkWidget *widget, gpointer data)
|
|
|
+{
|
|
|
+ GConfClient *client;
|
|
|
+ int columns;
|
|
|
+
|
|
|
+ client = gconf_client_get_default();
|
|
|
+
|
|
|
+ columns = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget));
|
|
|
+
|
|
|
+ gconf_client_set_int(client, MSSH_GCONF_KEY_COLUMNS, columns, NULL);
|
|
|
+}
|
|
|
+
|
|
|
static void mssh_pref_init(MSSHPref* pref)
|
|
|
{
|
|
|
GConfClient *client;
|
|
@@ -164,6 +176,8 @@ static void mssh_pref_init(MSSHPref* pref)
|
|
|
G_CALLBACK(mssh_pref_fg_colour_select), NULL);
|
|
|
g_signal_connect(G_OBJECT(bg_colour_select), "color-set",
|
|
|
G_CALLBACK(mssh_pref_bg_colour_select), NULL);
|
|
|
+ g_signal_connect(G_OBJECT(columns_select), "value-changed",
|
|
|
+ G_CALLBACK(mssh_pref_columns_select), NULL);
|
|
|
|
|
|
client = gconf_client_get_default();
|
|
|
|
|
@@ -190,6 +204,12 @@ static void mssh_pref_init(MSSHPref* pref)
|
|
|
gdk_color_parse(colour_s, &colour);
|
|
|
gtk_color_button_set_color(GTK_COLOR_BUTTON(bg_colour_select),
|
|
|
&colour);
|
|
|
+
|
|
|
+ entry = gconf_client_get_entry(client, MSSH_GCONF_KEY_COLUMNS, NULL,
|
|
|
+ TRUE, NULL);
|
|
|
+ value = gconf_entry_get_value(entry);
|
|
|
+ gtk_spin_button_set_value(GTK_SPIN_BUTTON(columns_select),
|
|
|
+ gconf_value_get_int(value));
|
|
|
}
|
|
|
|
|
|
static void mssh_pref_class_init(MSSHPrefClass *klass)
|