diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2008-07-28 22:48:30 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2008-07-28 22:48:30 (GMT) |
commit | 4d004094424bb1fc52082f2e442c4c43a5525fe1 (patch) | |
tree | 6fb8d0222811f2c6f99ddc132ec959e3420f90e3 /src/binary.c | |
parent | 0164ddde7b01a6e3e3aa84ebdeb4ea9b381f063a (diff) |
Adapted the size of the GtkSnippet widget.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@9 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/binary.c')
-rw-r--r-- | src/binary.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/binary.c b/src/binary.c index a026021..eee4d2b 100644 --- a/src/binary.c +++ b/src/binary.c @@ -157,6 +157,37 @@ void fill_snippet(GtkSnippet *snippet) } + + gtk_snippet_add_line(snippet, offset, NULL, "Simple HelloWorld !"); + + pos = 0; + while (pos < len) + { + offset = base + pos; + + instr = decode_instruction(proc, data, &pos, len); + + gtk_snippet_add_line(snippet, offset, instr, NULL); + + + } + + + gtk_snippet_add_line(snippet, offset, NULL, "Simple HelloWorld !"); + + pos = 0; + while (pos < len) + { + offset = base + pos; + + instr = decode_instruction(proc, data, &pos, len); + + gtk_snippet_add_line(snippet, offset, instr, NULL); + + + } + + /* gtk_snippet_build_content(snippet); */ |