seahorse r2447 - in trunk: . libseahorse
- From: nnielsen svn gnome org
- To: svn-commits-list gnome org
- Subject: seahorse r2447 - in trunk: . libseahorse
- Date: Sun, 7 Sep 2008 05:18:11 +0000 (UTC)
Author: nnielsen
Date: Sun Sep 7 05:18:11 2008
New Revision: 2447
URL: http://svn.gnome.org/viewvc/seahorse?rev=2447&view=rev
Log:
* libseahorse/seahorse-key.c: Fill in abstract methods properly
on the SeahorseObject class. Fixes crash.
Modified:
trunk/ChangeLog
trunk/libseahorse/seahorse-key.c
Modified: trunk/libseahorse/seahorse-key.c
==============================================================================
--- trunk/libseahorse/seahorse-key.c (original)
+++ trunk/libseahorse/seahorse-key.c Sun Sep 7 05:18:11 2008
@@ -119,10 +119,17 @@
G_OBJECT_CLASS (seahorse_key_parent_class)->finalize (gobject);
}
+static gchar*
+seahorse_key_get_markup (SeahorseObject *obj)
+{
+ return seahorse_key_get_name_markup (SEAHORSE_KEY (obj), 0);
+}
+
static void
seahorse_key_class_init (SeahorseKeyClass *klass)
{
GObjectClass *gobject_class;
+ SeahorseObjectClass *object_class;
seahorse_key_parent_class = g_type_class_peek_parent (klass);
gobject_class = G_OBJECT_CLASS (klass);
@@ -131,6 +138,11 @@
gobject_class->set_property = seahorse_key_set_property;
gobject_class->get_property = seahorse_key_get_property;
+ object_class = SEAHORSE_OBJECT_CLASS (klass);
+ object_class->get_display_name = (gpointer)seahorse_key_get_display_name;
+ object_class->get_markup = seahorse_key_get_markup;
+ object_class->get_stock_id = (gpointer)seahorse_key_get_stock_id;
+
g_object_class_install_property (gobject_class, PROP_KEY_SOURCE,
g_param_spec_object ("key-source", "Key Source", "Key Source that this key belongs to",
SEAHORSE_TYPE_SOURCE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]