1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
3
* Copyright 2009-2010 Red Hat, Inc,
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.
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.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
* Written by: Matthias Clasen <mclasen@redhat.com>
22
#ifndef __UM_UTILS_H__
23
#define __UM_UTILS_H__
29
void setup_tooltip_with_embedded_icon (GtkWidget *widget,
31
const gchar *placeholder,
33
gboolean show_tooltip_now (GtkWidget *widget,
36
void set_entry_validation_error (GtkEntry *entry,
38
void clear_entry_validation_error (GtkEntry *entry);
40
void popup_menu_below_button (GtkMenu *menu,
46
void rounded_rectangle (cairo_t *cr,
50
gdouble corner_radius,
54
void down_arrow (GtkStyleContext *context,
61
gboolean is_valid_name (const gchar *name);
62
gboolean is_valid_username (const gchar *name,
65
void generate_username_choices (const gchar *name,
68
gboolean is_using_ecryptfs (const gchar *name);