Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Arnaud Charlet
Actually, I can probably guess the technical reason why gdk_threads_init
does not call g_thread_init: this would require the gdk shared lib to
depend on libgthread-2.0, which isn't the case currently... and
may require a libgdk-thread. Ugly.

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Arnaud Charlet
> Well, one thing is the vtable that g_thread_init() uses. But I think the

Of course, there's a default value: NULL, that pretty much everyone uses
(and that would be used in my proposal).

> main reason I did it the way I did it was the idea that g_thread_init()
> should be the very first thing an app calls in its main() function.

And in most cases, gtk_init is also the very first thing a Gtk+ app calls in
its main() function.

Really, from a user perspective, having to call two functions *by default*,
and in particular since it creates a backward incompatibility with earlier
versions of Gtk+ is confusing and unnecessary.

Now, you may use the argument (already used in this thread) that doing
Gtk + threads is a Bad Idea, but that's not our call, that's the user
call.

I'd suggest making g_thread_init optional in the future, without loosing
any of the existing flexibility.

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Arnaud Charlet
> If gdk_thread_init() would call g_thread_init() you couldn't use GTK+
> with another library or any code that needs to call g_thread_init()
> before gtk_init(). Doesn't sound like a good idea to me.

That's misleading: gdk_thread_init would call g_thread_init if not already done
(it already checks whether g_thread_init has been called), so that doesn't
prevent you from calling g_thread_init before hand, possibly with
different arguments.

As for not being able to use GTK+ with another library that's not a valid
argument: Gdk depends on glib already for many things, so the dependency
is there, and can't be removed.

Now, I'm sure there must be *some* valid reason for not doing the obvious,
but I don't see what this reason would be (and don't see it documented
as part of e.g. gdk_threads_init).

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Stupid question regarding g_thread_init() and gtk_threads_init()

2004-07-27 Thread Arnaud Charlet
> > Why are there two functions for this?  Why doesn't g_thread_init() call
> > gtk_threads_init()?
> 
> g_thread_init() is part of GLib and GLib doesn't know anything about
> GTK+.  You don't seriously expect the lower level library to call
> functions in the higher level library, do you?

On the other hand, gdk_threads_init could very well call g_thread_init,
which would make things simpler for the users, rather than checking
explicitely and complaining :-)

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Is GTK+ mature on all platforms?

