diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-08-30 17:23:51 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-08-30 17:23:51 (GMT) |
commit | ef3b996ad359e0da5e93184dab9200fad9105faf (patch) | |
tree | 7ae9252e856a64dfbcb77c9a0a7a4965e0452cbd /src/gtkext | |
parent | cc7ec539c4bd0e55cf9dc156c769e306b93b419e (diff) |
Provided a clean way to run delayed tasks.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@109 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/gtkblockview.c | 8 | ||||
-rw-r--r-- | src/gtkext/gtkgraphview.c | 30 |
2 files changed, 1 insertions, 37 deletions
diff --git a/src/gtkext/gtkblockview.c b/src/gtkext/gtkblockview.c index 99825f0..7161762 100644 --- a/src/gtkext/gtkblockview.c +++ b/src/gtkext/gtkblockview.c @@ -628,15 +628,7 @@ static void gtk_block_view_set_rendering_lines(GtkBlockView *view, GRenderingLin { g_signal_connect(iter, "rendering-line-flags-changed", G_CALLBACK(gtk_block_view_update_margin), view); - } - - g_rendering_line_update_bin_len(GTK_BIN_VIEW(view)->lines, - GTK_BIN_VIEW(view)->last, view->rendering); - for (iter = GTK_BIN_VIEW(view)->lines; - iter != NULL; - iter = g_rendering_line_get_next_iter(GTK_BIN_VIEW(view)->lines, iter, GTK_BIN_VIEW(view)->last)) - { if (iter != GTK_BIN_VIEW(view)->lines) { gtk_text_buffer_get_end_iter(view->buffer, &pos); diff --git a/src/gtkext/gtkgraphview.c b/src/gtkext/gtkgraphview.c index a6d4dd5..cc2d930 100644 --- a/src/gtkext/gtkgraphview.c +++ b/src/gtkext/gtkgraphview.c @@ -253,35 +253,7 @@ static void gtk_graph_view_reset(GtkGraphView *view) static void gtk_graph_view_set_rendering_lines(GtkGraphView *view, GRenderingLine *lines, GRenderingLine *last) { - GRenderingLine *mainl; - - view->childs = (GtkBinView **)calloc(2, sizeof(GtkBinView *)); - view->childs_count = 2; - - view->childs[0] = GTK_BIN_VIEW(gtk_block_view_new(MRD_GRAPH)); - - gtk_widget_show(GTK_WIDGET(view->childs[0])); - gtk_fixed_put(GTK_FIXED(view), GTK_WIDGET(view->childs[0]), 50, 50); - - - gtk_bin_view_set_rendering_lines(view->childs[0], GTK_BIN_VIEW(view)->binary, lines, lines); - - - - mainl = g_rendering_line_find_by_address(lines, last, 0x08048434); - - printf("mainl : %p\n", mainl); - - - view->childs[1] = GTK_BIN_VIEW(gtk_block_view_new(MRD_GRAPH)); - - gtk_widget_show(GTK_WIDGET(view->childs[1])); - gtk_fixed_put(GTK_FIXED(view), GTK_WIDGET(view->childs[1]), 100, 450); - - - gtk_bin_view_set_rendering_lines(view->childs[1], GTK_BIN_VIEW(view)->binary, mainl, mainl); - - + gtk_graph_view_reset(view); } |