[Cxplorer-cvs 01164] CVS update: libcxp/src

Back to archive index

Yasumichi Akahoshi yasum****@users*****
2005年 5月 20日 (金) 22:45:51 JST


Index: libcxp/src/cxp-gconf-pair-editor.c
diff -u libcxp/src/cxp-gconf-pair-editor.c:1.6 libcxp/src/cxp-gconf-pair-editor.c:1.7
--- libcxp/src/cxp-gconf-pair-editor.c:1.6	Fri May 20 22:15:23 2005
+++ libcxp/src/cxp-gconf-pair-editor.c	Fri May 20 22:45:50 2005
@@ -1,14 +1,14 @@
-/* $Id: cxp-gconf-pair-editor.c,v 1.6 2005/05/20 13:15:23 yasumichi Exp $ */
+/* $Id: cxp-gconf-pair-editor.c,v 1.7 2005/05/20 13:45:50 yasumichi Exp $ */
 /**
  * \if japanese
  * @file
- * @brief GConf$B$NFCDj$N%G%#%l%/%H%j$K$"$k%Z%"7?$N%-!<$rJT=8$9$k%&%#%s%I%&(B
+ * @brief GConfの特定のディレクトリにあるペア型のキーを編集するウィンドウ
  *
- * GConf$B$NFCDj$N%G%#%l%/%H%j$K$"$k%Z%"7?$N%-!<$rJT=8$9$k$?$a$N%&%#%s%I%&!#(B
- * $B%-!<L>$O!"0l0U$K$J$kMM$KFbIt$G7hDj$5$l$k!#(B
+ * GConfの特定のディレクトリにあるペア型のキーを編集するためのウィンドウ。
+ * キー名は、一意になる様に内部で決定される。
  * @author Yasumichi Akahoshi <yasum****@users*****>
  * @date Thu Mar 19 2005
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
  * \endif
  * \if english
  * @file
@@ -18,7 +18,7 @@
  * edited.The key name is decided to become unique internally.
  * @author Yasumichi Akahoshi <yasum****@users*****>
  * @date Thu Mar 19 2005
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
  * \endif
  ****************************************************************************/
 
@@ -31,17 +31,25 @@
 #include <cxp-utils.h>
 #include <cxp-gconf-pair-editor.h>
 
+/*
+ * \if japanese
+ * @brief リストストアの列を一意に識別するための列挙型
+ * \endif
+ * \if english
+ * @brief Enumeration type to identify row of list store uniquely
+ * \endif
+ */
 enum
 {
 	COL_TERMINATOR = -1,
-	COL_KEY,
-	COL_CAR,
-	COL_CDR,
-	COL_EDITABLE,
-	COL_COUNT
+	COL_KEY,	/* GConf key */
+	COL_CAR,	/* first member */
+	COL_CDR,	/* second member */
+	COL_EDITABLE,	/* Is column editable */
+	COL_COUNT	/* number of column */
 };
 
-/**
+/*
  * the private structure 
  */
 typedef struct
@@ -58,13 +66,19 @@
 
 static GObjectClass *parent_class = NULL;
 
+/*
+ * Enumeration type to identify properties.
+ */
 enum
 {
-	CXP_GCONF_PAIR_EDITOR_GCONF_DIR = 1,
-	CXP_GCONF_PAIR_EDITOR_C1_TITLE,
-	CXP_GCONF_PAIR_EDITOR_C2_TITLE,
+	CXP_GCONF_PAIR_EDITOR_GCONF_DIR = 1,	/* namespace of GConf */
+	CXP_GCONF_PAIR_EDITOR_C1_TITLE,		/* Title of first column header. */
+	CXP_GCONF_PAIR_EDITOR_C2_TITLE,		/* Title of second column header. */
 };
 
+/*
+ * prototype of private method.
+ */
 static void cxp_gconf_pair_editor_class_init (CxpGConfPairEditorClass * klass);
 static void cxp_gconf_pair_editor_instance_init (GTypeInstance * instance,
 						 gpointer g_class);
@@ -98,7 +112,9 @@
 						      gpointer user_data);
 static void cxp_gconf_pair_editor_delete_button_clicked (GtkButton * button,
 							 gpointer user_data);
