[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1894 - GNUnet/contrib gnunet-gtk/src/plugins/fs
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1894 - GNUnet/contrib gnunet-gtk/src/plugins/fs |
Date: |
Wed, 24 Aug 2005 20:48:02 -0700 (PDT) |
Author: grothoff
Date: 2005-08-24 20:47:59 -0700 (Wed, 24 Aug 2005)
New Revision: 1894
Modified:
GNUnet/contrib/config-client.in
gnunet-gtk/src/plugins/fs/search.c
Log:
disable previews
Modified: GNUnet/contrib/config-client.in
===================================================================
--- GNUnet/contrib/config-client.in 2005-08-24 21:48:09 UTC (rev 1893)
+++ GNUnet/contrib/config-client.in 2005-08-25 03:47:59 UTC (rev 1894)
@@ -193,6 +193,15 @@
stats: statistics
Default: PLUGINS = "about daemon fs stats"
+ config DISABLE-PREVIEWS
+ string "Should showing previews be disabled?"
+ default "NO"
+ help
+ When searching, gnunet-gtk can show previews
+ (if the inserting party generated them).
+ This can be disabled with this option.
+ Default: DISABLE-PREVIEWS = "NO"
+
endmenu
if Meta::EXPERIMENTAL-CLIENT
Modified: gnunet-gtk/src/plugins/fs/search.c
===================================================================
--- gnunet-gtk/src/plugins/fs/search.c 2005-08-24 21:48:09 UTC (rev 1893)
+++ gnunet-gtk/src/plugins/fs/search.c 2005-08-25 03:47:59 UTC (rev 1894)
@@ -434,13 +434,17 @@
renderer,
"text", SEARCH_DESC,
NULL);
- renderer = gtk_cell_renderer_pixbuf_new();
- gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList),
- -1,
- _("Preview"),
- renderer,
- "pixbuf", SEARCH_PIXBUF,
- NULL);
+ if (! getConfigurationString("GNUNET-GTK",
+ "DISABLE-PREVIEWS",
+ "YES")) {
+ renderer = gtk_cell_renderer_pixbuf_new();
+ gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList),
+ -1,
+ _("Preview"),
+ renderer,
+ "pixbuf", SEARCH_PIXBUF,
+ NULL);
+ }
child = gtk_bin_get_child(GTK_BIN(window));
gtk_widget_ref(GTK_WIDGET(child));
gtk_container_remove(GTK_CONTAINER(window),
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1894 - GNUnet/contrib gnunet-gtk/src/plugins/fs,
grothoff <=