[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7457 - gnunet-gtk/src/plugins/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7457 - gnunet-gtk/src/plugins/fs |
Date: |
Sat, 19 Jul 2008 02:33:21 -0600 (MDT) |
Author: grothoff
Date: 2008-07-19 02:33:21 -0600 (Sat, 19 Jul 2008)
New Revision: 7457
Modified:
gnunet-gtk/src/plugins/fs/meta.c
gnunet-gtk/src/plugins/fs/meta.h
Log:
new function
Modified: gnunet-gtk/src/plugins/fs/meta.c
===================================================================
--- gnunet-gtk/src/plugins/fs/meta.c 2008-07-19 08:16:08 UTC (rev 7456)
+++ gnunet-gtk/src/plugins/fs/meta.c 2008-07-19 08:33:21 UTC (rev 7457)
@@ -529,4 +529,25 @@
return gtk_entry_get_text (entry);
}
+
+void
+open_meta_data_display_dialog(const struct GNUNET_MetaData * meta,
+ const char * title)
+{
+ GladeXML *xml;
+ GtkWidget *dialog;
+
+ xml = glade_xml_new (GNUNET_GTK_get_glade_filename (),
+ "metaDisplayDialog", PACKAGE_NAME);
+ GNUNET_GTK_connect_glade_with_plugins (xml);
+ dialog = glade_xml_get_widget (xml, "metaDisplayDialog");
+ gtk_window_set_title (GTK_WINDOW (dialog), title);
+ createMetaDataListTreeView (xml, "metaDisplayDialogTreeView", NULL, meta);
+ if (GTK_RESPONSE_NONE
+ != gtk_dialog_run (GTK_DIALOG (dialog)))
+ gtk_widget_destroy (dialog);
+ UNREF (xml);
+}
+
+
/* end of meta.c */
Modified: gnunet-gtk/src/plugins/fs/meta.h
===================================================================
--- gnunet-gtk/src/plugins/fs/meta.h 2008-07-19 08:16:08 UTC (rev 7456)
+++ gnunet-gtk/src/plugins/fs/meta.h 2008-07-19 08:33:21 UTC (rev 7457)
@@ -81,5 +81,10 @@
GdkPixbuf *getThumbnailFromMetaData (const struct GNUNET_MetaData *meta);
+
+void
+open_meta_data_display_dialog(const struct GNUNET_MetaData * meta,
+ const char * title);
+
/* end of meta.h */
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7457 - gnunet-gtk/src/plugins/fs,
gnunet <=