aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-07-19 08:33:21 +0000
committerChristian Grothoff <christian@grothoff.org>2008-07-19 08:33:21 +0000
commit1d2016886e0d8a70952d7c3f506f7f80d709c012 (patch)
tree181268d7a1aa193d22986e3539fd40c781bc5212
parent1b7f12d8fa8b0ef6ddbdb2a75613381ae1e0c117 (diff)
downloadgnunet-gtk-1d2016886e0d8a70952d7c3f506f7f80d709c012.tar.gz
gnunet-gtk-1d2016886e0d8a70952d7c3f506f7f80d709c012.zip
new function
-rw-r--r--src/plugins/fs/meta.c21
-rw-r--r--src/plugins/fs/meta.h5
2 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/fs/meta.c b/src/plugins/fs/meta.c
index 18eec4ed..a41a1795 100644
--- a/src/plugins/fs/meta.c
+++ b/src/plugins/fs/meta.c
@@ -529,4 +529,25 @@ getEntryLineValue (GladeXML * xml, const char *widgetName)
529 return gtk_entry_get_text (entry); 529 return gtk_entry_get_text (entry);
530} 530}
531 531
532
533void
534open_meta_data_display_dialog(const struct GNUNET_MetaData * meta,
535 const char * title)
536{
537 GladeXML *xml;
538 GtkWidget *dialog;
539
540 xml = glade_xml_new (GNUNET_GTK_get_glade_filename (),
541 "metaDisplayDialog", PACKAGE_NAME);
542 GNUNET_GTK_connect_glade_with_plugins (xml);
543 dialog = glade_xml_get_widget (xml, "metaDisplayDialog");
544 gtk_window_set_title (GTK_WINDOW (dialog), title);
545 createMetaDataListTreeView (xml, "metaDisplayDialogTreeView", NULL, meta);
546 if (GTK_RESPONSE_NONE
547 != gtk_dialog_run (GTK_DIALOG (dialog)))
548 gtk_widget_destroy (dialog);
549 UNREF (xml);
550}
551
552
532/* end of meta.c */ 553/* end of meta.c */
diff --git a/src/plugins/fs/meta.h b/src/plugins/fs/meta.h
index 756d1667..b6743041 100644
--- a/src/plugins/fs/meta.h
+++ b/src/plugins/fs/meta.h
@@ -81,5 +81,10 @@ const char *getEntryLineValue (GladeXML * xml, const char *widgetName);
81 81
82GdkPixbuf *getThumbnailFromMetaData (const struct GNUNET_MetaData *meta); 82GdkPixbuf *getThumbnailFromMetaData (const struct GNUNET_MetaData *meta);
83 83
84
85void
86open_meta_data_display_dialog(const struct GNUNET_MetaData * meta,
87 const char * title);
88
84/* end of meta.h */ 89/* end of meta.h */
85#endif 90#endif