2003-08-18 Thread Arnaud Charlet
> > So I guess the question is are there large applications that can
> > run on win32 demonstrating the strengths of GTK+?
> 
> What about The GIMP (http://gimp.org/win32) ?

Also the GPS IDE: http://libre.act-europe.fr/gps

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


ANNOUNCE: GtkAda 2.2.0 release

2003-07-03 Thread Arnaud Charlet
GtkAda 2.2.0 release


GtkAda is an Ada95 graphical toolkit based on Gtk+. It allows you
to develop graphical applications in Ada95 using Gtk+ and Gnome.

The primary download site is http://libre.act-europe.fr/GtkAda

This version represents a major update compared to GtkAda 2.0.0, and is
suitable for use with Gtk+ 2.2.0 and above.

A binary package is also provided with this release for Windows platforms.

New features in 2.2.0:
- Support for Glade2
- Support for GtkExtra
- Support for libglade2
- New functions bound in Gtk.Label
- New type UTF8_String to make it clearer when UTF8 strings are expected
- New capabilities in GtkAda.MDI, see spec for details
- Support for drad-n-drop in GtkAda.MDI
- Bugs and memory leak fixes in GtkAda.MDI
- New package Glib.Graphs (was actually in GtkAda 2.0.0, but not announced)
- Update to GNOME 2.0 API
- Memory leaks fixed in Glib.XML
- Code clean ups
- Fixed Gtk.Text_Buffer.Cut|Copy|Paste_Clipboard
- Speed improvements and code clean up in Gtkada.Canvas
- Full support for Pango (font handling and internationalization support)
- New package Glib.Messages
- New package Glib.Unicode

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK-2.0 static linked application need minimal dependencies

2002-11-25 Thread Arnaud Charlet
> means this, that I should configure gtk2 with the flag '--sysconfdir'
> in pango and in gtk2? to place the config files f. e.
> in /abiword/etc to distribute it with the final executable?.

Not necessarily. You can also set environment variables.

What we do for GPS is to use a wrapper (shell script) that does the setting,
and then call the real executable:

<<
#!/bin/sh
# Copyright 2002 by ACT Europe.

prog=`basename $0`
root=`dirname $0`

# Strip 'bin' directory to retrieve the real root

root=`dirname $root`
LD_LIBRARY_PATH=$root/lib:$LD_LIBRARY_PATH
PANGO_RC_FILE=$root/etc/gps/pangorc
GTK_IM_MODULE_FILE=$root/etc/gps/gtk.immodules
GTK_DATA_PREFIX=$root

export LD_LIBRARY_PATH PANGO_RC_FILE GTK_DATA_PREFIX GTK_IM_MODULE_FILE
exec $root/bin/${prog}_exe "$@"
>>

This script is licensed under the GPL, so feel free to use it (or a similar
technique) for any GPL program.

Now, it would be really nice if all these env variable setting could be
avoided.

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Bug in gtk+-2.0.7?

2002-11-06 Thread Arnaud Charlet
iI have the same problem under Windows, and ended up removing the
calls to this macro.

Sounds like either a new dependency is missing, or simply some code has been
omitted.

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: pthreads + gtk

2002-09-20 Thread Arnaud Charlet

> First the example "gtk-thread.c" doesn't compile with the command they 
> advertise, but it works with the additional library added "gdk-x11-2.0"
> 
> $ gcc gtk-thread.c -lgdk-x11-2.0 `gtk-config --cflags --libs gthread`

Are you really saying that you are mixing gtk-config (from gtk+ 1.2) and
Gtk+ 2.0 libraries ?

No wonder it doesn't work ;-)

> But it fails with g++
> 
> $ g++ gtk-thread.cpp -lgdk-x11-2.0 `gtk-config --cflags --libs gthread`
> thread.c: In function `int main (int, char **)':
> thread.c:99: `gdk_threads_init' undeclared (first use this function)
> thread.c:99: (Each undeclared identifier is reported only once for each
> function it appears in.)
> 
> any hints?  I've done all my coding in C++

Hint: C++ is a different language than C.
Also, we can't guess what gtk-thread.cpp and thread.c look like.

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: pthreads + gtk

2002-09-19 Thread Arnaud Charlet

>   a) surround EVERY*** call to a GDK, GTK or X11 function
>   with gdk_threads_{enter,leave} pair

That's misleading, only calls from a thread other than the thread running the
main loop should call gdk_threads_enter/leave.

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: GtkExtra Documentation

2002-07-17 Thread Arnaud Charlet

> Can somebody point me towards a good source code that used GtkExtra widgets such as 
>GtkPlot and GtkSheet?

I'd suggest you look at the GtkAda documentation where these widgets are
documented.

GtkAda home page (with online docs):
http://libre.act-europe.fr/GtkAda

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: some questions about GTK2

2002-04-21 Thread Arnaud Charlet

> > What's the state of non-C bindings to GTK2 ?
> 
> C++, Python, Ada at least seem to be ready.

Indeed. It would probably be nice to update the page on gtk.org that
lists the language bindings.

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: some questions about GTK2

2002-04-21 Thread Arnaud Charlet

> What's the state of non-C bindings to GTK2 ?

The Ada binding is close to complete (we're using it on complex applications
with no particular problem), see
http://libre.act-europe.fr/GtkAda

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: How to set the font in gtk2

2002-04-10 Thread Arnaud Charlet

> Interesting. I just tried, and although it works when put in ~/.gtkrc-2.0
> file, it does work when put in a rc file that is loaded explicitely by

Unfortunate typo, I meant "it does NOT work"

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: How to set the font in gtk2

2002-04-10 Thread Arnaud Charlet

> Or even simpler:
> 
>  gtk-font-name = "Times 24"

Interesting. I just tried, and although it works when put in ~/.gtkrc-2.0
file, it does work when put in a rc file that is loaded explicitely by
the application.

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Release of GVD 1.2.5

