Commit c110e4f9 authored by Victor Ananjevsky's avatar Victor Ananjevsky

fixed parsing data from stdin for tree mode of list dialog

parent 1c9ca82f
...@@ -568,15 +568,15 @@ static gboolean ...@@ -568,15 +568,15 @@ static gboolean
handle_stdin (GIOChannel *channel, GIOCondition condition, gpointer data) handle_stdin (GIOChannel *channel, GIOCondition condition, gpointer data)
{ {
static GtkTreeIter iter; static GtkTreeIter iter;
static gint column_count = 0; static gulong column_count = 0;
static gint row_count = 0; static gulong row_count = 0;
static gboolean node_added = FALSE;
GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (list_view)); GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (list_view));
if ((condition == G_IO_IN) || (condition == G_IO_IN + G_IO_HUP)) if ((condition == G_IO_IN) || (condition == G_IO_IN + G_IO_HUP))
{ {
GError *err = NULL; GError *err = NULL;
GString *string = g_string_new (NULL); GString *string = g_string_new (NULL);
gboolean node_added = FALSE;
while (channel->is_readable != TRUE) while (channel->is_readable != TRUE)
usleep (100); usleep (100);
...@@ -588,9 +588,6 @@ handle_stdin (GIOChannel *channel, GIOCondition condition, gpointer data) ...@@ -588,9 +588,6 @@ handle_stdin (GIOChannel *channel, GIOCondition condition, gpointer data)
do do
{ {
status = g_io_channel_read_line_string (channel, string, NULL, &err); status = g_io_channel_read_line_string (channel, string, NULL, &err);
while (gtk_events_pending ())
gtk_main_iteration ();
} }
while (status == G_IO_STATUS_AGAIN); while (status == G_IO_STATUS_AGAIN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment