network: Replace GObject boilerplate with modern macros
This commit is contained in:
parent
0106a4ab90
commit
d327e20a10
18 changed files with 240 additions and 422 deletions
|
@ -19,49 +19,17 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef __CE_PAGE_SECURITY_H
|
||||
#define __CE_PAGE_SECURITY_H
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <NetworkManager.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include "ce-page.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define CE_TYPE_PAGE_SECURITY (ce_page_security_get_type ())
|
||||
#define CE_PAGE_SECURITY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CE_TYPE_PAGE_SECURITY, CEPageSecurity))
|
||||
#define CE_PAGE_SECURITY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), CE_TYPE_PAGE_SECURITY, CEPageSecurityClass))
|
||||
#define CE_IS_PAGE_SECURITY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CE_TYPE_PAGE_SECURITY))
|
||||
#define CE_IS_PAGE_SECURITY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CE_TYPE_PAGE_SECURITY))
|
||||
#define CE_PAGE_SECURITY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CE_TYPE_PAGE_SECURITY, CEPageSecurityClass))
|
||||
G_DECLARE_FINAL_TYPE (CEPageSecurity, ce_page_security, CE, PAGE_SECURITY, CEPage)
|
||||
|
||||
typedef struct _CEPageSecurity CEPageSecurity;
|
||||
typedef struct _CEPageSecurityClass CEPageSecurityClass;
|
||||
|
||||
struct _CEPageSecurity
|
||||
{
|
||||
CEPage parent;
|
||||
|
||||
GtkBox *box;
|
||||
GtkComboBox *security_combo;
|
||||
GtkLabel *security_label;
|
||||
|
||||
GtkSizeGroup *group;
|
||||
gboolean adhoc;
|
||||
};
|
||||
|
||||
struct _CEPageSecurityClass
|
||||
{
|
||||
CEPageClass parent_class;
|
||||
};
|
||||
|
||||
GType ce_page_security_get_type (void);
|
||||
|
||||
CEPage *ce_page_security_new (NMConnection *connection,
|
||||
NMClient *client);
|
||||
CEPage *ce_page_security_new (NMConnection *connection,
|
||||
NMClient *client);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __CE_PAGE_SECURITY_H */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue