Re: Compiling for Win XP SP1

2012-02-28 Thread Raja Mukherji
Hi,

I'm also developing an GTK+-based for Windows and Linux using GTK+
2.24 (using the opensuse build service binaries).

What sort of error are you getting? I found that installing the Visual
C++ 2008 Redistributable Package was necessary to run the app on
Windows XP SP1. Windows XP SP2 and newer seem to have it installed
already.

RM

On 24 February 2012 09:33, Lucas Levrel llev...@yahoo.fr wrote:
 Hi,

 I'm writing a GTK+-based application for Win and Linux. One of my potential
 users only has XP SP1, and the current version of my app doesn't work
 there; I compiled it against GTK+ 2.24 under XP SP3.

 I guess I should use an older version of GTK+. Which one?

 Then:
 - Where will I download it (headers+DDLs)?
 - Where will I find the relevant documentation? (Or even better, a list of
 differences between this older version and the current one.)

 Many thanks in advance.

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


Re: Finding API documentation by function name

2007-12-05 Thread Raja Mukherji
Hi,
Thanks for the advice, I will try using docbook with a custom script
to convert the output as necessary. At the moment I'm simply using
sgrep to search the html files in devhelp and converting them to plain
text with html2text; it's crude but it gives me some information about
which methods have been wrapped. You can see my efforts here:
http://wrapl.berlios.de/documentation/libraries_reference/gtk/gtk/container

Btw, there's a language-binding mailing list? I couldn't not see it on
http://www.gtk.org/mailinglists.html, how do I subscribe to this list?

Thanks,
Raja

On Dec 2, 2007 7:38 PM, Murray Cumming [EMAIL PROTECTED] wrote:


 On Tue, 2007-11-27 at 23:24 +, Raja Mukherji wrote:
  Hi all,
 
  I'm writing a binding generator for my language to Gtk and want the
  generator to be able to insert documentation into the generated code
  automatically. Is there any existing program/script for getting the
  documentation associated with a specific api function? For example:
 
  program gtk_about_dialog_new
 
  could print out the lines (as copied from devhelp):
 
  Creates a new GtkAboutDialog.
 
  Returns :
a newly created GtkAboutDialog
 
  Or it could (preferably) print them out in XML, or some other structured 
  format.
 
  I could probably fashion something myself, possibly from the files
  that devhelp generates, but I was wondering if anyone has already done
  so, or knows of any existing solution.

 gtkmm does this, and does some transformation of the text to make it
 more suitable for our API. It's perl in our gmmproc tool, and uses this
 XML:
 http://svn.gnome.org/viewvc/gtkmm/trunk/gtk/src/gtk_docs.xml?view=markup
 which is generated by this script:
 http://svn.gnome.org/viewvc/pygtk/trunk/codegen/docextract_to_xml.py?view=markup

 Our gmmproc tool allows us to override this automatically-generated
 documentation where necessary.

 I CCed the language-binding mailing list.

 --
 [EMAIL PROTECTED]
 www.murrayc.com
 www.openismus.com


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


Re: Finding API documentation by function name

2007-12-05 Thread Raja Mukherji
Sorry, I meant to type docextract instead of docbook.

On Dec 5, 2007 10:48 AM, Murray Cumming [EMAIL PROTECTED] wrote:

 On Wed, 2007-12-05 at 09:42 +, Raja Mukherji wrote:
  Hi,
  Thanks for the advice, I will try using docbook with a custom script
  to convert the output as necessary. At the moment I'm simply using
  sgrep to search the html files in devhelp and converting them to plain
  text with html2text; it's crude but it gives me some information about
  which methods have been wrapped. You can see my efforts here:
  http://wrapl.berlios.de/documentation/libraries_reference/gtk/gtk/container

 I really strongly suggest that you use the XML that I showed you, or
 something similar. It is structured and should be far easier to parse.

  Btw, there's a language-binding mailing list? I couldn't not see it on
  http://www.gtk.org/mailinglists.html, how do I subscribe to this list?

 See
 http://mail.gnome.org/mailman/listinfo/language-bindings

 --

 [EMAIL PROTECTED]
 www.murrayc.com
 www.openismus.com


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


Finding API documentation by function name

2007-11-27 Thread Raja Mukherji
Hi all,

I'm writing a binding generator for my language to Gtk and want the
generator to be able to insert documentation into the generated code
automatically. Is there any existing program/script for getting the
documentation associated with a specific api function? For example:

program gtk_about_dialog_new

could print out the lines (as copied from devhelp):