2002-03-12 Thread Arnaud Charlet

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 Ada, C and C++
are supported.

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 (sources and binaries for GNU/Linux x86, Solaris sparc and
x86, Windows NT/2000, DEC Unix/Tru64, HP-UX, IRIX, AiX) and get more
information at http://libre.act-europe.fr/gvd

New features in GVD 1.2.5:
- The load file menu now retains the last directory selected
- The open source menu now retains the last directory selected
- Support for multiple debugger under Windows.
- General speed up in the display window (especially with variable names
  that include lots of dereferences, such as A.B.C.D.E...).
- A few bug fixes (see the known-problems file)

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



GtkAda 2.0.0 released

2002-03-12 Thread Arnaud Charlet

GtkAda 2.0.0 release


GtkAda is an Ada95 graphical toolkit based on Gtk+. It allows you
to develop graphical applications in Ada95 using Gtk+.

The primary download site is http://libre.act-europe.fr/GtkAda

This version represents a major update to the Gtk+ 2.0 API.
Most of the new features of Gtk+ 2.0 have been bound at this stage.
Most of the GtkExtra package has not been ported to Gtk+ 2.0 yet (this
is work in progress), so these widgets are currently disabled.

GtkAda 2.0.0 also comes with a new widget which is not fully stabilized
yet, and on which feedbacks and comments will be welcome:
- GtkAda.MDI: a fully featured multiple document interface suitable for use in
  IDE-like applications.

Enjoy!

The GtkAda team
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: locale not supported by Xlib

2001-12-13 Thread Arnaud Charlet

> GTK 2 is probably better in this respect, because it does not rely on
> Xlib's i18n, it has its own code. However you'll need "libiconv" on
> such systems.

I see. So on such systems, libiconv is another required dependency to be
able to build Gtk+.

By the way, is the correct order to build/install libiconv,
then to configure glib with --with-libiconv ? Is that enough or is
--with-libiconv (or equivalent) required on other steps ?

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: locale not supported by Xlib

2001-12-13 Thread Arnaud Charlet

> What operating system is this? You must simply have an old Xlib that
> does not properly support i18n.

Speaking of which, does this mean that Gtk 2.0 will never be able to work on
such systems ?

Arno
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



[ANNOUNCE] Release 1.2.0 of the GNU Visual Debugger

2001-06-13 Thread Arnaud Charlet

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 Ada, C and C++
are supported.

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 (sources and binaries for GNU/Linux x86, Solaris sparc and
x86, Windows NT/2000, DEC Unix/Tru64, HP-UX, UnixWare, IRIX, AiX) and get more
information at http://libre.act-europe.fr

New features in GVD 1.2.0:
- Under Windows, the special pathnames //cygdrive/x/ and //x/ are now
  recognized and converted into appropriate names.
- The File->New Debugger dialog now provides the ability to replace the
  current debugger by default.
- The "run" and "start" buttons now set automatically the name of the
  module under VxWorks.
- The File->Attach Process menu now lists the tasks on the target when
  using Tornado VxWorks.
- The --target option now allows multiple ':' characters so that you
  can specify machine:1234 as the machine (& port number).
  See the documentation for more details.
- The file corresponding to the main procedure is now displayed
  when loading an Ada executable (rather than the procedure containing the
  elaboration calls).
- The data window is now zoomable
- The breakpoint editor has been enhanced, and can now set advanced properties
  like ignore_count, commands to execute when reaching the breakpoint, or
  conditions to activate the breakpoint
- The handling of commands has been improved and is more reliable. Caching of
  commands has also been put in place giving better user feedback on slow
  machines.
- New item in the source editor contextual menu: display dereferenced variable
- New item in the source editor contextual menu: break on subprogram
- The option "break on exceptions" has been implemented
- It is possible to delete an exception by pressing the 'Delete' key in
  the Breakpoints Window.
- The Tab key is now supported in the debugger window.

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



ANNOUNCE: GtkAda 1.2.12

2001-06-13 Thread Arnaud Charlet

GtkAda 1.2.12 release
-

We are happy to announce the availability of GtkAda 1.2.12.

GtkAda is an Ada95 graphical toolkit based on Gtk+ version >= 1.2.2. It
allows you to develop graphical applications in Ada95 using Gtk+.

The primary download site is http://libre.act-europe.fr/GtkAda

