summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-06-07 16:10:00 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-06-19 19:58:03 +0200
commita24589d9d54b23d9d4601df3641f5cf7551ab851 (patch)
tree8ef779dc01c6fcef20aea257e126bcda7dae2ab8
parent62c6087f8d4c1fc77b363a6bb95954c95c6c38f6 (diff)
downloadnetwork-manager-applet-a24589d9d54b23d9d4601df3641f5cf7551ab851.tar.gz
editor/page: drop unused "initialized" property
We use a signal of the same name, and an extra property just messes up things.
-rw-r--r--src/connection-editor/ce-page.c21
-rw-r--r--src/connection-editor/ce-page.h4
2 files changed, 0 insertions, 25 deletions
diff --git a/src/connection-editor/ce-page.c b/src/connection-editor/ce-page.c
index 3c2e1118..e26f1773 100644
--- a/src/connection-editor/ce-page.c
+++ b/src/connection-editor/ce-page.c
@@ -34,7 +34,6 @@ G_DEFINE_ABSTRACT_TYPE (CEPage, ce_page, G_TYPE_OBJECT)
enum {
PROP_0,
PROP_CONNECTION,
- PROP_INITIALIZED,
PROP_PARENT_WINDOW,
LAST_PROP
@@ -663,7 +662,6 @@ ce_page_get_next_available_name (const GPtrArray *connections, const char *forma
static void
emit_initialized (CEPage *self, GError *error)
{
- self->initialized = TRUE;
g_signal_emit (self, signals[INITIALIZED], 0, error);
}
@@ -773,14 +771,6 @@ ce_page_get_title (CEPage *self)
return self->title;
}
-gboolean
-ce_page_get_initialized (CEPage *self)
-{
- g_return_val_if_fail (CE_IS_PAGE (self), FALSE);
-
- return self->initialized;
-}
-
void
ce_page_changed (CEPage *self)
{
@@ -799,9 +789,6 @@ get_property (GObject *object, guint prop_id,
case PROP_CONNECTION:
g_value_set_object (value, self->connection);
break;
- case PROP_INITIALIZED:
- g_value_set_boolean (value, self->initialized);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -850,14 +837,6 @@ ce_page_class_init (CEPageClass *page_class)
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property
- (object_class, PROP_INITIALIZED,
- g_param_spec_boolean (CE_PAGE_INITIALIZED,
- "Initialized",
- "Initialized",
- FALSE,
- G_PARAM_READABLE));
-
- g_object_class_install_property
(object_class, PROP_PARENT_WINDOW,
g_param_spec_pointer (CE_PAGE_PARENT_WINDOW,
"Parent window",
diff --git a/src/connection-editor/ce-page.h b/src/connection-editor/ce-page.h
index 5cd1c3df..7f5480cf 100644
--- a/src/connection-editor/ce-page.h
+++ b/src/connection-editor/ce-page.h
@@ -67,13 +67,11 @@ typedef void (*PageNewConnectionFunc) (FUNC_TAG_PAGE_NEW_CONNECTION_IMPL,
#define CE_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CE_TYPE_PAGE, CEPageClass))
#define CE_PAGE_CONNECTION "connection"
-#define CE_PAGE_INITIALIZED "initialized"
#define CE_PAGE_PARENT_WINDOW "parent-window"
typedef struct {
GObject parent;
- gboolean initialized;
gboolean inter_page_change_running;
GtkBuilder *builder;
GtkWidget *page;
@@ -165,8 +163,6 @@ void ce_page_complete_init (CEPage *self,
GVariant *secrets,
GError *error);
-gboolean ce_page_get_initialized (CEPage *self);
-
char *ce_page_get_next_available_name (const GPtrArray *connections, const char *format);
/* Only for subclasses */