Creates a new GtkAboutDialog.

Returns :
a newly created GtkAboutDialog

Or it could (preferably) print them out in XML, or some other structured format.

I could probably fashion something myself, possibly from the files
that devhelp generates, but I was wondering if anyone has already done
so, or knows of any existing solution.

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


Re: Setting G_SLICE=always_malloc at runtime

2007-06-08 Thread Raja Mukherji
Okay, I've figured out why g_slice_set_config wasn't working...at some
point g_quark_from_static_string was being called before
g_slice_set_config, hence the error.

On 6/8/07, Raja Mukherji [EMAIL PROTECTED] wrote:
 Do I set the environment variable? Because code like

 setenv(G_SLICE, always_malloc, 1);
 g_thread_init(0);

 doesn;t seem to work.
 I noticed the g_slice_set_config functions in gslice.h and tried

 g_slice_set_config(G_SLICE_CONFIG_ALWAYS_MALLOC, 1);

 but this gives me the error

 (process:6533): GLib-CRITICAL **: g_slice_set_config: assertion
 `sys_page_size == 0' failed

 and also does not work.
 What am I doing wrong?

 Raja


 On 6/7/07, David Nečas (Yeti) [EMAIL PROTECTED] wrote:
  On Thu, Jun 07, 2007 at 08:04:08PM +0100, Raja Mukherji wrote:
   I'm writing a binding for Gtk to my programming language Wrapl, and
   want to make sure that all memory is allocated by the Hans-Boehm
   garbage collector. The glib/gobject shared libraries are loaded
   dynamically and I call g_mem_set_vtable to change to GC_malloc,
   GC_realloc, GC_free, etc. However g_slice doesn't use these. I know
   that setting the environment variable G_SLICE to always_malloc will
   solve this, but I want to do this at runtime, just after the relevant
   shared libraries are loaded, but before they are used (basically at
   the same time as when I'd call g_mem_set_vtable).
   Is this possible?
 
  GSlice is initialized, i.e. it looks at G_SLICE, on the
  first use or when thread support is initialized.  So just
  set the variable before that.
 
  Yeti
 
  --
  http://gwyddion.net/
  ___
  gtk-app-devel-list mailing list
  gtk-app-devel-list@gnome.org
  http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
 

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


Setting G_SLICE=always_malloc at runtime

2007-06-07 Thread Raja Mukherji
Hi All,
I'm writing a binding for Gtk to my programming language Wrapl, and
want to make sure that all memory is allocated by the Hans-Boehm
garbage collector. The glib/gobject shared libraries are loaded
dynamically and I call g_mem_set_vtable to change to GC_malloc,
GC_realloc, GC_free, etc. However g_slice doesn't use these. I know
that setting the environment variable G_SLICE to always_malloc will
solve this, but I want to do this at runtime, just after the relevant
shared libraries are loaded, but before they are used (basically at
the same time as when I'd call g_mem_set_vtable).
Is this possible?
Thanks,
Raja
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Setting G_SLICE=always_malloc at runtime

2007-06-07 Thread Raja Mukherji
Do I set the environment variable? Because code like

setenv(G_SLICE, always_malloc, 1);
g_thread_init(0);

doesn;t seem to work.
I noticed the g_slice_set_config functions in gslice.h and tried

g_slice_set_config(G_SLICE_CONFIG_ALWAYS_MALLOC, 1);

but this gives me the error

(process:6533): GLib-CRITICAL **: g_slice_set_config: assertion
`sys_page_size == 0' failed

and also does not work.
What am I doing wrong?

Raja


On 6/7/07, David Nečas (Yeti) [EMAIL PROTECTED] wrote:
 On Thu, Jun 07, 2007 at 08:04:08PM +0100, Raja Mukherji wrote:
  I'm writing a binding for Gtk to my programming language Wrapl, and
  want to make sure that all memory is allocated by the Hans-Boehm
  garbage collector. The glib/gobject shared libraries are loaded
  dynamically and I call g_mem_set_vtable to change to GC_malloc,
  GC_realloc, GC_free, etc. However g_slice doesn't use these. I know
  that setting the environment variable G_SLICE to always_malloc will
  solve this, but I want to do this at runtime, just after the relevant
  shared libraries are loaded, but before they are used (basically at
  the same time as when I'd call g_mem_set_vtable).
  Is this possible?

 GSlice is initialized, i.e. it looks at G_SLICE, on the
 first use or when thread support is initialized.  So just
 set the variable before that.

 Yeti

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

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