New features in 1.2.12 include

- Version needed by GVD 1.2.0
- Update to GtkExtra 0.99.14, including a new 3D Plot widget.
- The GtkAda.Canvas now provides zooming capabilities. It also draws curve
  links with Bezier splines instead of circles.
  For efficiency, the items in the canvas are no longer double-buffered. Use
  Buffered_Items if you want to keep the old behavior.
  Button_Press events are reported when an item is pressed and the event
  wasn't used to move the item around.
- New function: Gtk.Widget.Set_Parent_Window.
- Documentation updates

Arnaud Charlet, for the GtkAda team

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: how do I map pkg-config functionality to glib-config-2.0?

2001-04-10 Thread Arnaud Charlet

> cat > /usr/local/bin/glib-config-2.0 << EOF
> #!/bin/sh
> pkg-config $* glib-2.0
> EOF
> 
> a working replacement :)

Well, first it should be
pkg-config glib-2.0 $*

then, it won't work for many things.
For instance, --version needs to be replaced with --modversion
--prefix needs to be replaced with --variable=prefix

--cflags and --libs will work as is.

That's what we've found when porting GtkAda to Gtk+ 1.3.3 at least, there
might be other issues.

Arno

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



ANNOUNCE: Release 1.1.0 of the GNU Visual Debugger

2001-03-12 Thread Arnaud Charlet

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 Ada, C and C++
are supported.

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 (sources and binaries for GNU/Linux x86, Solaris sparc
and x86, Windows NT/2000, DEC Unix/Tru64, HP-UX, UnixWare, IRIX, AiX) and get
more information at http://libre.act-europe.fr

New features in GVD 1.1.0:
- Complete documentation now available.
- Under Windows, non ASCII characters are now displayed instead of being
  truncated.
- New command line option: --pargs to set program arguments on the command
  line.
- New command line option: --dargs to specify additional debugger arguments.
- Start up of big programs have been significantly improved.
- Menu "Print" in the code editor contextual menu now prints the
  variable inside the command window instead of the canvas.
- Support for preferences (menu Edit->Preferences), with many
  user-configurable options. See documentation for more details.
- Scrolling of assembly window outside of displayed range is now possible
- The Data window can now be separated from the main window
  (Edit->Preferences, Data/Separate Window).
- The Memory View now handles editing in non-Hex mode, and the possibility
  of displaying ASCII and another format at the same time.
- The different window settings are now remembered from one session to
  another.
- New command line option --editor-window that gives a much better
  integration with external editors such as Glide/Emacs.
- A graphical list of processes is now displayed when attaching to a process.
- New item in data and source editor contextual menus: view memory at the
  address of a given variable.
- New item in the source editor contextual menu: print dereferenced variable

If you are interested in participating in the GVD development, do not
hesitate to contact us (mailto:[EMAIL PROTECTED])

For the GVD team,

Arnaud Charlet <[EMAIL PROTECTED]>

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



ANNOUNCE: GtkAda 1.2.11

2001-03-12 Thread Arnaud Charlet

GtkAda 1.2.11 release
-

GtkAda is an Ada95 graphical toolkit based on Gtk+ version >= 1.2.2. It
allows you to develop graphical applications in Ada95 using Gtk+.

The primary download site is http://libre.act-europe.fr/GtkAda

New features in 1.2.11 include:

- Support for GNOME is detected and handled automatically by configure
- Many additional GNOME widgets bound (but are provided as is: they have not
  been tested).
- A new utility is provided to ease the automatic generation of bindings for
  new Gtk+/GNOME widgets. See the GtkAda User's Guide for more details.
- Under Windows, non ASCII characters are now displayed instead of being
  truncated.
- New routines to update and copy XML trees easliy in Glib.XML
- Documentation additions
- various refreshing/displaying problems fixed in the GUI builder under Windows
- new functions Gtk.Viewport.Get_Bin_Window,
   Gtk.Notebook.Get_Allocation_[Height, Width, X, Y]
- gmodule is now bound in Glib.Module
- libglade is now bound in Glade and Glade.XML, and obsoletes the capability
  previousely provided in Gtk.Glade
- Gtk.Glade.Register_Generate allows to add easily support for new widgets
  in Gate
