modest_conf_set_int (conf, key, width, NULL);
g_free (key);
+#ifndef MODEST_TOOLKIT_HILDON2
/* Save also the main window style */
if (MODEST_IS_MAIN_WINDOW (win)) {
ModestMainWindowStyle style = modest_main_window_get_style (MODEST_MAIN_WINDOW (win));
modest_conf_set_int (conf, key, style, NULL);
g_free (key);
}
-
+#endif
return TRUE;
}
gtk_window_set_default_size (win, width, height);
#endif
+#ifndef MODEST_TOOLKIT_HILDON2
/* Restore also the main window style */
if (MODEST_IS_MAIN_WINDOW (win)) {
ModestMainWindowStyle style;
g_free (key);
}
}
+#endif
return TRUE;
}
}
if (sort_colid >= 0) {
- GtkTreeModel *sortable =
- gtk_tree_model_filter_get_model (
- GTK_TREE_MODEL_FILTER (gtk_tree_view_get_model (GTK_TREE_VIEW (header_view))));
+ GtkTreeModel *sortable = gtk_tree_view_get_model (GTK_TREE_VIEW (header_view));
if (sort_colid == TNY_GTK_HEADER_LIST_MODEL_FLAGS_COLUMN)
modest_header_view_sort_by_column_id (header_view, 0, sort_type);
- gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE(sortable),
+ gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (sortable),
sort_colid,
sort_type);
modest_header_view_sort_by_column_id (header_view, sort_colid, sort_type);
- gtk_tree_sortable_sort_column_changed (GTK_TREE_SORTABLE(sortable));
+ gtk_tree_sortable_sort_column_changed (GTK_TREE_SORTABLE (sortable));
}
g_free (key);