|
@@ -63,6 +63,18 @@ static void mssh_pref_bg_colour_select(GtkWidget *widget, gpointer data)
|
|
NULL);
|
|
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)
|
|
static void mssh_pref_init(MSSHPref* pref)
|
|
{
|
|
{
|
|
GConfClient *client;
|
|
GConfClient *client;
|
|
@@ -164,6 +176,8 @@ static void mssh_pref_init(MSSHPref* pref)
|
|
G_CALLBACK(mssh_pref_fg_colour_select), NULL);
|
|
G_CALLBACK(mssh_pref_fg_colour_select), NULL);
|
|
g_signal_connect(G_OBJECT(bg_colour_select), "color-set",
|
|
g_signal_connect(G_OBJECT(bg_colour_select), "color-set",
|
|
G_CALLBACK(mssh_pref_bg_colour_select), NULL);
|
|
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();
|
|
client = gconf_client_get_default();
|
|
|
|
|
|
@@ -190,6 +204,12 @@ static void mssh_pref_init(MSSHPref* pref)
|
|
gdk_color_parse(colour_s, &colour);
|
|
gdk_color_parse(colour_s, &colour);
|
|
gtk_color_button_set_color(GTK_COLOR_BUTTON(bg_colour_select),
|
|
gtk_color_button_set_color(GTK_COLOR_BUTTON(bg_colour_select),
|
|
&colour);
|
|
&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)
|
|
static void mssh_pref_class_init(MSSHPrefClass *klass)
|