- The following widgets are now recognized automatically and no longer require
  the use of Gtk.Type_Conversion: Gtk_Item, Gtk_Check_Menu_Item,
  Gtk_Radio_Menu_Item, Gtk_Tearoff_Menu_Item, Gtk_Tree_Item.
- A new function, Gtk.Unchecked_Cast, provides an alternative to
  Gtk.Type_Conversion.
- The Gtkada.Canvas has been partly rewritten and now uses less memory. It also
  provides scrolling while moving items.
- A few bug fixes, as described in the known-problems file

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



[ANNOUNCE] Release 1.0.2 of the GNU Visual Debugger

2001-01-16 Thread Arnaud Charlet

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



Re: global cursor setting?

2001-01-15 Thread Arnaud Charlet

> Send it in -u format first so people can read it ;-)

OK, I'll do ;-)

> I thought the original thread though was that "changing the cursor
> doesn't work" i.e. the cursor didn't successfully convert to
> GDK_WATCH?

Might have been, sorry for creating confusion.
I'll open a new thread then.

Arno

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: global cursor setting?

2001-01-13 Thread Arnaud Charlet

> Function gtk_file_selection_populate() is called via a callback connected to
> a gtkentry contained within a gtkfileselection.  The gtkfileselection window
> is being displayed when I trigger this callback.  In addition to this, I was
> able to step through it's execution with ddd/gdb.  Is it possible for
> someone to independently verify this odd behavior?  Any suggestion would
> also be greatly appreciated.

I confirm the behavior. We've also made a similar change locally to Gtk,
since some of our GtkAda users asked for it (in particular when looking
through network directories).

Here is the patch we've ended up with in case someone else is interested.
Would such a patch be integrated into the official Gtk+ ?
We'd perfer to avoid having to maintain a separate version of Gtk+ if
possible.

Arno
--
*** gtk/gtkfilesel.c.oldSat Jan 13 16:32:04 2001
--- gtk/gtkfilesel.cSat Jan 13 17:31:24 2001
*** gtk_file_selection_populate (GtkFileSele
*** 1308,1317 
gint selection_index = -1;
gint file_list_width;
gint dir_list_width;

g_return_if_fail (fs != NULL);
g_return_if_fail (GTK_IS_FILE_SELECTION (fs));
!   
cmpl_state = (CompletionState*) fs->cmpl_state;
poss = cmpl_completion_matches (rel_path, &rem_path, cmpl_state);
  
--- 1308,1329 
gint selection_index = -1;
gint file_list_width;
gint dir_list_width;
+   GdkCursor *cursor = NULL;
+   GdkWindow *window;

g_return_if_fail (fs != NULL);
g_return_if_fail (GTK_IS_FILE_SELECTION (fs));
! 
!   window = GTK_WIDGET (fs)->window;
! 
!   if (window != NULL)
! {
!   cursor = gdk_cursor_new (GDK_WATCH);
!   gdk_window_set_cursor (window, cursor);
!   gdk_cursor_destroy (cursor);
!   cursor = gdk_cursor_new (GDK_LEFT_PTR);
! }
! 
cmpl_state = (CompletionState*) fs->cmpl_state;
poss = cmpl_completion_matches (rel_path, &rem_path, cmpl_state);
  
*** gtk_file_selection_populate (GtkFileSele
*** 1319,1324 
--- 1331,1342 
  {
/* Something went wrong. */
gtk_file_selection_abort (fs);
+ 
+   if (window != NULL)
+   {
+ gdk_window_set_cursor (window, cursor);
+ gdk_cursor_destroy (cursor);
+   }
return;
  }
  
*** gtk_file_selection_populate (GtkFileSele
*** 1455,1460 
--- 1473,1484 
  gtk_file_selection_update_history_menu (fs, cmpl_reference_position 
(cmpl_state));
}

+ }
+ 
+   if (window != NULL)
+ {
+   gdk_window_set_cursor (window, cursor);
+   gdk_cursor_destroy (cursor);
  }
  }
  

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



ANNOUNCE: First release of the GNU Visual Debugger

2000-12-02 Thread Arnaud Charlet

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

