Commit e70a487b authored by Christian Persch's avatar Christian Persch

charmap: Read the snap-cols-pow2 setting on startup

https://bugzilla.gnome.org/show_bug.cgi?id=675923
parent 9723243d
......@@ -770,12 +770,6 @@ gucharmap_window_init (GucharmapWindow *guw)
menu_entries, G_N_ELEMENTS (menu_entries),
guw);
/* snap-to-power-of-two */
action = g_settings_create_action (guw->settings, "snap-cols-pow2");
g_action_map_add_action (G_ACTION_MAP (guw), action);
g_signal_connect (guw->settings, "changed::snap-cols-pow2",
G_CALLBACK (snap_cols_pow2_changed), guw);
/* Now the widgets */
grid = gtk_grid_new ();
gtk_container_add (GTK_CONTAINER (guw), grid);
......@@ -836,6 +830,13 @@ gucharmap_window_init (GucharmapWindow *guw)
gtk_window_set_has_resize_grip (GTK_WINDOW (guw), TRUE);
/* snap-to-power-of-two */
action = g_settings_create_action (guw->settings, "snap-cols-pow2");
g_action_map_add_action (G_ACTION_MAP (guw), action);
snap_cols_pow2_changed (guw->settings, "snap-cols-pow2", guw);
g_signal_connect (guw->settings, "changed::snap-cols-pow2",
G_CALLBACK (snap_cols_pow2_changed), guw);
/* read initial settings */
/* font */
g_settings_get (guw->settings, "font", "ms", &font);
......
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