[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-developers] small GTKUI patch
From: |
Hendrik Pagenhardt |
Subject: |
[GNUnet-developers] small GTKUI patch |
Date: |
Wed, 10 Mar 2004 12:29:31 +0100 |
Hello,
I noticed (by searching for "application/gnunet-directory"), that the
GTKUI "smuggles" (comment in the source(!)) the mime type into the set
of keywords of an inserted directory without showing that explicitly.
I suggest to make this addition explicit and to enable the user to
remove that keyword from the set (if he/she wishes so).
The following patch accomplishes this:
Index: src/applications/afs/gtkui/directory.c
===================================================================
RCS file: /var/cvs/GNUnet/GNUnet/src/applications/afs/gtkui/directory.c,v
retrieving revision 1.16
diff -b -c -r1.16 directory.c
*** src/applications/afs/gtkui/directory.c 30 Jan 2004 19:34:39 -0000
1.16
--- src/applications/afs/gtkui/directory.c 10 Mar 2004 11:17:53 -0000
***************
*** 134,145 ****
} else
ilm->keywords = NULL;
- /* smuggle in mimetype as a keyword */
- GROW(ilm->keywords,
- ilm->num_keywords,
- ilm->num_keywords+1);
- ilm->keywords[ilm->num_keywords-1] = STRDUP(GNUNET_DIRECTORY_MIME);
-
strcpy(ilm->opDescription, "processed");
createInsertProgressBar(ilm);
/* start the insert thread */
--- 134,139 ----
***************
*** 384,389 ****
--- 378,384 ----
gchar * titles[1] = { "Keyword(s) used" };
gchar * titlesAvailable[1] = { "Files available" };
gchar * titlesSelected[1] = { "Files selected"};
+ gchar * directoryMimetype[1] = { GNUNET_DIRECTORY_MIME };
ewm = MALLOC(sizeof(AssembleWindowModel));
/* create new window for editing */
***************
*** 486,491 ****
--- 481,488 ----
0);
gtk_widget_show(scrolled_window);
clist = gtk_clist_new_with_titles(1, titles);
+ /* smuggle in mimetype as a keyword */
+ gtk_clist_append(GTK_CLIST(clist), directoryMimetype);
ewm->keywordList = clist;
gtk_container_add(GTK_CONTAINER(scrolled_window),
clist);
Ciao,
Hendrik
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-developers] small GTKUI patch,
Hendrik Pagenhardt <=