[gnome-system-tools] Fix warnings about missing callback prototypes



commit cf11946e6325c60a71b90be8cffc0e7f2d7149c1
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Wed Feb 10 17:31:09 2010 +0100

    Fix warnings about missing callback prototypes
    
    Add prototypes in user-settings.c to fix warnings. Move on_edit_user_passwd() and NO_PASSWD_LOGIN_GROUP to a new user-settings.h instead of user-settings.{ch}, since it's cleaner.

 src/users/Makefile.am     |    2 +-
 src/users/user-password.c |    1 +
 src/users/user-password.h |   36 ++++++++++++++++++++++++++++++++++++
 src/users/user-settings.c |   15 +++++++++++++--
 src/users/user-settings.h |    2 +-
 5 files changed, 52 insertions(+), 4 deletions(-)
---
diff --git a/src/users/Makefile.am b/src/users/Makefile.am
index 80b6d03..2def0a9 100644
--- a/src/users/Makefile.am
+++ b/src/users/Makefile.am
@@ -30,7 +30,7 @@ users_admin_SOURCES = \
 	user-profiles.c		user-profiles.h \
 	test-battery.c		test-battery.h	\
 	run-passwd.c		run-passwd.h	\
-	user-password.c
+	user-password.c		user-password.h
 
 toolpixmaps =
 
diff --git a/src/users/user-password.c b/src/users/user-password.c
index 0b698f0..d001acd 100644
--- a/src/users/user-password.c
+++ b/src/users/user-password.c
@@ -27,6 +27,7 @@
 #include <string.h>
 
 #include "gst.h"
+#include "user-password.h"
 #include "users-tool.h"
 #include "users-table.h"
 #include "user-settings.h"
diff --git a/src/users/user-password.h b/src/users/user-password.h
new file mode 100644
index 0000000..3e8e3af
--- /dev/null
+++ b/src/users/user-password.h
@@ -0,0 +1,36 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/* user-password.h: this file is part of users-admin, a gnome-system-tools frontend
+ * for user administration.
+ *
+ * Copyright (C) 2010 Milan Bouchet-Valat
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Authors: Milan Bouchet-Valat <nalimilan club fr>.
+ */
+
+#ifndef __USER_PASSWORD_H
+#define __USER_PASSWORD_H
+
+#include <gtk/gtk.h>
+
+#define NO_PASSWD_LOGIN_GROUP "nopasswdlogin"
+
+
+void   on_edit_user_passwd              (GtkButton *button,
+                                         gpointer   user_data);
+
+
+#endif /* USER_PASSWORD_H */
diff --git a/src/users/user-settings.c b/src/users/user-settings.c
index 0d06538..44a58c6 100644
--- a/src/users/user-settings.c
+++ b/src/users/user-settings.c
@@ -38,6 +38,7 @@
 #include "table.h"
 #include "callbacks.h"
 #include "user-settings.h"
+#include "user-password.h"
 #include "privileges-table.h"
 #include "groups-table.h"
 #include "group-settings.h"
@@ -46,11 +47,21 @@
 
 extern GstTool *tool;
 
-void   on_edit_user_passwd  (GtkButton *button,
-                             gpointer   user_data);
 
 void   on_user_settings_enable_account  (GtkButton *button,
                                          gpointer   user_data);
+void   on_user_new_name_changed         (GtkEditable *user_name,
+                                         gpointer     user_data);
+void   on_user_new_login_changed        (GtkComboBox *login_combo,
+                                         gpointer     user_data);
+void   on_user_new                      (GtkButton *button,
+                                         gpointer   user_data);
+void   on_edit_user_name                (GtkButton *button,
+                                         gpointer   user_data);
+void   on_edit_user_profile             (GtkButton *button,
+                                         gpointer   user_data);
+void   on_edit_user_advanced            (GtkButton *button,
+                                         gpointer   user_data);
 
 
 static gboolean
diff --git a/src/users/user-settings.h b/src/users/user-settings.h
index a252734..1ba8fb3 100644
--- a/src/users/user-settings.h
+++ b/src/users/user-settings.h
@@ -30,7 +30,7 @@
 #include "user-profiles.h"
 
 #define ADMIN_GROUP "admin"
-#define NO_PASSWD_LOGIN_GROUP "nopasswdlogin"
+
 
 gboolean        user_delete                      (GtkTreeModel *model,
 						  GtkTreePath *path);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]