user-accounts: port to libaccountsservice
This removes a bunch of duplicated code, and also drops a direct dependency on libsystemd-login. https://bugzilla.gnome.org/show_bug.cgi?id=671858
This commit is contained in:
parent
db97299e74
commit
d46a23a5a2
18 changed files with 468 additions and 2199 deletions
|
@ -23,9 +23,16 @@
|
|||
#define __UM_UTILS_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <act/act.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
typedef enum {
|
||||
UM_ICON_STYLE_NONE = 0,
|
||||
UM_ICON_STYLE_FRAME = 1 << 0,
|
||||
UM_ICON_STYLE_STATUS = 1 << 1
|
||||
} UmIconStyle;
|
||||
|
||||
void setup_tooltip_with_embedded_icon (GtkWidget *widget,
|
||||
const gchar *text,
|
||||
const gchar *placeholder,
|
||||
|
@ -67,6 +74,13 @@ void generate_username_choices (const gchar *name,
|
|||
|
||||
gchar * get_smart_date (GDateTime *date);
|
||||
|
||||
GdkPixbuf * render_user_icon (ActUser *user,
|
||||
UmIconStyle style,
|
||||
gint icon_size);
|
||||
|
||||
void set_user_icon_data (ActUser *user,
|
||||
GdkPixbuf *pixbuf);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue