[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r20564 - in gnunet-gtk: contrib src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r20564 - in gnunet-gtk: contrib src/gns |
Date: |
Fri, 16 Mar 2012 13:57:34 +0100 |
Author: wachs
Date: 2012-03-16 13:57:33 +0100 (Fri, 16 Mar 2012)
New Revision: 20564
Modified:
gnunet-gtk/contrib/gnunet_gns_gtk_main_window.glade
gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c
Log:
- more changes
Modified: gnunet-gtk/contrib/gnunet_gns_gtk_main_window.glade
===================================================================
--- gnunet-gtk/contrib/gnunet_gns_gtk_main_window.glade 2012-03-16 12:18:43 UTC
(rev 20563)
+++ gnunet-gtk/contrib/gnunet_gns_gtk_main_window.glade 2012-03-16 12:57:33 UTC
(rev 20564)
@@ -234,10 +234,10 @@
<property name="sort_column_id">0</property>
<child>
<object class="GtkCellRendererText"
id="GNUNET_GNS_GTK_name_cellrenderertext">
- <property name="editable">True</property>
<signal name="edited"
handler="GNUNET_GNS_GTK_name_cellrenderertext_edited_cb" swapped="no"/>
</object>
<attributes>
+ <attribute name="editable">9</attribute>
<attribute name="text">0</attribute>
</attributes>
</child>
@@ -275,6 +275,10 @@
<property name="text_column">1</property>
<signal name="changed"
handler="GNUNET_GNS_GTK_type_cellrenderercombo_changed_cb" swapped="no"/>
</object>
+ <attributes>
+ <attribute name="text">3</attribute>
+ <attribute name="has-entry">2</attribute>
+ </attributes>
</child>
</object>
</child>
@@ -345,6 +349,8 @@
<column type="gchararray"/>
<!-- column-name value_color -->
<column type="gchararray"/>
+ <!-- column-name name_is_editable -->
+ <column type="gboolean"/>
</columns>
</object>
<object class="GtkListStore" id="GNUNET_GNS_GTK_type_liststore">
Modified: gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c
===================================================================
--- gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c 2012-03-16 12:18:43 UTC (rev
20563)
+++ gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c 2012-03-16 12:57:33 UTC (rev
20564)
@@ -39,6 +39,7 @@
TREE_COL_EXP_TIME_AS_STR,
TREE_COL_VAL_AS_STR,
TREE_COL_VAL_COLOR,
+ TREE_COL_NAME_IS_EDITABLE,
};
/**
@@ -179,6 +180,7 @@
gtk_tree_store_insert_with_values (gns->ts, &it,NULL, 0,
TREE_COL_NAME, _(NEW_RECORD_STR),
TREE_COL_RECORD_TYPE, 1,
+ TREE_COL_NAME_IS_EDITABLE, 1,
-1);
#if 0
gtk_tree_store_append(gns->ts, &it, NULL);
@@ -266,8 +268,10 @@
*/
gtk_tree_store_set(zc_ctx->gns->ts, &iter_name,
TREE_COL_NAME, name,
+ TREE_COL_NAME_IS_EDITABLE, 1,
-1);
+
/* Append elements for records */
for (c = 0; c < rd_count; c ++)
{
@@ -298,7 +302,8 @@
gtk_tree_store_insert_with_values(zc_ctx->gns->ts, &iter_record ,
&iter_name, 0,
TREE_COL_NAME, "",
- TREE_COL_RECORD_TYPE, 4,
+ TREE_COL_RECORD_TYPE, rd[c].record_type,
+ TREE_COL_EXP_TIME_AS_STR,
GNUNET_NAMESTORE_number_to_typename(rd[c].record_type),
TREE_COL_IS_PUBLIC, public,
TREE_COL_EXP_TIME_AS_STR, exp,
TREE_COL_EXP_TIME_IS_REL,
time_is_relative,
@@ -331,6 +336,7 @@
gtk_tree_store_insert_with_values(gns->ts, &toplevel, NULL, 0,
TREE_COL_NAME, _(NEW_RECORD_STR),
TREE_COL_RECORD_TYPE, 1,
+ TREE_COL_NAME_IS_EDITABLE, 1,
-1);
zc_ctx = GNUNET_malloc (sizeof (struct ZoneIteration_Context));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r20564 - in gnunet-gtk: contrib src/gns,
gnunet <=