[ANNOUNCE] Release 1.0.2 of the GNU Visual Debugger
We are pleased to announce the availability of GVD, the GNU Visual Debugger, a general purpose graphical debugger front-end licensed under the GNU General Public License. Besides providing all the features of other debugger GUIs, GVD includes advanced data display and visualization capabilities. Furthermore, GVD allows the debugging of multi-process/multi-threaded applications in the same debugging session. GVD works with native as well as cross debuggers and can handle several languages in the same debugging session and the same application.Currently C and Ada are supported. Other languages will follow. GVD can run on a host different from the machine where the debugger is running and provides friendly support for cross-debuggers (VxWorks, Lynx, etc.). For instance, you can use Linux or Windows to debug an application running on a Power PC board with a debugger running on a Sun workstation. To build GVD we are using the GtkAda GUI technology. GVD comes with all the GtkAda benefits such as a pluggable look-and-feel, a set of very high-level widgets and the ability to have the same look-and-feel on all of your platforms. You can dowload GVD and get more information at http://libre.act-europe.fr New features in GVD 1.0.2: - Added support for C++ in gdb. - Assembly window is now much more efficient. - New menu File->Open Source... to open a source file without the explorer - Interrupt button implemented under NT - First version of the documentation (still a work in progress) - First version of the libgvd that can be used from C and any other language - Several bug fixes If you are interested in participating in the GVD development, do not hesitate to contact us (mailto:[EMAIL PROTECTED]) Arnaud Charlet <[EMAIL PROTECTED]> ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GTK without Text
I have some strange problems with GTK+ 1.2.8. I installed it without any errors, but Gnome and any other program that uses gtk behaves strange. Gtk programs don't show any texts, that means for instance the menubar of a gkt prog is empty, but the buttons still exist. Pop-down menues are also empty, but still work. Even the icons on the gnome desktop have no name. No prog shows any characters. What's my mistake??? I tried to solve this problem on my own, but I couldnt deal with it. Hoping that you can help me ;-) Greetings Florian ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: question about double using a thread
On 2001.01.15 19:29:25 +0100 Timothy M. Shead wrote: > Ronald Bultje wrote: > > > For a simple application, I use the call: > > > > system("a_command"); > > > > this runs this application. Now, this application needs some simple > user > > input ("press enter to do this", etc). I tried creating a second thread > to > > do this, but this will not press enter for this thread but for its own. > So > > the a_command programm still thinks enter wasn't pressed. > > Can someone think of a way to give this user input without having to do > it > > console by hand? (I mean, I try to make a GUI! :) ) > > > > Don't use "system" to run the external program - use "popen" instead, > which returns a set of pipes you can use in your main application to > write to the child's stdin and read from its stdout. > > If I recall correctly, the one caveat to this technique is that the > child process won't work if it's got an X UI of its own - check the GTK+ > FAQ for the complete scoop. > > Regards, > Timothy M. Shead > > > > I have tried it yesterday The application dumps core directly at startup, I probably am doing something wrong. What? By the way, it compiles fine The code below here is made from pieces of info I found on websites, so there might be a basic mistake in it I am just learning c++, am not that experienced yet The piece of code that applies to this pipe is below: #include [] FILE *pipe; [] void emulate_enter() { // system("\r"); fprintf(pipe, "\r"); } void *create_control_window() { GtkWidget *window, *button; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Capturing Window"); gtk_container_set_border_width (GTK_CONTAINER (window), 10); button = gtk_button_new_with_label("[Enter]"); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(emulate_enter), NULL); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(button); gtk_widget_show (window); } void write_result(GtkWidget *widget, gpointer data) { [] //command->str is a char with a certain command, the command itself //depends on user input as well... pipe = popen(command->str, "w"); if (pipe == NULL) { g_print("Error during opening pipe..."); pclose(pipe); } else { create_control_window(); } } [] ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: I cannnot update progressbar..
On 09-Jan-2001 Naoko Shimakawa wrote: > > I'm trying updating progressbar. But it is not success. > FAQ says "use while( gtk_main_iteration() );". > I try it and I read archives of mailing list. > But I cannot find my mistake. I haven't looked at your code, but that should be: while (g_main_iteration(FALSE)); -tony --- E-Mail: [EMAIL PROTECTED] Rule of the Great: When people you greatly admire appear to be thinking deep thoughts, they probably are thinking about lunch. Go Bezerk! http://www.gtk.org/~trog ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: I cannnot update progressbar..
Hi, Trog. Thank you for message. Trog <[EMAIL PROTECTED]> wrote: > > On 09-Jan-2001 Naoko Shimakawa wrote: > > > > I'm trying updating progressbar. But it is not success. > > FAQ says "use while( gtk_main_iteration() );". > > I try it and I read archives of mailing list. > > But I cannot find my mistake. > > I haven't looked at your code, but that should be: > > while (g_main_iteration(FALSE)); When I wrote while (g_main_iteration(FALSE)); it makes compile error. When I wrote while (g_main_iteration()); it doesn't make compile error. But Progress bar didn't update. My Gtk version is wrong? > > -tony > > > --- > E-Mail: [EMAIL PROTECTED] > Rule of the Great: > When people you greatly admire appear to be thinking deep > thoughts, they probably are thinking about lunch. > > Go Bezerk! http://www.gtk.org/~trog > > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list -- Naoko Shimakawa [EMAIL PROTECTED] ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: I cannnot update progressbar..
On 16-Jan-2001 Naoko Shimakawa wrote: > > When I wrote > while (g_main_iteration(FALSE)); > it makes compile error. Whats the error? > > When I wrote > while (g_main_iteration()); > it doesn't make compile error. > But Progress bar didn't update. > > My Gtk version is wrong? > What version are you using? -tony --- E-Mail: [EMAIL PROTECTED] modesty, n.: Being comfortable that others will discover your greatness. Go Bezerk! http://www.gtk.org/~trog ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: I cannnot update progressbar..
Hi, Trog. Trog <[EMAIL PROTECTED]> wrote: > > On 16-Jan-2001 Naoko Shimakawa wrote: > > > > When I wrote > > while (g_main_iteration(FALSE)); > > it makes compile error. > > Whats the error? It's : -- /usr/include/gtk/gtkmain.h:88: too many arguments to function `gint gtk_main_iteration ()' -- so I used : while (g_main_iteration()); but. > > > > > When I wrote > > while (g_main_iteration()); > > it doesn't make compile error. > > But Progress bar didn't update. > > > > My Gtk version is wrong? > > > > What version are you using? I'm sorry I don't know how to see the version. Please teach me how to know gtk version. Near the libgtk.a, libgtk-1.2.so.0.5.3 is. Is this the version? and gcc version is : -- Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 2731 (Red Hat Linux 7.0) -- OS is Red Hat Linux 7.0J. I don't update gtk librarys. -- Naoko Shimakawa [EMAIL PROTECTED] ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: I cannnot update progressbar..
The command: gtk-config --version should give you the version. You can use: while(gtk_events_pending()) gtk_main_iteration(); on older versions of GTK. -tony On 16-Jan-2001 Naoko Shimakawa wrote: > Hi, Trog. > > Trog <[EMAIL PROTECTED]> wrote: > >> >> On 16-Jan-2001 Naoko Shimakawa wrote: >> > >> > When I wrote >> > while (g_main_iteration(FALSE)); >> > it makes compile error. >> >> Whats the error? > > It's : > -- > /usr/include/gtk/gtkmain.h:88: too many arguments to function > `gint > gtk_main_iteration ()' > -- > > so I used : > while (g_main_iteration()); > but. > >> >> > >> > When I wrote >> > while (g_main_iteration()); >> > it doesn't make compile error. >> > But Progress bar didn't update. >> > >> > My Gtk version is wrong? >> > >> >> What version are you using? > > I'm sorry I don't know how to see the version. > Please teach me how to know gtk version. > Near the libgtk.a, libgtk-1.2.so.0.5.3 is. > Is this the version? > > and gcc version is : > -- > Reading specs from > /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs > gcc version 2.96 2731 (Red Hat Linux 7.0) > -- > OS is Red Hat Linux 7.0J. > I don't update gtk librarys. > > > -- > Naoko Shimakawa > [EMAIL PROTECTED] > > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list --- E-Mail: [EMAIL PROTECTED] BASIC, n.: A programming language. Related to certain social diseases in that those who have it will not admit it in polite company. Go Bezerk! http://www.gtk.org/~trog ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: I cannnot update progressbar..
Hi, Trog. Trog <[EMAIL PROTECTED]> wrote: > > The command: > gtk-config --version > > should give you the version. Thank you ! My gtk version is 1.2.8. The lastest version, isn't it? But why I cannot use: while (g_main_iteration(FALSE)); ? > You can use: > >while(gtk_events_pending()) > gtk_main_iteration(); > > on older versions of GTK. I can use this codingm... -- Naoko Shimakawa [EMAIL PROTECTED] ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: I cannnot update progressbar..
g_main_iteration() is part of GLib. Use glib-config --version to find which version of that you have. You may have old header files lying about. In 1.2.8 it is defined: gboolean g_main_iteration(gboolean may_block); in glib.h -tony On 16-Jan-2001 Naoko Shimakawa wrote: > Hi, Trog. > > Trog <[EMAIL PROTECTED]> wrote: > >> >> The command: >> gtk-config --version >> >> should give you the version. > > Thank you ! > My gtk version is 1.2.8. > The lastest version, isn't it? > But why I cannot use: > while (g_main_iteration(FALSE)); > ? > >> You can use: >> >>while(gtk_events_pending()) >> gtk_main_iteration(); >> >> on older versions of GTK. > > I can use this codingm... > > -- > Naoko Shimakawa > [EMAIL PROTECTED] --- E-Mail: [EMAIL PROTECTED] He who laughs, lasts. Go Bezerk! http://www.gtk.org/~trog ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Gtkxmhtml
Fabiano Fantini Vitale wrote: > > I want to know, where can I find documentation about > gtkxmhtml component > I doubt that any will be written specifically for the old widget, as a new one is being developed for the next version of GNOME. I have created several small projects with gtkxmhtml myself, having extracted the source for the widget from the GNOME libs source. Gtkxmhtml comes with some sample code, which was enough to get me going. Another source of examples might be the Gimp help module, which uses gtkxmhtml last time I looked (I think it could optionally be built with the new GNOME html widget for a while). Chris -- naptime on the railroad tracks ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
ANNOUNCE: GTK+ FAQ Update
Just committed the following updates to the FAQ, which should be reflected to the web site in the near future: - Update to bugzilla for bug tracking - Add GTK+ and security/SUID/SGID question - Add DnD question BTW, the tutorial has a small section on DnD, but it isn't really my area of expertise, so if someone with The Knowledge has some spare time... Otherwise it'll be a slow process of me having to learn it. Thanks -tony --- E-Mail: [EMAIL PROTECTED] The nation that controls magnetism controls the universe. -- Chester Gould/Dick Tracy Go Bezerk! http://www.gtk.org/~trog ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
manedit
Anyone else tried the new GTK-based man page editor, http://wolfpack.twu.net/ManEdit/ ? It looks good, but I can't get it to run (Linux-2.4.0, glibc-2.2, gtk-1.2.8). It segfaults on start-up (trace below). Any obvious bug candidates for this sort of thing? (The odd thing is that it runs OK on my home system, with kernel 2.2.18 and glibc-2.1.3.) Program received signal SIGSEGV, Segmentation fault. 0x400eb443 in gtk_style_init () (gdb) bt #0 0x400eb443 in gtk_style_init () #1 0x400eaf2e in gtk_style_attach () #2 0x40086878 in gtk_drawing_area_realize () #3 0x400b58fa in gtk_marshal_NONE__NONE () #4 0x400e4c8f in gtk_signal_real_emit () #5 0x400e2dc5 in gtk_signal_emit () #6 0x40117e2c in gtk_widget_realize () #7 0x4004f531 in gtk_box_pack_start () #8 0x80883a7 in PrefCreateHeading (pref=0x814bab0, parent=0x8199970, parent_border=5, label=0x80f6a5a "Apperance") at pref.c:668 #9 0x8088aa8 in PrefCreatePanelApperance (pref=0x814bab0, parent=0x818dfc8) at pref.c:842 #10 0x808bcaf in PrefCreateCatagories (pref=0x814bab0) at pref.c:1883 #11 0x808c87d in PrefNew (core_ptr=0x8119d80) at pref.c:2200 #12 0x80809be in MEditInit (core_ptr=0x8119d80, argc=1, argv=0xb8fc) at main.c:545 #13 0x8081c9d in main (argc=1, argv=0xb8fc) at main.c:1272 #14 0x402c9f87 in __libc_start_main (main=0x8081a74 , argc=1, ubp_av=0xb8fc, init=0x80528e4 <_init>, fini=0x80a2d08 <_fini>, rtld_fini=0x4000d454 <_dl_fini>, stack_end=0xb8f4) at ../sysdeps/generic/libc-start.c:111 -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: manedit
Allin Cottrell wrote: > Anyone else tried the new GTK-based man page editor, > http://wolfpack.twu.net/ManEdit/ ? > > It looks good, but I can't get it to run (Linux-2.4.0, > glibc-2.2, gtk-1.2.8). It segfaults on start-up (trace below). > Any obvious bug candidates for this sort of thing? > > (The odd thing is that it runs OK on my home system, with kernel > 2.2.18 and glibc-2.1.3.) It will run if you're lucky, there are multiple duplicate free()s that happen. I made a big patch that cleaned up the freeing added a safer free, and beautified the source. I fixed all the segfaults I found. This is against 0.4. The patch is huge because I converted all the mixed white space into a single 4sp tab form. It used to be pretty awful :P The patch is on http://www.blue-labs.org/patches/manedit-0.4-big.patch.bz2 -d -- ..NOTICE fwd: fwd: fwd: type emails will be deleted automatically. "There is a natural aristocracy among men. The grounds of this are virtue and talents", Thomas Jefferson [1742-1826], 3rd US President ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: manedit
On Tue, 16 Jan 2001, David Ford wrote: > I made a big patch that cleaned up the freeing added a safer free, and > beautified the source. I fixed all the segfaults I found. This is > against 0.4. The patch is huge because I converted all the mixed white > space into a single 4sp tab form. It used to be pretty awful :P > > The patch is on > http://www.blue-labs.org/patches/manedit-0.4-big.patch.bz2 Nice (and quick) work. But on my system it still segfaults in gtk_style_init () at startup :-( Allin Cottrell. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
glinconfig.h
Hi all, I try to compile GTK application, but it always fails with error message "glibconfig.h: No such file or directory". Anyone know how and where I can get this head file. Thanks for any help. Cary of Western digital
Re: glinconfig.h
> Cary Fu wrote: > > Hi all, > I try to compile GTK application, but it always fails with error > message "glibconfig.h: No such file or directory". Anyone know > how and where I can get this head file. Thanks for any help. You should already have it from when you installed GTK (or the gtk-devel package, if you used RPM's, or similar if you used debs) - but you need to tell gcc where it is, because it isn't in the default include path. GTK provides a script file called gtk-config which yields the neccessary -I and -L directives for gcc; there are similar scripts called glib-config, gdk-pixbuf-config, gnome-config, and *-config for just about every other GTK derived library. To use it: Say you have a file called mytest.c, which is to be compiled to the executable mytest. At the moment you are probably using: gcc -o mytest mytest.c This yields the glibconfig.c error. To fix, use gcc -o mytest mytest.c `gtk-config --cflags --libs` Note - these are back quotes around the gtk-config bit. mytest.c should now compile. Enjoy, Russ %-) -- --- Russell Keith-Magee PhD Research Student School of Computing, Curtin University of Technology email: [EMAIL PROTECTED] OR [EMAIL PROTECTED] WWW: http://www.cs.curtin.edu.au/~keithmag Ph: +61 8 9266 2129FAX +61 8 9266 2819 --- You have the body of a 19 year old. Please return it before it gets wrinkled. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: glinconfig.h
"Cary Fu" <[EMAIL PROTECTED]> writes: > I try to compile GTK application, but it always fails with error message >"glibconfig.h: No such file or directory". Anyone know > how and where I can get this head file. Thanks for any help. gtk-config --cflags will give you the correct include path so your compiler finds glibconfig.h in $prefix/lib/glib/include. Use gtk-config to create the correct CFLAGS and LDFLAGS to compile and link GTK applications. gtk-config has a manpage that explains its use in more details. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: question about double using a thread
On 2001.01.16 21:04:21 +0100 Timothy M. Shead wrote: > Ronald Bultje wrote: > > > I have tried it yesterday The application dumps core directly at > > startup, I probably am doing something wrong. What? By the way, it > compiles > > fine > > The code below here is made from pieces of info I found on websites, so > > there might be a basic mistake in it I am just learning c++, am not > > that experienced yet > > The piece of code that applies to this pipe is below: > > You need to find out where it's failing - either run the program through > gdb, or add some printf() statements to see what's going wrong. > > Tim It fails at the call gtk_main(); Here are the last lines of my main(argc,argv[])-function: [.] gtk_widget_show (window); gtk_main (); return(0); } it crashes at gtk_main(); I guess it is outside my scope to know what in my app could interfere with gtk_main. Thing is that I see a window coming up but it crashes immediately (logical - gtk_widget_show(window) is completed and directly after that, in gtk_main, it crashes) Anyone? Thanks a lot already! Ronald Bultje ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
object persistence
Is there any form of object persistence in Glib? I would like to write a GList to a file without having to determine a format and then also have to parse it afterwards. If you happen to have an example handy, that would be most helpful. Thanks in advance. Jeff "Shippy" Shipman E-Mail: [EMAIL PROTECTED] Computer Science MajorICQ: 1786493 New Mexico Institute of Mining and Technology Homepage: http://www.nmt.edu/~shippy ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: question about double using a thread
Ronald Bultje <[EMAIL PROTECTED]> writes: > On 2001.01.16 21:04:21 +0100 Timothy M. Shead wrote: > > Ronald Bultje wrote: > > > > > I have tried it yesterday The application dumps core directly at > > > startup, I probably am doing something wrong. What? By the way, it > > compiles > > > fine > > > The code below here is made from pieces of info I found on websites, so > > > there might be a basic mistake in it I am just learning c++, am not > > > that experienced yet > > > The piece of code that applies to this pipe is below: > > > > You need to find out where it's failing - either run the program through > > gdb, or add some printf() statements to see what's going wrong. > > > > Tim > > It fails at the call gtk_main(); > Here are the last lines of my main(argc,argv[])-function: > [.] > gtk_widget_show (window); > gtk_main (); > return(0); > } > > it crashes at gtk_main(); I guess it is outside my scope to know what in my > app could interfere with gtk_main. Thing is that I see a window coming > up but it crashes immediately (logical - gtk_widget_show(window) is > completed and directly after that, in gtk_main, it crashes) > Anyone? > gtk_main() will be on the stacking during nearly all of a GTK program. Build both GTK and your program with debugging (-g flag), and look at the first stack frames in the backtrace, not the last ones such as gtk_main(). Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: object persistence
Jeff Shipman <[EMAIL PROTECTED]> writes: > Is there any form of object persistence in Glib? > I would like to write a GList to a file without > having to determine a format and then also have > to parse it afterwards. > No, no support for that. (If you think about it you'll realize that GLib has no type information on the void pointers in a GList, so persistence is not even possible to implement.) Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list