gchar* version;
gchar* authors;
gchar* website;
- gboolean preferences;
MidoriApp* app;
gint active;
PROP_DESCRIPTION,
PROP_VERSION,
PROP_AUTHORS,
- PROP_WEBSITE,
- PROP_PREFERENCES
+ PROP_WEBSITE
};
enum {
NULL,
flags));
- /**
- * MidoriExtension:preferences:
- *
- * True if the extension can handle the preferences signal.
- *
- * Since: 0.4.0
- */
- g_object_class_install_property (gobject_class,
- PROP_PREFERENCES,
- g_param_spec_boolean (
- "preferences",
- "Preferences",
- "True if the extension can handle the preferences signal.",
- FALSE,
- flags));
-
g_type_class_add_private (class, sizeof (MidoriExtensionPrivate));
}
case PROP_WEBSITE:
katze_assign (extension->priv->website, g_value_dup_string (value));
break;
- case PROP_PREFERENCES:
- extension->priv->preferences = g_value_get_boolean (value);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
case PROP_WEBSITE:
g_value_set_string (value, extension->priv->website);
break;
- case PROP_PREFERENCES:
- g_value_set_boolean (value, extension->priv->preferences);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
{
g_return_val_if_fail (MIDORI_IS_EXTENSION (extension), FALSE);
- if (extension->priv->preferences
- && g_signal_has_handler_pending (extension, signals[OPEN_PREFERENCES], 0, FALSE))
- return TRUE;
- return FALSE;
+ return g_signal_has_handler_pending (extension, signals[OPEN_PREFERENCES], 0, FALSE);
}
/**
public string version { get; set; }
[NoAccessorMethod]
public string authors { get; set; }
- [NoAccessorMethod]
- public bool preferences { get; set; }
public signal void activate (Midori.App app);
public signal void deactivate ();