gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r1340 - gnunet-gtk/src/plugins/fs


From: grothoff
Subject: [GNUnet-SVN] r1340 - gnunet-gtk/src/plugins/fs
Date: Sat, 9 Jul 2005 06:01:46 -0700 (PDT)

Author: grothoff
Date: 2005-07-09 06:01:42 -0700 (Sat, 09 Jul 2005)
New Revision: 1340

Modified:
   gnunet-gtk/src/plugins/fs/namespace.c
   gnunet-gtk/src/plugins/fs/upload.c
Log:
fix

Modified: gnunet-gtk/src/plugins/fs/namespace.c
===================================================================
--- gnunet-gtk/src/plugins/fs/namespace.c       2005-07-09 12:52:30 UTC (rev 
1339)
+++ gnunet-gtk/src/plugins/fs/namespace.c       2005-07-09 13:01:42 UTC (rev 
1340)
@@ -436,8 +436,8 @@
     return; /* oops */
   gtk_tree_model_get(GTK_TREE_MODEL(typemodel),
                     &iter,
-                    META_STYPE, &stype,
-                    META_TYPE, &type,
+                    KTYPE_STRING, &stype,
+                    KTYPE_TYPE, &type,
                     -1);  
   gtk_list_store_append(metamodel,
                        &iter);

Modified: gnunet-gtk/src/plugins/fs/upload.c
===================================================================
--- gnunet-gtk/src/plugins/fs/upload.c  2005-07-09 12:52:30 UTC (rev 1339)
+++ gnunet-gtk/src/plugins/fs/upload.c  2005-07-09 13:01:42 UTC (rev 1340)
@@ -340,6 +340,8 @@
   entryLine = glade_xml_get_widget(metaXML,
                                   "metaDataDialogValueEntry"); 
   value = gtk_entry_get_text(GTK_ENTRY(entryLine));
+  if ( (value == NULL) || (strlen(value) == 0) )
+    return;
   typeCB = glade_xml_get_widget(metaXML,
                                "metaDataDialogMetaTypeComboBox"); 
   typemodel
@@ -349,8 +351,8 @@
     return; /* oops */
   gtk_tree_model_get(GTK_TREE_MODEL(typemodel),
                     &iter,
-                    META_STYPE, &stype,
-                    META_TYPE, &type,
+                    KTYPE_STRING, &stype,
+                    KTYPE_TYPE, &type,
                     -1);  
   gtk_list_store_append(metamodel,
                        &iter);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]