Branch data Line data Source code
1 : : /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- 2 : : * 3 : : * Copyright © 2020 Endless Mobile, Inc. 4 : : * 5 : : * This program is free software; you can redistribute it and/or modify 6 : : * it under the terms of the GNU General Public License as published by 7 : : * the Free Software Foundation; either version 2 of the License, or 8 : : * (at your option) any later version. 9 : : * 10 : : * This program is distributed in the hope that it will be useful, 11 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 : : * GNU General Public License for more details. 14 : : * 15 : : * You should have received a copy of the GNU General Public License 16 : : * along with this program; if not, see <http://www.gnu.org/licenses/>. 17 : : * 18 : : * Authors: 19 : : * - Philip Withnall <withnall@endlessm.com> 20 : : */ 21 : : 22 : : #pragma once 23 : : 24 : : #include <act/act.h> 25 : : #include <gtk/gtk.h> 26 : : 27 : : 28 : : G_BEGIN_DECLS 29 : : 30 : : #define MCT_TYPE_USER_SELECTOR (mct_user_selector_get_type ()) 31 [ # # # # : 0 : G_DECLARE_FINAL_TYPE (MctUserSelector, mct_user_selector, MCT, USER_SELECTOR, GtkBox) # # ] 32 : : 33 : : MctUserSelector *mct_user_selector_new (ActUserManager *user_manager); 34 : : 35 : : ActUser *mct_user_selector_get_user (MctUserSelector *self); 36 : : 37 : : gboolean mct_user_selector_select_user_by_username (MctUserSelector *self, 38 : : const gchar *username); 39 : : 40 : : G_END_DECLS