Changeset 2553 for trunk/gtk/main.c


Ignore:
Timestamp:
Jul 30, 2007, 3:51:37 PM (15 years ago)
Author:
charles
Message:

(gtk) add select-all, deselect-all

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r2491 r2553  
    10201020        askquit( data->core, data->wind, wannaquit, data );
    10211021    }
     1022    else if (!strcmp (action_name, "select-all"))
     1023    {
     1024        GtkTreeSelection * s = tr_window_get_selection(data->wind);
     1025        gtk_tree_selection_select_all( s );
     1026    }
     1027    else if (!strcmp (action_name, "unselect-all"))
     1028    {
     1029        GtkTreeSelection * s = tr_window_get_selection(data->wind);
     1030        gtk_tree_selection_unselect_all( s );
     1031    }
    10221032    else if (!strcmp (action_name, "edit-preferences"))
    10231033    {
Note: See TracChangeset for help on using the changeset viewer.