If you are interested in participating in the GVD development, do not hesitate
to contact us (mailto:[EMAIL PROTECTED])

Arnaud Charlet <[EMAIL PROTECTED]>



Key points about the GNU Visual Debugger:

  o Handling of different debuggers.
This includes native and cross debuggers (VxWorks, LynxOS, ...).
  o Handling of remote launching of debuggers and remote access to source files.
  o Support for different languages
. The GUI can handle several languages during the same debugging session.
. The source editor provides advanced display features such as syntax
  highlighting and source browsing (types, subprograms, ...).
  o Easy access to the most frequent operations through contextual menus.
  o Graphical data visualization
  o Multi-process
. Handling of several debuggers (possibly different and on different hosts)
  at the same time.
. Graphical display of the processes list.
. Process switching 
. Simultaneous display of multiple processes
  o Multi-task (Ada specific). Similar capabilities as for processes.
  o Multi-thread. Similar capabilities as for tasks.

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Gtk+ and PyGtk on MS-Windows

2000-11-28 Thread Arnaud Charlet

> I can't speak to PyGtk, but GTK+ for Win32 works like a charm.

Same thing for GtkAda. Well like a charm is a little bit exagerated, the
windows port is not quite yet at the same level as the X port, but it is in
a very reasonable shape.

Arno

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



[ANNOUNCE] GtkAda 1.2.10

2000-11-27 Thread Arnaud Charlet

GtkAda 1.2.10/1.3.10 release


GtkAda is an Ada95 graphical toolkit based on Gtk+ version >= 1.2.2. It
allows you to develop graphical applications in Ada95 using Gtk+.

The primary download site is http://gtkada.eu.org

New features in 1.2.10/1.3.10 include:

- RPMs available for GNU/Linux x86
- Gtk.Type_Conversion is no longer needed for Gtk_List_Item
- Gtkada.File_Selection_Dialog does not crash any more on directory selection
  under NT.
- New example directory: powergnu, a simple presentation viewer.

New features in 1.2.9/1.3.9 include:

- GUI builder support fixes under Windows NT/2000.
- Gtk.Type_Conversion isn't needed for the most common widgets: Gtk_Label,
  Gtk_Menu_Item, Gtk_Button.
- Gtkada.Canvas: better positionning of items; links can be attached anywhere
  in the items, not necessarily the middle.
- GtkAda.File_Selection has been extended (see RM for details).
- Documentation update.
- Support for gdk-pixbuf 0.9
- Limited beta support for Gnome in src/gnome.

