gui for trees

2006-10-21 Thread kiranc

hi

I want to maka GUI for redblack trees. Is this possible with GTK+ ? Are
there any bultin widgets available or should I 
make a new widget for this purpose?

regards
Kiran
-- 
View this message in context: 
http://www.nabble.com/gui-for-trees-tf2486007.html#a6931795
Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Segmentation fault

2006-10-21 Thread Lorenzo Marcon
My program is structured in this way:

I have two buttons: START and STOP.

Clicking on START lanches the computation of a great quantity of datas. 
Computation is done using recursion. The recursive function, everytime is 
called, checks a variable called stop, passed to the fuction by reference. If 
*stop == TRUE, function returns, otherwise the recursion continues.

Clicking on button STOP, the variable *stop is setted to TRUE.

Program is running without any problem under Linux, while under Windows, when 
clicking STOP I get segmentation fault.

Here is the backtrace.

Program received signal SIGSEGV, Segmentation fault.
0x0040279e in enter_callback ()
(gdb) bt full
#0  0x0040279e in enter_callback ()
No symbol table info available.
#1  0x62743935 in _libuser32_a_iname ()
   from /cygdrive/c/Dev-Cpp/workspace/ganag/package/libgobject-2.0-0.dll
No symbol table info available.
#2  0x0001 in ?? ()
No symbol table info available.
#3  0x0023f290 in ?? ()
No symbol table info available.
#4  0x0023f178 in ?? ()
No symbol table info available.
#5  0x in ?? () from
No symbol table info available.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Glade GUI: changing mechanism

2006-10-21 Thread Fernando ApesteguĂ­a
Hi list,

Currently, we're using code generation in our project to build the
GUI. However, AFAIK there is no more code generation support in Glade,
so we would like to build our GUI from a XML file.

Can you point me to a guide to make this migration simpler?

Best Regards
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Glade GUI: changing mechanism

2006-10-21 Thread Andrea Zagli
Il giorno sab, 21/10/2006 alle 14.03 +0200, Fernando ApesteguĂ­a ha
scritto:
 Currently, we're using code generation in our project to build the
 GUI. However, AFAIK there is no more code generation support in Glade,
 so we would like to build our GUI from a XML file.
 
 Can you point me to a guide to make this migration simpler?

use libglade

http://www.jamesh.id.au/software/libglade/
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Glade GUI: changing mechanism

2006-10-21 Thread Tristan Van Berkom
Philippe Bertin wrote:

Andrea Zagli wrote:

  

use libglade

http://www.jamesh.id.au/software/libglade/



Well, I guess Fernando's intention is to continue to use some glade 
command-line utility/) add-on to continue to use the generated code in 
the compiled program ?
  

Why would someone want to go from
  glade file -- generated code -- GUI
when you can simply go from
  glade file -- GUI
with much less code-generators  generated code  to maintain ?

 I'd like to know this too. Because libglade 
forces developers to deliver files which can eventually be changed by 
the user.

That is ill-informed - libglade forces no such thing, libglade parses
xml to build your app - whether you store that xml as a glade file
accompanying your app or as an encrypted string constant included
in your compiled program is your own device.

That being said - I think that distributing the glade file seperately is
a cleaner design, as it allows not only users but also developers to update
the UI without recompiling (allowing for some magic at the packaging
level), also - typicly apps are installed by a super-user into a read-only
prefix, generally the glade file - being part of the program's distributed
files is not user writable.

Cheers,
-Tristan

 Which in the end results in something like a user-changeable 
program. A nightmare if you have to give support for such programs ... 
Are there still add-ons to generate code ? I guess there must still be 
such add-ons, maybe even for different programming languages ?
  

Such tools do exist, as scripts/programs that parse glade files
and output code.


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Segmentation fault

2006-10-21 Thread Allin Cottrell
On Sat, 21 Oct 2006, Lorenzo Marcon wrote:

 Program is running without any problem under Linux, while under 
 Windows, when clicking STOP I get segmentation fault.

 Here is the backtrace.

 Program received signal SIGSEGV, Segmentation fault.
 0x0040279e in enter_callback ()
 (gdb) bt full
 #0  0x0040279e in enter_callback ()
 No symbol table info available.

If you want a usable trace, you need to compile your program with 
debugging symbols turned on (the -g flag to gcc).  If you want 
to follow the trace inside gtk/glib, you'll also need versions of 
those libraries compiled with debugging enabled -- though you can 
probably get by without that unless you suspect the bug may be in 
gtk/glib (possible, but not likely).

Allin Cottrell
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: gui for trees

2006-10-21 Thread Guy Rouillier
kiranc wrote:
 hi
 
 I want to maka GUI for redblack trees. Is this possible with GTK+ ? Are
 there any bultin widgets available or should I 
 make a new widget for this purpose?

A red-black tree is a data structure, as is a b-tree and a linked list. 
  You won't find dedicated Gtk widgets for any of them, because 
typically what's beneficial for a data structure may not be for 
graphical widget.

That being said, take a look at GtkTreeView. You may be able to utilize 
that to display the data in your red-black tree data structure.

-- 
Guy Rouillier
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list