user-accounts: Replace ifdefs with #pragma once
This commit is contained in:
parent
678beb6712
commit
c461e436b7
15 changed files with 18 additions and 48 deletions
|
@ -17,8 +17,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _CC_CROP_AREA_H_
|
#pragma once
|
||||||
#define _CC_CROP_AREA_H_
|
|
||||||
|
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
@ -39,5 +38,3 @@ void cc_crop_area_set_constrain_aspect (CcCropArea *area,
|
||||||
gboolean constrain);
|
gboolean constrain);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* _CC_CROP_AREA_H_ */
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
const char *dbus_name;
|
const char *dbus_name;
|
||||||
const char *place_str_generic;
|
const char *place_str_generic;
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
* Written by: Matthias Clasen <mclasen@redhat.com>
|
* Written by: Matthias Clasen <mclasen@redhat.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
gint pw_min_length (void);
|
gint pw_min_length (void);
|
||||||
|
|
|
@ -20,8 +20,7 @@
|
||||||
* Authors: Milan Bouchet-Valat <nalimilan@club.fr>
|
* Authors: Milan Bouchet-Valat <nalimilan@club.fr>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _RUN_PASSWD_H
|
#pragma once
|
||||||
#define _RUN_PASSWD_H
|
|
||||||
|
|
||||||
struct PasswdHandler;
|
struct PasswdHandler;
|
||||||
|
|
||||||
|
@ -53,5 +52,3 @@ gboolean passwd_change_password (PasswdHandler *passwd_handler,
|
||||||
PasswdCallback cb,
|
PasswdCallback cb,
|
||||||
const gpointer user_data);
|
const gpointer user_data);
|
||||||
|
|
||||||
#endif /* _RUN_PASSWD_H */
|
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
* Written by: Matthias Clasen <mclasen@redhat.com>
|
* Written by: Matthias Clasen <mclasen@redhat.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __UM_ACCOUNT_DIALOG_H__
|
#pragma once
|
||||||
#define __UM_ACCOUNT_DIALOG_H__
|
|
||||||
|
|
||||||
#include <act/act.h>
|
#include <act/act.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
@ -39,5 +38,3 @@ ActUser * um_account_dialog_finish (UmAccountDialog *self,
|
||||||
GAsyncResult *result);
|
GAsyncResult *result);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
* Written by: Matthias Clasen <mclasen@redhat.com>
|
* Written by: Matthias Clasen <mclasen@redhat.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __UM_ACCOUNT_TYPE__
|
#pragma once
|
||||||
#define __UM_ACCOUNT_TYPE__
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
@ -31,5 +30,3 @@ typedef enum {
|
||||||
const gchar *um_account_type_get_name (UmAccountType account_type);
|
const gchar *um_account_type_get_name (UmAccountType account_type);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
* Author: Felipe Borges <felipeborges@gnome.org>
|
* Author: Felipe Borges <felipeborges@gnome.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef UM_CAROUSEL_H
|
#pragma once
|
||||||
#define UM_CAROUSEL_H
|
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
@ -49,5 +48,3 @@ void um_carousel_select_item (UmCarousel *self,
|
||||||
guint um_carousel_get_item_count (UmCarousel *self);
|
guint um_carousel_get_item_count (UmCarousel *self);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* UM_CAROUSEL_H */
|
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <act/act.h>
|
#include <act/act.h>
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
* Written by: Ondrej Holy <oholy@redhat.com>
|
* Written by: Ondrej Holy <oholy@redhat.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __UM_HISTORY_DIALOG_H__
|
#pragma once
|
||||||
#define __UM_HISTORY_DIALOG_H__
|
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <act/act-user.h>
|
#include <act/act-user.h>
|
||||||
|
@ -36,5 +35,3 @@ void um_history_dialog_show (UmHistoryDialog *dialog,
|
||||||
GtkWindow *parent);
|
GtkWindow *parent);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
* Written by: Matthias Clasen <mclasen@redhat.com>
|
* Written by: Matthias Clasen <mclasen@redhat.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __UM_PASSWORD_DIALOG_H__
|
#pragma once
|
||||||
#define __UM_PASSWORD_DIALOG_H__
|
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <act/act.h>
|
#include <act/act.h>
|
||||||
|
@ -36,5 +35,3 @@ void um_password_dialog_show (UmPasswordDialog *dialog,
|
||||||
GtkWindow *parent);
|
GtkWindow *parent);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
* Written by: Matthias Clasen <mclasen@redhat.com>
|
* Written by: Matthias Clasen <mclasen@redhat.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __UM_PHOTO_DIALOG_H__
|
#pragma once
|
||||||
#define __UM_PHOTO_DIALOG_H__
|
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <act/act.h>
|
#include <act/act.h>
|
||||||
|
@ -38,5 +37,3 @@ void um_photo_dialog_set_user (UmPhotoDialog *dialog,
|
||||||
ActUser *user);
|
ActUser *user);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
* Written by: Stef Walter <stefw@gnome.org>
|
* Written by: Stef Walter <stefw@gnome.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __UM_REALM_MANAGER_H__
|
#pragma once
|
||||||
#define __UM_REALM_MANAGER_H__
|
|
||||||
|
|
||||||
#include "um-realm-generated.h"
|
#include "um-realm-generated.h"
|
||||||
|
|
||||||
|
@ -96,5 +95,3 @@ gchar * um_realm_calculate_login (UmRealmCommon *realm,
|
||||||
const gchar *username);
|
const gchar *username);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __UM_REALM_H__ */
|
|
||||||
|
|
|
@ -16,8 +16,7 @@
|
||||||
* (C) Copyright 2015 Red Hat, Inc.
|
* (C) Copyright 2015 Red Hat, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _UM_USER_IMAGE_H
|
#pragma once
|
||||||
#define _UM_USER_IMAGE_H
|
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <act/act.h>
|
#include <act/act.h>
|
||||||
|
@ -31,5 +30,3 @@ GtkWidget *um_user_image_new (void);
|
||||||
void um_user_image_set_user (UmUserImage *image, ActUser *user);
|
void um_user_image_set_user (UmUserImage *image, ActUser *user);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* _UM_USER_IMAGE_H */
|
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
* Written by: Matthias Clasen <mclasen@redhat.com>
|
* Written by: Matthias Clasen <mclasen@redhat.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _UM_USER_PANEL_H
|
#pragma once
|
||||||
#define _UM_USER_PANEL_H
|
|
||||||
|
|
||||||
#include <shell/cc-panel.h>
|
#include <shell/cc-panel.h>
|
||||||
|
|
||||||
|
@ -29,5 +28,3 @@ G_BEGIN_DECLS
|
||||||
G_DECLARE_FINAL_TYPE (CcUserPanel, cc_user_panel, UM, USER_PANEL, CcPanel)
|
G_DECLARE_FINAL_TYPE (CcUserPanel, cc_user_panel, UM, USER_PANEL, CcPanel)
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* _UM_USER_PANEL_H */
|
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
* Written by: Matthias Clasen <mclasen@redhat.com>
|
* Written by: Matthias Clasen <mclasen@redhat.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __UM_UTILS_H__
|
#pragma once
|
||||||
#define __UM_UTILS_H__
|
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <act/act.h>
|
#include <act/act.h>
|
||||||
|
@ -77,5 +76,3 @@ void set_user_icon_data (ActUser *user,
|
||||||
gboolean would_demote_only_admin (ActUser *user);
|
gboolean would_demote_only_admin (ActUser *user);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue