[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r19618 - gnunet-gtk/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r19618 - gnunet-gtk/src/fs |
Date: |
Wed, 1 Feb 2012 22:57:36 +0100 |
Author: grothoff
Date: 2012-02-01 22:57:36 +0100 (Wed, 01 Feb 2012)
New Revision: 19618
Modified:
gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
Log:
-sync
Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c 2012-02-01
21:47:49 UTC (rev 19617)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c 2012-02-01
21:57:36 UTC (rev 19618)
@@ -285,8 +285,17 @@
}
+/**
+ * The user changed the type of a meta-data item in the meta data
+ * tree view. Update the type and text in the list store accordingly.
+ *
+ * @param renderer widget where the change happened
+ * @param path which item was changed
+ * @param new_text new value for the item
+ * @param user_data the 'struct EditPublicationDialogContext'
+ */
void
-GNUNET_GTK_edit_publication_metadata_tree_view_type_renderer_edited_cb
(GtkCellRendererText * renderer,
+GNUNET_GTK_edit_publication_metadata_tree_view_type_renderer_edited_cb
(GtkCellRendererText *renderer,
gchar *
path,
gchar *
new_text,
gpointer user_data)
@@ -297,12 +306,19 @@
gint type_id;
gchar *description = NULL;
- if (!gtk_tree_model_get_iter_from_string
- (GTK_TREE_MODEL (ctx->meta_liststore), &iter, path))
+ if (! gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL
(ctx->meta_liststore),
+ &iter,
+ path))
+ {
+ GNUNET_break (0);
return;
-
- if (!ctx->meta_combo_selected_iter)
+ }
+ if (NULL == ctx->meta_combo_selected_iter)
+ {
+ GNUNET_break (0);
return;
+ }
+ /* FIXME from here... */
g_object_get (GTK_CELL_RENDERER_COMBO (gtk_builder_get_object
(ctx->builder,
"GNUNET_GTK_edit_publication_metadata_tree_view_type_renderer")),
@@ -326,6 +342,7 @@
gpointer user_data)
{
struct EditPublicationDialogContext *ctx = user_data;
+
if (ctx->meta_combo_selected_iter)
g_free (ctx->meta_combo_selected_iter);
ctx->meta_combo_selected_iter = g_new0 (GtkTreeIter, 1);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r19618 - gnunet-gtk/src/fs,
gnunet <=