Commit a24589d9 authored by Lubomir Rintel's avatar Lubomir Rintel

editor/page: drop unused "initialized" property

We use a signal of the same name, and an extra property just messes up
things.
parent 62c6087f
......@@ -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;
......@@ -849,14 +836,6 @@ ce_page_class_init (CEPageClass *page_class)
NM_TYPE_CONNECTION,
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,
......
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment