~elementary-pantheon/switchboard-plug-startup-applications/trunk

« back to all changes in this revision

Viewing changes to src/Widgets/List.vala

  • Committer: Julien Spautz
  • Date: 2014-04-08 19:14:52 UTC
  • Revision ID: spautz.julien@gmail.com-20140408191452-0r6upk50z7luq0gp
enable translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
    void setup_gui () {
153
153
        load_startup_apps ();
154
154
        add_new_app_row ();
 
155
        set_sort_func (sort_function);
155
156
    }
156
157
 
157
158
    void connect_signals () {
158
159
        row_selected.connect (show_delete_button_on_select);
159
 
        set_sort_func (sort_function);
160
160
        new_app_row.app_added.connect (add_app);
161
161
    }
162
162
 
195
195
        var row_2 = list_box_row_2.get_child ();
196
196
 
197
197
        if (row_1 is NewAppRow)
198
 
            return 1;
 
198
            return +1;
199
199
        if (row_2 is NewAppRow)
200
200
            return -1;
201
201