[gnome-notes] item: Remove unused methods
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] item: Remove unused methods
- Date: Tue, 1 Feb 2022 13:15:13 +0000 (UTC)
commit 5d7438140f114cfa109a3e9b03f1c9a7e915a855
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Tue Jan 11 17:44:56 2022 +0530
item: Remove unused methods
And adapt to changes
After moving to the new design, a lot of code has been not used.
We no longer use pre-existing icons/previews since we now simply create
a row label and we no longer have Grid views which were the ones
that were using preview icons.
Also remove biji-item methods like has_color(), get_place(), is_collectable()
which were never used.
Remove them so that it's easier to make changes and it will help
split biji-notebook and biji-note-obj (and renaming it to biji-note)
and to remove biji-item without much hassle.
src/libbiji/biji-item.c | 72 ------------
src/libbiji/biji-item.h | 33 ------
src/libbiji/biji-note-obj.c | 164 ---------------------------
src/libbiji/biji-notebook.c | 172 -----------------------------
src/libbiji/provider/biji-local-note.c | 18 ---
src/libbiji/provider/biji-memo-note.c | 10 --
src/libbiji/provider/biji-nextcloud-note.c | 12 --
7 files changed, 481 deletions(-)
---
diff --git a/src/libbiji/biji-item.c b/src/libbiji/biji-item.c
index 505387b2..18bf4fba 100644
--- a/src/libbiji/biji-item.c
+++ b/src/libbiji/biji-item.c
@@ -49,18 +49,6 @@ typedef struct
G_DEFINE_TYPE_WITH_PRIVATE (BijiItem, biji_item, G_TYPE_OBJECT)
-static gboolean
-biji_item_real_has_color (BijiItem *self)
-{
- return FALSE;
-}
-
-static gboolean
-biji_item_real_is_collectable (BijiItem *self)
-{
- return FALSE;
-}
-
static void
biji_item_set_property (GObject *object,
guint property_id,
@@ -110,9 +98,6 @@ biji_item_class_init (BijiItemClass *klass)
g_object_class->get_property = biji_item_get_property;
g_object_class->set_property = biji_item_set_property;
- klass->has_color = biji_item_real_has_color;
- klass->is_collectable = biji_item_real_is_collectable;
-
properties[PROP_BOOK] =
g_param_spec_object("manager",
"Note Manager",
@@ -190,44 +175,6 @@ biji_item_get_manager (BijiItem *item)
return priv->manager;
}
-
-cairo_surface_t *
-biji_item_get_icon (BijiItem *item,
- gint scale)
-{
- g_return_val_if_fail (BIJI_IS_ITEM (item), NULL);
-
- return BIJI_ITEM_GET_CLASS (item)->get_icon (item, scale);
-}
-
-cairo_surface_t *
-biji_item_get_emblem (BijiItem *item,
- gint scale)
-{
- g_return_val_if_fail (BIJI_IS_ITEM (item), NULL);
-
- return BIJI_ITEM_GET_CLASS (item)->get_emblem (item, scale);
-}
-
-cairo_surface_t *
-biji_item_get_pristine (BijiItem *item,
- gint scale)
-{
- g_return_val_if_fail (BIJI_IS_ITEM (item), NULL);
-
- return BIJI_ITEM_GET_CLASS (item)->get_pristine (item, scale);
-}
-
-
-const gchar *
-biji_item_get_place (BijiItem *item)
-{
- g_return_val_if_fail (BIJI_IS_ITEM (item), NULL);
-
- return BIJI_ITEM_GET_CLASS (item)->get_place (item);
-}
-
-
gint64
biji_item_get_mtime (BijiItem *item)
{
@@ -236,15 +183,6 @@ biji_item_get_mtime (BijiItem *item)
return BIJI_ITEM_GET_CLASS (item)->get_mtime (item);
}
-
-gboolean
-biji_item_has_color (BijiItem *item)
-{
- g_return_val_if_fail (BIJI_IS_ITEM (item), FALSE);
-
- return BIJI_ITEM_GET_CLASS (item)->has_color (item);
-}
-
gboolean
biji_item_trash (BijiItem *item)
{
@@ -297,16 +235,6 @@ biji_item_delete (BijiItem *item)
return retval;
}
-
-
-gboolean
-biji_item_is_collectable (BijiItem *item)
-{
- g_return_val_if_fail (BIJI_IS_ITEM (item), FALSE);
-
- return BIJI_ITEM_GET_CLASS (item)->is_collectable (item);
-}
-
gboolean
biji_item_has_notebook (BijiItem *item, gchar *coll)
{
diff --git a/src/libbiji/biji-item.h b/src/libbiji/biji-item.h
index 93153fbd..39baf757 100644
--- a/src/libbiji/biji-item.h
+++ b/src/libbiji/biji-item.h
@@ -45,24 +45,12 @@ struct _BijiItemClass
const gchar * (*get_title) (BijiItem *item);
const gchar * (*get_uuid) (BijiItem *item);
- cairo_surface_t * (*get_icon) (BijiItem *item,
- gint scale);
- cairo_surface_t * (*get_emblem) (BijiItem *item,
- gint scale);
- cairo_surface_t * (*get_pristine) (BijiItem *item,
- gint scale);
-
- /* Just return some provider information */
- const gchar * (*get_place) (BijiItem *item);
-
gint64 (*get_mtime) (BijiItem *item);
- gboolean (*has_color) (BijiItem *item);
gboolean (*trash) (BijiItem *item);
gboolean (*restore) (BijiItem *item, gchar **old_uuid);
gboolean (*delete) (BijiItem *item);
- gboolean (*is_collectable) (BijiItem *item);
gboolean (*has_notebook) (BijiItem *item, gchar *coll);
gboolean (*add_notebook) (BijiItem *item, BijiItem *coll, gchar *title);
gboolean (*remove_notebook) (BijiItem *item, BijiItem *coll);
@@ -84,24 +72,6 @@ const gchar * biji_item_get_uuid (BijiItem *item);
gpointer biji_item_get_manager (BijiItem *item);
-gboolean biji_item_has_color (BijiItem *item);
-
-
-cairo_surface_t * biji_item_get_icon (BijiItem *item,
- gint scale);
-
-
-cairo_surface_t * biji_item_get_emblem (BijiItem *item,
- gint scale);
-
-
-cairo_surface_t * biji_item_get_pristine (BijiItem *item,
- gint scale);
-
-
-const gchar * biji_item_get_place (BijiItem *item);
-
-
gint64 biji_item_get_mtime (BijiItem *item);
@@ -114,9 +84,6 @@ gboolean biji_item_restore (BijiItem *item);
gboolean biji_item_delete (BijiItem *item);
-gboolean biji_item_is_collectable (BijiItem *item);
-
-
gboolean biji_item_has_notebook (BijiItem *item,
gchar *collection);
diff --git a/src/libbiji/biji-note-obj.c b/src/libbiji/biji-note-obj.c
index 3aeb097d..f3d66747 100644
--- a/src/libbiji/biji-note-obj.c
+++ b/src/libbiji/biji-note-obj.c
@@ -43,12 +43,6 @@ typedef struct
BijiTimeout *timeout;
gboolean needs_save;
- /* Icon might be null until useful
- * Emblem is smaller & just shows the color */
- cairo_surface_t *icon;
- cairo_surface_t *emblem;
- cairo_surface_t *pristine;
-
/* Tags
* In Tomboy, templates are 'system:notebook:%s' tags.*/
GHashTable *labels;
@@ -115,16 +109,6 @@ biji_note_obj_init (BijiNoteObj *self)
priv->labels = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
}
-static void
-biji_note_obj_clear_icons (BijiNoteObj *self)
-{
- BijiNoteObjPrivate *priv = biji_note_obj_get_instance_private (self);
-
- g_clear_pointer (&priv->icon, cairo_surface_destroy);
- g_clear_pointer (&priv->emblem, cairo_surface_destroy);
- g_clear_pointer (&priv->pristine, cairo_surface_destroy);
-}
-
static void
biji_note_obj_finalize (GObject *object)
{
@@ -145,8 +129,6 @@ biji_note_obj_finalize (GObject *object)
g_hash_table_destroy (priv->labels);
- biji_note_obj_clear_icons (self);
-
gdk_rgba_free (priv->color);
G_OBJECT_CLASS (biji_note_obj_parent_class)->finalize (object);
@@ -376,7 +358,6 @@ biji_note_obj_set_rgba (BijiNoteObj *self,
else if (!gdk_rgba_equal (priv->color,rgba))
{
gdk_rgba_free (priv->color);
- biji_note_obj_clear_icons (self);
biji_note_obj_set_rgba_internal (self, rgba);
biji_note_obj_set_last_metadata_change_date (self, g_get_real_time () / G_USEC_PER_SEC);
biji_note_obj_save_note (self);
@@ -419,7 +400,6 @@ biji_note_obj_set_raw_text (BijiNoteObj *self,
g_free (priv->content);
priv->content = g_strdup (plain_text);
- biji_note_obj_clear_icons (self);
g_signal_emit (self, biji_obj_signals[NOTE_CHANGED],0);
}
@@ -552,147 +532,6 @@ biji_note_obj_save_note (BijiNoteObj *self)
biji_timeout_reset (priv->timeout, 3000);
}
-static cairo_surface_t *
-get_icon (BijiItem *item,
- int scale)
-{
- GdkRGBA note_color;
- const char *text;
- cairo_t *cr;
- PangoLayout *layout;
- PangoFontDescription *desc;
- cairo_surface_t *surface = NULL;
- BijiNoteObj *note = BIJI_NOTE_OBJ (item);
- BijiNoteObjPrivate *priv = biji_note_obj_get_instance_private (note);
-
- if (priv->icon)
- return priv->icon;
-
- /* Create & Draw surface */
- surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
- BIJI_ICON_WIDTH * scale,
- BIJI_ICON_HEIGHT * scale);
- cairo_surface_set_device_scale (surface, scale, scale);
- cr = cairo_create (surface);
-
- /* Background */
- cairo_rectangle (cr, 0, 0, BIJI_ICON_WIDTH, BIJI_ICON_HEIGHT);
- if (biji_note_obj_get_rgba (note, ¬e_color))
- gdk_cairo_set_source_rgba (cr, ¬e_color);
-
- cairo_fill (cr);
-
- /* Text */
- text = biji_note_obj_get_raw_text (note);
- if (text != NULL)
- {
- cairo_translate (cr, 10, 10);
- layout = pango_cairo_create_layout (cr);
-
- pango_layout_set_width (layout, 180000 );
- pango_layout_set_wrap (layout, PANGO_WRAP_WORD_CHAR);
- pango_layout_set_height (layout, 180000 ) ;
-
- pango_layout_set_text (layout, text, -1);
- desc = pango_font_description_from_string (BIJI_ICON_FONT);
- pango_layout_set_font_description (layout, desc);
- pango_font_description_free (desc);
-
- if(note_color.red < 0.5)
- cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
- else
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
-
- pango_cairo_update_layout (cr, layout);
- pango_cairo_show_layout (cr, layout);
-
- g_object_unref (layout);
-
- cairo_translate (cr, -10, -10);
- }
-
- /* Border */
- cairo_set_source_rgba (cr, 0.3, 0.3, 0.3, 1);
- cairo_set_line_width (cr, 1 * scale);
- cairo_rectangle (cr, 0, 0, BIJI_ICON_WIDTH, BIJI_ICON_HEIGHT);
- cairo_stroke (cr);
-
- cairo_destroy (cr);
-
- priv->icon = surface;
- return priv->icon;
-}
-
-static cairo_surface_t *
-get_pristine (BijiItem *item,
- int scale)
-{
- GdkRGBA note_color;
- cairo_t *cr;
- cairo_surface_t *surface = NULL;
- BijiNoteObj *note = BIJI_NOTE_OBJ (item);
- BijiNoteObjPrivate *priv = biji_note_obj_get_instance_private (note);
-
- if (priv->pristine)
- return priv->pristine;
-
- /* Create & Draw surface */
- surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
- BIJI_EMBLEM_WIDTH * scale,
- BIJI_EMBLEM_HEIGHT * scale) ;
- cairo_surface_set_device_scale (surface, scale, scale);
- cr = cairo_create (surface);
-
- /* Background */
- cairo_rectangle (cr, 0, 0, BIJI_EMBLEM_WIDTH, BIJI_EMBLEM_HEIGHT);
- if (biji_note_obj_get_rgba (note, ¬e_color))
- gdk_cairo_set_source_rgba (cr, ¬e_color);
-
- cairo_fill (cr);
- cairo_destroy (cr);
-
- priv->pristine = surface;
- return priv->pristine;
-}
-
-static cairo_surface_t *
-get_emblem (BijiItem *item,
- int scale)
-{
- GdkRGBA note_color;
- cairo_t *cr;
- cairo_surface_t *surface = NULL;
- BijiNoteObj *note = BIJI_NOTE_OBJ (item);
- BijiNoteObjPrivate *priv = biji_note_obj_get_instance_private (note);
-
- if (priv->emblem)
- return priv->emblem;
-
- /* Create & Draw surface */
- surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
- BIJI_EMBLEM_WIDTH * scale,
- BIJI_EMBLEM_HEIGHT * scale) ;
- cairo_surface_set_device_scale (surface, scale, scale);
- cr = cairo_create (surface);
-
- /* Background */
- cairo_rectangle (cr, 0, 0, BIJI_EMBLEM_WIDTH, BIJI_EMBLEM_HEIGHT);
- if (biji_note_obj_get_rgba (note, ¬e_color))
- gdk_cairo_set_source_rgba (cr, ¬e_color);
-
- cairo_fill (cr);
-
- /* Border */
- cairo_set_source_rgba (cr, 0.3, 0.3, 0.3, 1);
- cairo_set_line_width (cr, 1 * scale);
- cairo_rectangle (cr, 0, 0, BIJI_EMBLEM_WIDTH, BIJI_EMBLEM_HEIGHT);
- cairo_stroke (cr);
-
- cairo_destroy (cr);
-
- priv->emblem = surface;
- return priv->emblem;
-}
/* Single Note */
@@ -990,9 +829,6 @@ biji_note_obj_class_init (BijiNoteObjClass *klass)
* is_collectable is implemented at higher level, eg local_note */
item_class->get_title = get_title;
item_class->get_uuid = get_path;
- item_class->get_icon = get_icon;
- item_class->get_emblem = get_emblem;
- item_class->get_pristine = get_pristine;
item_class->get_mtime = get_mtime;
item_class->trash = trash;
item_class->has_notebook = has_notebook;
diff --git a/src/libbiji/biji-notebook.c b/src/libbiji/biji-notebook.c
index 9904e4db..cf359e05 100644
--- a/src/libbiji/biji-notebook.c
+++ b/src/libbiji/biji-notebook.c
@@ -47,9 +47,6 @@ struct _BijiNotebook
gchar *name;
gint64 mtime;
- cairo_surface_t *icon;
- cairo_surface_t *emblem;
-
GList *collected_items;
};
@@ -101,149 +98,6 @@ biji_notebook_get_uuid (BijiItem *coll)
return self->urn;
}
-
-static cairo_surface_t *
-biji_create_notebook_icon (gint base_size, gint scale, GList *surfaces)
-{
- cairo_surface_t *surface, *pix;
- cairo_t *cr;
- GList *l;
- GtkStyleContext *context;
- GtkWidgetPath *path;
- gint cur_x;
- gint cur_y;
- gint idx;
- gint padding;
- gint pix_height;
- gint pix_width;
- gdouble pix_scale_x;
- gdouble pix_scale_y;
- gint scale_size;
- gint tile_size;
-
- /* TODO: use notes thumbs */
-
- padding = MAX (floor (base_size / 10), 4);
- tile_size = (base_size - (3 * padding)) / 2;
-
- context = gtk_style_context_new ();
- gtk_style_context_add_class (context, "biji-notebook-icon");
-
- path = gtk_widget_path_new ();
- gtk_widget_path_append_type (path, GTK_TYPE_ICON_VIEW);
- gtk_style_context_set_path (context, path);
- gtk_widget_path_unref (path);
-
- surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, base_size * scale, base_size * scale);
- cairo_surface_set_device_scale (surface, scale, scale);
- cr = cairo_create (surface);
-
- gtk_render_background (context, cr, 0, 0, base_size, base_size);
- gtk_render_frame (context, cr, 0, 0, base_size, base_size);
-
- l = surfaces;
- idx = 0;
- cur_x = padding;
- cur_y = padding;
-
-
- while (l != NULL && idx < 4)
- {
- pix = l->data;
- cairo_surface_get_device_scale (pix, &pix_scale_x, &pix_scale_y);
- pix_width = cairo_image_surface_get_width (pix) / (gint) pix_scale_x;
- pix_height = cairo_image_surface_get_height (pix) / (gint) pix_scale_y;
-
- scale_size = MIN (pix_width, pix_height);
-
- cairo_save (cr);
-
- cairo_translate (cr, cur_x, cur_y);
-
- cairo_rectangle (cr, 0, 0,
- tile_size, tile_size);
- cairo_clip (cr);
-
- cairo_scale (cr, (gdouble) tile_size / (gdouble) scale_size, (gdouble) tile_size / (gdouble)
scale_size);
- cairo_set_source_surface (cr, pix, 0, 0);
-
- cairo_paint (cr);
- cairo_restore (cr);
-
- if ((idx % 2) == 0)
- {
- cur_x += tile_size + padding;
- }
- else
- {
- cur_x = padding;
- cur_y += tile_size + padding;
- }
-
- idx++;
- l = l->next;
- }
-
- cairo_destroy (cr);
- g_object_unref (context);
-
- return surface;
-}
-
-static GList *
-get_collected_pix (BijiNotebook *self,
- gint scale)
-{
- GList *result = NULL, *l;
-
- for (l = self->collected_items ; l != NULL; l = l->next)
- {
- if (BIJI_IS_ITEM (l->data))
- result = g_list_prepend (
- result,
- biji_item_get_pristine (BIJI_ITEM (l->data), scale));
- }
-
- return result;
-}
-
-static cairo_surface_t *
-biji_notebook_get_icon (BijiItem *coll,
- gint scale)
-{
- BijiNotebook *self = BIJI_NOTEBOOK (coll);
- GList *pix;
-
- if (!self->icon)
- {
- pix = get_collected_pix (self, scale);
- self->icon = biji_create_notebook_icon (BIJI_ICON_WIDTH, scale, pix);
- g_list_free (pix);
- }
-
- return self->icon;
-}
-
-
-static cairo_surface_t *
-biji_notebook_get_emblem (BijiItem *coll,
- gint scale)
-{
- BijiNotebook *self = BIJI_NOTEBOOK (coll);
- GList *pix;
-
- if (!self->emblem)
- {
- pix = get_collected_pix (self, scale);
- self->emblem = biji_create_notebook_icon (BIJI_EMBLEM_WIDTH, scale, pix);
- g_list_free (pix);
- }
-
- return self->emblem;
-}
-
-
-
static gint64
biji_notebook_get_mtime (BijiItem *coll)
{
@@ -255,17 +109,6 @@ biji_notebook_get_mtime (BijiItem *coll)
return self->mtime;
}
-
-/* As of today, notebooks are only local
- * We'll need to override this */
-
-static const gchar *
-biji_notebook_get_place (BijiItem *coll)
-{
- return _("Local");
-}
-
-
static gboolean
biji_notebook_trash (BijiItem *item)
{
@@ -386,8 +229,6 @@ on_notebook_get_notes_cb (GObject *object,
GList *notes;
g_clear_pointer (&self->collected_items, g_list_free);
- g_clear_pointer (&self->icon, cairo_surface_destroy);
- g_clear_pointer (&self->emblem, cairo_surface_destroy);
notes = biji_tracker_get_notes_with_notebook_finish (BIJI_TRACKER (object), result, NULL);
self->collected_items = notes;
@@ -447,13 +288,6 @@ biji_notebook_constructed (GObject *obj)
g_object_ref (self));
}
-static gboolean
-say_no (BijiItem *item)
-{
- return FALSE;
-}
-
-
static void
biji_notebook_class_init (BijiNotebookClass *klass)
{
@@ -505,16 +339,10 @@ biji_notebook_class_init (BijiNotebookClass *klass)
/* Interface */
item_class->get_title = biji_notebook_get_title;
item_class->get_uuid = biji_notebook_get_uuid;
- item_class->get_icon = biji_notebook_get_icon;
- item_class->get_emblem = biji_notebook_get_emblem;
- item_class->get_pristine = biji_notebook_get_emblem;
item_class->get_mtime = biji_notebook_get_mtime;
- item_class->get_place = biji_notebook_get_place;
- item_class->has_color = say_no;
item_class->trash = biji_notebook_trash;
item_class->delete = biji_notebook_delete;
item_class->restore = biji_notebook_restore;
- item_class->is_collectable = say_no;
item_class->has_notebook = biji_notebook_has_notebook;
item_class->add_notebook = biji_notebook_add_notebook;
item_class->remove_notebook = biji_notebook_remove_notebook;
diff --git a/src/libbiji/provider/biji-local-note.c b/src/libbiji/provider/biji-local-note.c
index 3c793606..bf2fd822 100644
--- a/src/libbiji/provider/biji-local-note.c
+++ b/src/libbiji/provider/biji-local-note.c
@@ -33,15 +33,6 @@ struct _BijiLocalNote
G_DEFINE_TYPE (BijiLocalNote, biji_local_note, BIJI_TYPE_NOTE_OBJ)
-static const char *
-local_note_get_place (BijiItem *item)
-{
- BijiLocalNote *self = BIJI_LOCAL_NOTE (item);
- const BijiProviderInfo *info = biji_provider_get_info (self->provider);
-
- return info->name;
-}
-
static char *
local_note_get_html (BijiNoteObj *note)
{
@@ -103,12 +94,6 @@ biji_local_note_init (BijiLocalNote *self)
{
}
-static gboolean
-item_yes (BijiItem *item)
-{
- return TRUE;
-}
-
static gboolean
note_yes (BijiNoteObj *item)
{
@@ -256,9 +241,6 @@ biji_local_note_class_init (BijiLocalNoteClass *klass)
g_object_class->finalize = biji_local_note_finalize;
- item_class->is_collectable = item_yes;
- item_class->has_color = item_yes;
- item_class->get_place = local_note_get_place;
item_class->restore = local_note_restore;
item_class->delete = local_note_delete;
diff --git a/src/libbiji/provider/biji-memo-note.c b/src/libbiji/provider/biji-memo-note.c
index 191abbe4..cb86c92e 100644
--- a/src/libbiji/provider/biji-memo-note.c
+++ b/src/libbiji/provider/biji-memo-note.c
@@ -321,15 +321,6 @@ memo_get_basename (BijiNoteObj *note)
return g_strdup (out);
}
-static const char *
-memo_get_place (BijiItem *item)
-{
- BijiMemoNote *self = BIJI_MEMO_NOTE (item);
- const BijiProviderInfo *info = biji_provider_get_info (BIJI_PROVIDER (self->provider));
-
- return info->name;
-}
-
static gboolean
note_no (BijiNoteObj *note)
{
@@ -350,7 +341,6 @@ biji_memo_note_class_init (BijiMemoNoteClass *klass)
object_class->get_property = biji_memo_note_get_property;
object_class->set_property = biji_memo_note_set_property;
- item_class->get_place = memo_get_place;
item_class->delete = memo_item_delete;
note_class->get_basename = memo_get_basename;
diff --git a/src/libbiji/provider/biji-nextcloud-note.c b/src/libbiji/provider/biji-nextcloud-note.c
index 8dae5aad..da36398c 100644
--- a/src/libbiji/provider/biji-nextcloud-note.c
+++ b/src/libbiji/provider/biji-nextcloud-note.c
@@ -56,15 +56,6 @@ note_no (BijiNoteObj *note)
return FALSE;
}
-static const char *
-get_place (BijiItem *item)
-{
- BijiNextcloudNote *self = BIJI_NEXTCLOUD_NOTE (item);
- const BijiProviderInfo *info = biji_provider_get_info (BIJI_PROVIDER (self->provider));
-
- return info->name;
-}
-
static char *
get_basename (BijiNoteObj *note)
{
@@ -313,13 +304,10 @@ static void
biji_nextcloud_note_class_init (BijiNextcloudNoteClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- BijiItemClass *item_class = BIJI_ITEM_CLASS (klass);
BijiNoteObjClass *note_class = BIJI_NOTE_OBJ_CLASS (klass);
object_class->finalize = finalize;
- item_class->get_place = get_place;
-
note_class->get_basename = get_basename;
note_class->get_html = get_html;
note_class->set_html = set_html;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]