Re: Examples of ComboBox using an explicit model?

2012-07-31 Thread Vivien Malerba
On 31 July 2012 00:12, James Tappin jtap...@gmail.com wrote:

 I am currently trying to implement combobox cell renderers in the
 high-level gtk-fortran code. Unfortunately unlike normal comboboxes where
 there is the convenience type of GtkComboBoxText this is not available for
 cell renderers.

 I have hunted for examples of a working combobox that uses an explicit tree
 model without any success. Does anybody on this list have such an example
 (or even better, of a CellRendererCombo) that they would be willing to
 share.


You can have a look at the cell renderer I implemented for Libgda, cf
http://git.gnome.org/browse/libgda/tree/libgda-ui/data-entries/gdaui-data-cell-renderer-combo.hand
http://git.gnome.org/browse/libgda/tree/libgda-ui/data-entries/gdaui-data-cell-renderer-combo.c
.

This cell renderer displays a text, along with a down pointing triangle
which, when clicked, displays a combo box.

Hope this helps you,

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


Re: DLL Hell on Windows..

2012-07-31 Thread Robin Vossen
Thanks, but I forgot to add.
I am using GTK3 for this. I downloaded the (gtk3)bundle.

Also I've included the libatk that was shipped with it. But it didn't
seem to work.

-- 
Kind Regards,
Robin Vossen

Please avoid sending me Word, Excel or PowerPoint attachments. See
http://www.gnu.org/philosophy/no-word-attachments.html


On 31 July 2012 15:03, Gabriele Greco gabriele.gr...@darts.it wrote:

 The issue being that I just can't seem to find the right version of
 the libatk library.
 I hope somebody can give me the right version. Or maybe a way to
 determine the right version.


 Download the official bundle version
 (http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.24/gtk+-bundle_2.24.10-20120208_win32.zip),
 that contains all the DLLs  GTK is made of and all the external
 dependencies.

 --
 Bye,
  Gabry


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


Passing data to a callback (again)

2012-07-31 Thread Frank Cox
I think I'm missing something fundamental here.  My understanding is that I can
pass one pointer to a callback and that's it.  And that works.

When I look at the example provided for How do I validate/limit/filter the
input to a GtkEntry? in the Gtk+ FAQ (version 2.18.9 in my case) I see that
the callback header looks like this:

void insert_text_handler (GtkEntry *entry, const gchar *text, gint length, gint
*position, gpointer data)

The g_signal connect line looks like this:

g_signal_connect(G_OBJECT(entry), insert_text, G_CALLBACK
(insert_text_handler), NULL);

So we're passing NULL data to the callback function, but somehow that function
is receiving  const gchar *text, gint length, gint *position, gpointer data.

This obviously doesn't square with the idea that you can pass one single
pointer to a callback.

What have I missed?



-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Passing data to a callback (again)

2012-07-31 Thread Michael Cronenworth
Frank Cox wrote:
 What have I missed?

Not all callbacks perform the same function. That is why you must
consult the documentation for the signal you want to catch.

The g_signal_connect() function does indeed only pass one pointer for
the fourth argument data. All signals have a data argument to
receive the one pointer. In the case of the insert-data signal it has
a specific callback that provides additional data. Other callbacks will
have different function arguments that will provide different data. In
the end, the data pointer is the only pointer you can pass from
outside any callback.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Passing data to a callback (again)

2012-07-31 Thread Frank Cox
On Tue, 31 Jul 2012 11:06:14 -0500
Michael Cronenworth wrote:

 Not all callbacks perform the same function. That is why you must
 consult the documentation for the signal you want to catch.
 
 The g_signal_connect() function does indeed only pass one pointer for
 the fourth argument data. All signals have a data argument to
 receive the one pointer. In the case of the insert-data signal it has
 a specific callback that provides additional data. Other callbacks will
 have different function arguments that will provide different data. In
 the end, the data pointer is the only pointer you can pass from
 outside any callback.

*DING*

The light just came on.

Thank you ever so much for your explanation!


-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Examples of ComboBox using an explicit model?

2012-07-31 Thread James Tappin
Thanks to those who send examples on or off list. With the guidance of
those I was able to figure out how the different bits fit together and get
a working code.

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