[kazehakase-svn] [3632] * src/bookmarks/kz-bookmark.[ch]: Remove KzBookmarkType.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Thu Feb 12 13:03:11 JST 2009


Revision: 3632
          http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3632
Author:   ikezoe
Date:     2009-02-12 13:03:11 +0900 (Thu, 12 Feb 2009)

Log Message:
-----------
	* src/bookmarks/kz-bookmark.[ch]: Remove KzBookmarkType.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/src/bookmarks/kz-bookmark.c
    kazehakase/trunk/src/bookmarks/kz-bookmark.h

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2009-02-12 03:54:38 UTC (rev 3631)
+++ kazehakase/trunk/ChangeLog	2009-02-12 04:03:11 UTC (rev 3632)
@@ -7,6 +7,7 @@
 	regression.
 	* src/kz-embed.[ch]: The second argument of set_history and
 	get_history now is a KzBookmarkFolder.
+	* src/bookmarks/kz-bookmark.[ch]: Remove KzBookmarkType.
 
 2009-02-11  Hiroyuki Ikezoe  <poinc****@ikezo*****>
 

Modified: kazehakase/trunk/src/bookmarks/kz-bookmark.c
===================================================================
--- kazehakase/trunk/src/bookmarks/kz-bookmark.c	2009-02-12 03:54:38 UTC (rev 3631)
+++ kazehakase/trunk/src/bookmarks/kz-bookmark.c	2009-02-12 04:03:11 UTC (rev 3632)
@@ -36,7 +36,6 @@
 
 enum {
 	PROP_0,
-	PROP_TYPE,
 	PROP_TITLE,
 	PROP_DOC_TITLE,
 	PROP_ID,
@@ -85,17 +84,6 @@
 
 	g_object_class_install_property(
 		object_class,
-		PROP_TYPE,
-		g_param_spec_enum (
-			"type",
-			_("Type"),
-			_("Type of the bookmark"),
-			KZ_TYPE_BOOKMARK_TYPE,
-			KZ_BOOKMARK_NORMAL,
-			G_PARAM_READWRITE));
-
-	g_object_class_install_property(
-		object_class,
 		 PROP_ID,
 		 g_param_spec_string(
 			 "id",
@@ -225,9 +213,6 @@
 	KzBookmark *bookmark = KZ_BOOKMARK(object);
 
 	switch (prop_id) {
-	case PROP_TYPE:
-		bookmark->type = g_value_get_enum(value);
-		break;
 	case PROP_ID:
 		g_return_if_fail(!kz_bookmark_is_separator(bookmark));
 		kz_bookmark_set_id(bookmark, g_value_get_string(value));
@@ -272,14 +257,10 @@
               GValue *value,
               GParamSpec *pspec)
 {
-	KzBookmark *bookmark = KZ_BOOKMARK(object);
 	gchar *str;
 	guint time;
 
 	switch (prop_id) {
-	case PROP_TYPE:
-		g_value_set_enum(value, bookmark->type);
-		break;
 	case PROP_ID:
 		str = g_object_get_qdata(object, id_quark);
 		g_value_set_string(value, str);

Modified: kazehakase/trunk/src/bookmarks/kz-bookmark.h
===================================================================
--- kazehakase/trunk/src/bookmarks/kz-bookmark.h	2009-02-12 03:54:38 UTC (rev 3631)
+++ kazehakase/trunk/src/bookmarks/kz-bookmark.h	2009-02-12 04:03:11 UTC (rev 3632)
@@ -38,15 +38,9 @@
 typedef struct _KzBookmark         KzBookmark;
 typedef struct _KzBookmarkClass    KzBookmarkClass;
 
-typedef enum {
-	KZ_BOOKMARK_NORMAL,
-	KZ_BOOKMARK_N_TYPES
-} KzBookmarkType;
-
 struct _KzBookmark
 {
 	GObject         parent;
-	KzBookmarkType  type;
 };
 
 struct _KzBookmarkClass




More information about the Kazehakase-cvs mailing list
Back to archive index