-
+/*
+ * the class initialization function
+ */
 static void cxp_gconf_pair_editor_class_init (CxpGConfPairEditorClass * klass)
 {
 	GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
@@ -143,6 +159,9 @@
 	g_type_class_add_private (klass, sizeof (CxpGConfPairEditorPrivate));
 }
 
+/*
+ * the instance initialization function
+ */
 static void cxp_gconf_pair_editor_instance_init (GTypeInstance * instance,
 						 gpointer g_class)
 {
@@ -156,6 +175,9 @@
 	private->dispose_has_run = FALSE;
 }
 
+/*
+ * the constructor function
+ */
 static GObject *cxp_gconf_pair_editor_constructor (GType type,
 						   guint n_construct_properties,
 						   GObjectConstructParam *
@@ -174,6 +196,9 @@
 	return obj;
 }
 
+/*
+ * construct widget face.
+ */
 static void cxp_gconf_pair_editor_construct_child (CxpGConfPairEditor * self)
 {
 	CxpGConfPairEditorPrivate *private =
@@ -227,6 +252,9 @@
 	cxp_gconf_pair_editor_get_all_entries (self);
 }
 
+/*
+ * the generic setter for all properties of this type.
+ */
 static void cxp_gconf_pair_editor_set_property (GObject * object,
 						guint property_id,
 						const GValue * value,
@@ -265,6 +293,9 @@
 	}
 }
 
+/*
+ * the generic getter for all properties of this type.
+ */
 static void cxp_gconf_pair_editor_get_property (GObject * object,
 						guint property_id,
 						GValue * value,
@@ -290,6 +321,9 @@
 	}
 }
 
+/*
+ * the dispose function
+ */
 static void cxp_gconf_pair_editor_dispose (GObject * obj)
 {
 	CxpGConfPairEditorPrivate *private =
@@ -319,12 +353,18 @@
 	G_OBJECT_CLASS (parent_class)->dispose (obj);
 }
 
+/*
+ * instance finalization function
+ */
 static void cxp_gconf_pair_editor_finalize (GObject * obj)
 {
 	/* Chain up to the parent class */
 	G_OBJECT_CLASS (parent_class)->finalize (obj);
 }
 
+/*
+ * making externals of the list view.
+ */
 static GtkWidget *cxp_gconf_pair_editor_list_view_new (CxpGConfPairEditor *
 						       self)
 {
@@ -372,6 +412,9 @@
 	return list_view;
 }
 
+/*
+ * The list of the entry that exists in a specific directory is obtained.
+ */
 static void cxp_gconf_pair_editor_get_all_entries (CxpGConfPairEditor * self)
 {
 	CxpGConfPairEditorPrivate *private =
@@ -412,7 +455,7 @@
 
 /**
  * \if japanese
- * $BA*Br$5$l$?9T$+$i(BGtkTreeRowReference$B$rF@$k!#(B
+ * 選択された行からGtkTreeRowReferenceを得る。
  * \endif
  */
 static void cxp_gconf_pair_editor_selection_foreach (GtkTreeModel * model,
@@ -429,6 +472,11 @@
 	*list = g_list_append (*list, rowref);
 }
 
+/*
+ * \if japanese
+ * セルが編集された場合の処理
+ * \endif
+ */
 static void cxp_gconf_pair_editor_cell_edited (GtkCellRendererText * cell,
 					       gchar * path_string,
 					       gchar * new_text,
@@ -461,6 +509,11 @@
 	g_free (cdr);
 }
 
+/*
+ * \if japanese
+ * 追加ボタンがクリックされた時のコールバック
+ * \endif
+ */
 static void cxp_gconf_pair_editor_add_button_clicked (GtkButton * button,
 						      gpointer user_data)
 {
@@ -488,6 +541,11 @@
 	g_free (ukey);
 }
 
+/*
+ * \if japansese
+ * 削除ボタンがクリックされた時のコールバック
+ * \endif
+ */
 static void cxp_gconf_pair_editor_delete_button_clicked (GtkButton * button,
 							 gpointer user_data)
 {
@@ -535,6 +593,10 @@
 	g_list_free (list);
 }
 
+/*
+ * \if japanese
+ * GType型管理システムへの登録
+ * \endif
 GType cxp_gconf_pair_editor_get_type (void)
 {
 	static GType type = 0;


Cxplorer-cvs メーリングリストの案内
Back to archive index