LSM entry follows:
Begin4
Title:  GtkAda
Version: 1.2.10
Entered-date: 2000-11-20
Description: Ada95 graphical toolkit based on Gtk+ (version >= 1.2.2) 
Keywords: Ada95 Ada Gtk+ Gtk X Gui Glade Win32
Author: Emmanuel Briot <[EMAIL PROTECTED]>, Joel Brobecker <[EMAIL PROTECTED]> 
and Arnaud Charlet <[EMAIL PROTECTED]>
Maintained-by: [EMAIL PROTECTED]
Primary-site:  http://gtkada.eu.org
Original-site: http://ada.eu.org/gtkada/ 
Platforms: Solaris Linux Tru64 IRIX HP/UX NT AiX FreeBSD UnixWare
Copying-policy: GPL (with a slight modification, see headers of *.ad[bs] files
End

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: C Gtk, ada and gnat

2000-11-11 Thread Arnaud Charlet

> you need to tell gnatmake to link with the gtk libraries.
> 
> $ gnatmake -L/path/to/my/c-lib my_ada_main -largs -lmy_c_lib -largs
> `gtk-config --libs`

Note that there is actually a gtkada-config script, similar to gtk-config,
that also adds the gtkada specific options.

One can even do
gnatmake my_ada_main `gtkada-config`

Arno

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: C Gtk, ada and gnat

2000-11-07 Thread Arnaud Charlet

> I have a problem that you may be able to help with I have a C Gtk program
> that interfaces with a ada program, I have compressed the C program in to
> *.o files and the packed them in to *.a file and then try to link them to
> the ada program but in linking the ada link program can not find any of the
> Gtk calls, I need a way to compile the program.

This is hard to help without more details, but have you considered doing your
Gtk part also in Ada, using GtkAda ? This might not be an option for you,
but thought I'd mention it anyway.

By more details I mean which platform, what commands did you use, what error
did you get, etc...

Arno

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: gtkplot-5.0

2000-09-07 Thread Arnaud Charlet

>gtkplot seems great, except for the lack of comments
> and documentation. Can someone point me to examples
> where several variable are being graphed simultaneously?

You can find documentation for gtkplot in the GtkAda documentation.
The HTML version of the GtkAda documentation can be found online from
http://gtkada.eu.org (look for GtkAda Reference Manual).

Arno

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



ANNOUNCE: GtkAda 1.2.8/1.3.8

2000-07-20 Thread Arnaud Charlet

We are pleased to announce the releases 1.2.8 (for unix plaftorms) and 1.3.8
(for Windows platforms) of GtkAda. In particular, GtkAda 1.3.8 contains
version 0.5.9 of Glade with a few fixes to run correctly under Windows.

GtkAda 1.2.8/1.3.8 release
--

GtkAda is an Ada95 graphical toolkit based on Gtk+ version >= 1.2.2. It
allows you to develop graphical applications in Ada95 using Gtk+.

The primary download site is http://gtkada.eu.org

New features in 1.2.8/1.3.8 include:

- Significant documentation updates.
- A new tool, Gdialog, provides an easy way to display dialog boxes from shell
  scripts. 
- Gtkada.Intl is a new package that provides support for gettext (handling
   of string translation).
- Gtkada.Dialogs is a new package that provides an easy way of creating the
  most common dialogs.
- Gtkada.Pixmaps is a new package that provides a collection of pixmaps.
- Gtkada.Canvas is a new package that provides an interactive canvas.
- Gtkada.File_Selection is a high level interface to Gtk_Fileselection.
- Gtkada.Handlers provides a set of pre-instantiated callback packages.
- Glib.XML now properly handles special characters: " and such.
- Gate now supports the gettext_support and use_widget_names Glade options.
- Gate now generates callback *functions* when appropriate.
- Gate now handles callbacks with same name.
- Support for drag-and-drop, and selection handling, has been added.
- Some critical bugs have been fixed on the Win32 port.
- Under Win32, gate is now able to merge user changes as under unixes.
- Glade now properly handles backup files under Win32 and is now a windows
  rather than a console application.

LSM entry follows:
Begin4
Title:  GtkAda
Version: 1.2.8
Entered-date: 2000-07-17
Description: Ada95 graphical toolkit based on Gtk+ (version >= 1.2.2) 
Keywords: Ada95 Ada Gtk+ Gtk X Gui Glade Win32
Author: Emmanuel Briot <[EMAIL PROTECTED]>, Joel Brobecker <[EMAIL PROTECTED]> 
and Arnaud Charlet <[EMAIL PROTECTED]>
Maintained-by: [EMAIL PROTECTED]
Primary-site:  http://gtkada.eu.org
Original-site: http://ada.eu.org/gtkada/ 
Platforms: Solaris Linux Tru64 IRIX HP/UX NT AiX FreeBSD UnixWare
Copying-policy: GPL (with a slight modification, see headers of *.ad[bs] files
End

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Writing a full-screen debugger.

2000-06-26 Thread Arnaud Charlet

To complete Owen's detailled answer, the GtkAda team is currently working
on Odd, the Other Display Debugger, which is a new graphical front-end
for debuggers written using GtkAda.

It is a very flexible and extensible front-end that will both be provided
as an executable, and as a Gtk+ widget (we will provide a C binding
for it ;-), so that it can also be integrated in existing Gtk IDEs.

This project is not complete yet, but we expect to start a beta period
soon, as well as setting up a web page (that will be linked to
http://gtkada.eu.org, so you can check this periodically). I'll
post an announcement when this is done.

The very nice thing about Odd is that it is very easy to add support
for new debuggers/protocols, as well as new languages. Well, in the
spirit of Gtk+/Gnome I would say.

Odd contains very powerful features such as a nice data display window
(probably superior to ddd data display, but I guess this is a matter of taste)
and support for multiprocess and multithreaded applications.

Arno

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list