diff options
author | Christian Grothoff <christian@grothoff.org> | 2005-08-23 08:51:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2005-08-23 08:51:13 +0000 |
commit | 66956384e32cafa16742e30a89da851f572e53bf (patch) | |
tree | 54640c702b316e7dba1792a4d40ba5be162aa14e | |
parent | 5cd84f09d54c382b3ec4c2ead9d725666308c1ed (diff) | |
download | gnunet-gtk-66956384e32cafa16742e30a89da851f572e53bf.tar.gz gnunet-gtk-66956384e32cafa16742e30a89da851f572e53bf.zip |
fix
-rw-r--r-- | gnunet-gtk.glade | 2 | ||||
-rw-r--r-- | src/plugins/fs/namespace.c | 11 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gnunet-gtk.glade b/gnunet-gtk.glade index a915f2d7..4edd6bc1 100644 --- a/gnunet-gtk.glade +++ b/gnunet-gtk.glade | |||
@@ -3690,7 +3690,7 @@ Press ENTER to add the data.</atkproperty> | |||
3690 | <property name="can_focus">True</property> | 3690 | <property name="can_focus">True</property> |
3691 | <property name="relief">GTK_RELIEF_NORMAL</property> | 3691 | <property name="relief">GTK_RELIEF_NORMAL</property> |
3692 | <property name="focus_on_click">True</property> | 3692 | <property name="focus_on_click">True</property> |
3693 | <signal name="clicked" handler="on_namespaceUpdateButton_clicked" object="namespaceContentFrame" last_modification_time="Mon, 23 May 2005 19:01:59 GMT"/> | 3693 | <signal name="clicked" handler="on_namespaceUpdateButton_clicked" last_modification_time="Mon, 23 May 2005 19:01:59 GMT"/> |
3694 | 3694 | ||
3695 | <child> | 3695 | <child> |
3696 | <widget class="GtkAlignment" id="alignment5"> | 3696 | <widget class="GtkAlignment" id="alignment5"> |
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c index a11ee771..7705a846 100644 --- a/src/plugins/fs/namespace.c +++ b/src/plugins/fs/namespace.c | |||
@@ -321,7 +321,10 @@ static int addNamespaceContentToModel(void * cls, | |||
321 | EXTRACTOR_MIMETYPE); | 321 | EXTRACTOR_MIMETYPE); |
322 | if (mime == NULL) | 322 | if (mime == NULL) |
323 | mime = STRDUP(_("unknown")); | 323 | mime = STRDUP(_("unknown")); |
324 | size = ECRS_fileSize(fi->uri); | 324 | if (ECRS_isFileUri(fi->uri)) |
325 | size = ECRS_fileSize(fi->uri); | ||
326 | else | ||
327 | size = 0; | ||
325 | uriString = ECRS_uriToString(fi->uri); | 328 | uriString = ECRS_uriToString(fi->uri); |
326 | hash2enc(lastId, &last); | 329 | hash2enc(lastId, &last); |
327 | hash2enc(nextId, &next); | 330 | hash2enc(nextId, &next); |
@@ -637,7 +640,7 @@ static void initiateUpload(GtkTreeModel * model, | |||
637 | BREAK(); | 640 | BREAK(); |
638 | } else { | 641 | } else { |
639 | /* update namespace content list! */ | 642 | /* update namespace content list! */ |
640 | fi.uri = resultURI; | 643 | fi.uri = dst; |
641 | fi.meta = meta; | 644 | fi.meta = meta; |
642 | addNamespaceContentToModel(list->model, | 645 | addNamespaceContentToModel(list->model, |
643 | &fi, | 646 | &fi, |
@@ -734,7 +737,9 @@ void on_namespaceInsertButton_clicked(GtkWidget * dummy1, | |||
734 | if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK) { | 737 | if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK) { |
735 | update = glade_xml_get_widget(metaXML, | 738 | update = glade_xml_get_widget(metaXML, |
736 | "updateIntervalComboBoxEntry"); | 739 | "updateIntervalComboBoxEntry"); |
737 | timeSpec = gtk_entry_get_text(GTK_ENTRY(update)); | 740 | timeSpec = gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(update)))); |
741 | if (timeSpec == NULL) | ||
742 | timeSpec = ""; | ||
738 | if (0 == strcmp(_("--sporadic update--"), | 743 | if (0 == strcmp(_("--sporadic update--"), |
739 | timeSpec)) | 744 | timeSpec)) |
740 | cls.updateInterval = ECRS_SBLOCK_UPDATE_SPORADIC; | 745 | cls.updateInterval = ECRS_SBLOCK_UPDATE_SPORADIC; |