Patch by: Thomas Zajic <zlatko@gmx.at>
2007-03-04 Thomas Wood <thos@gnome.org> Patch by: Thomas Zajic <zlatko@gmx.at> * gnome-mouse-properties.c: (populate_tree_model): Add two popular cursor sizes to the filter, and sort "Pointers" list alphabetically. svn path=/trunk/; revision=7358
This commit is contained in:
parent
e006e1b875
commit
68b68e08b8
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-03-04 Thomas Wood <thos@gnome.org>
|
||||||
|
|
||||||
|
Patch by: Thomas Zajic <zlatko@gmx.at>
|
||||||
|
|
||||||
|
* gnome-mouse-properties.c: (populate_tree_model): Add two popular cursor
|
||||||
|
sizes to the filter, and sort "Pointers" list alphabetically.
|
||||||
|
|
||||||
2007-02-09 Jens Granseuer <jensgr@gmx.net>
|
2007-02-09 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
* gnome-mouse-properties.c: (create_dialog), (main): remove some dead
|
* gnome-mouse-properties.c: (create_dialog), (main): remove some dead
|
||||||
|
|
|
@ -672,6 +672,7 @@ populate_tree_model(GtkTreeModelSort* model, GtkTreeSelection* selection) {
|
||||||
gboolean has_default = FALSE;
|
gboolean has_default = FALSE;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
|
|
||||||
|
gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE (model), 1, GTK_SORT_ASCENDING);
|
||||||
GConfClient* client = gconf_client_get_default();
|
GConfClient* client = gconf_client_get_default();
|
||||||
GtkListStore* store = GTK_LIST_STORE(gtk_tree_model_sort_get_model(model));
|
GtkListStore* store = GTK_LIST_STORE(gtk_tree_model_sort_get_model(model));
|
||||||
gchar* current_theme = gconf_client_get_string(client, CURSOR_THEME_KEY, NULL);
|
gchar* current_theme = gconf_client_get_string(client, CURSOR_THEME_KEY, NULL);
|
||||||
|
@ -701,7 +702,7 @@ populate_tree_model(GtkTreeModelSort* model, GtkTreeSelection* selection) {
|
||||||
while(folder && (name = g_dir_read_name(folder))) {
|
while(folder && (name = g_dir_read_name(folder))) {
|
||||||
gchar* cursor_dir = g_strdup_printf("%s/%s/cursors/", fname, name);
|
gchar* cursor_dir = g_strdup_printf("%s/%s/cursors/", fname, name);
|
||||||
XcursorImage* cursor;
|
XcursorImage* cursor;
|
||||||
gint sizes[] = { 12, 16, 24, 32, 36, 48, 0 };
|
gint sizes[] = { 12, 16, 24, 32, 36, 40, 48, 64, 0 };
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
if(!g_file_test(cursor_dir, G_FILE_TEST_EXISTS)) {
|
if(!g_file_test(cursor_dir, G_FILE_TEST_EXISTS)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue