Connecting GTK application to a database

2010-02-23 Thread sruti
Hi, Can somebody help me with connecting a gtk interface with a backend database, say, Posgres? How does one embed SQL queries in the C code.? Thanks in advance Sruti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Connecting GTK application to a database

2010-02-23 Thread Tor Lillqvist
Can somebody help me with connecting a gtk interface with a backend database, say, Posgres? How does one embed SQL queries in the C code.? GTK+ has nothing to do with that. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Connecting GTK application to a database

2010-02-23 Thread Vivien Malerba
On 23 February 2010 17:16, Tor Lillqvist t...@iki.fi wrote: Can somebody help me with connecting a gtk interface with a backend database, say, Posgres? How does one embed SQL queries in the C code.? The Libgda library provides an uniform access to databases using a GObject oriented API. See

Re: Connecting GTK application to a database

2010-02-23 Thread Basile Starynkevitch
sruti wrote: Hi, Can somebody help me with connecting a gtk interface with a backend database, say, Posgres? How does one embed SQL queries in the C code.? I would believe that you handle this issue as in any C program. GTK is not relevant (except that you probably don't want to issue SQL

putting combobox in toolbar

2010-02-23 Thread walter tallent
Hi. I'm trying to add a combobox to my toolbar. I get as far as embedding it into a GtkToolButton with gtk_tool_button_set_label_widget but it seems the button itself is intercepting the mouse clicks and I can't come up with what I need to do to get the clicks through to the combobox so it

GTK+ 2.19.6 released

2010-02-23 Thread Matthias Clasen
GTK+ 2.19.6 is now available for download at: ftp://ftp.gtk.org/pub/gtk/2.19/ http://download.gnome.org/sources/gtk+/2.19/ md5 sums: 524021c965a0e1a4ebadd58c576926a5 gtk+-2.19.6.tar.bz2 1311c99903e4dd28bf42a352b05788db gtk+-2.19.6.tar.gz sha1 sums: 0a4267fe2f3022f39fdf1a2a3817e520c0ff

Re: putting combobox in toolbar

2010-02-23 Thread Tadej Borovšak
Hello. Don't use GtkToolButton for this purpose, use it's parent, GtkToolItem[1] directly and pack combo box inside it. Tadej [1] http://library.gnome.org/devel/gtk/stable/GtkToolItem.html -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com

buttons in GtkMenus, and GtkUIManager

2010-02-23 Thread Brian J. Tarricone
So I have a bit of a weird request. I'm creating a menu based on several merged UI descriptions at runtime, using GtkUIManager. This part works great. The problem is that our user experience guys want a sort of toggle-button-like radio selector at the top of the menu (this will be for a

When deprecating, always say what the replacement is.

2010-02-23 Thread Murray Cumming
When we deprecate API, please remember to document what the replacement is. People forget this quite often. A small recent example that doesn't do this: http://git.gnome.org/browse/gtk +/commit/?id=bb1824c131f247c2ef64f3c5f8b9ffe3885c9d90 -- murr...@murrayc.com www.murrayc.com www.openismus.com

Re: When deprecating, always say what the replacement is.

2010-02-23 Thread Javier Jardón
2010/2/23 Murray Cumming murr...@murrayc.com: When we deprecate API, please remember to document what the replacement is. People forget this quite often. A small recent example that doesn't do this: http://git.gnome.org/browse/gtk +/commit/?id=bb1824c131f247c2ef64f3c5f8b9ffe3885c9d90

Re: When deprecating, always say what the replacement is.

2010-02-23 Thread Claudio Saavedra
El mar, 23-02-2010 a las 19:17 +0100, Javier Jardón escribió: 2010/2/23 Murray Cumming murr...@murrayc.com: When we deprecate API, please remember to document what the replacement is. People forget this quite often. A small recent example that doesn't do this:

Re: When deprecating, always say what the replacement is.

2010-02-23 Thread Murray Cumming
On Tue, 2010-02-23 at 19:17 +0100, Javier Jardón wrote: 2010/2/23 Murray Cumming murr...@murrayc.com: When we deprecate API, please remember to document what the replacement is. People forget this quite often. A small recent example that doesn't do this: http://git.gnome.org/browse/gtk

GTK+ 2.19.6 released

2010-02-23 Thread Matthias Clasen
GTK+ 2.19.6 is now available for download at: ftp://ftp.gtk.org/pub/gtk/2.19/ http://download.gnome.org/sources/gtk+/2.19/ md5 sums: 524021c965a0e1a4ebadd58c576926a5 gtk+-2.19.6.tar.bz2 1311c99903e4dd28bf42a352b05788db gtk+-2.19.6.tar.gz sha1 sums: 0a4267fe2f3022f39fdf1a2a3817e520c0ff

Re: When deprecating, always say what the replacement is.

2010-02-23 Thread Michael Natterer
On Tue, 2010-02-23 at 19:59 +0100, Murray Cumming wrote: On Tue, 2010-02-23 at 19:17 +0100, Javier Jardón wrote: 2010/2/23 Murray Cumming murr...@murrayc.com: When we deprecate API, please remember to document what the replacement is. People forget this quite often. A small recent

Re: When deprecating, always say what the replacement is.

2010-02-23 Thread Morten Welinder
As a matter of fact, it is. There is not supposed to be any replacement for the stuff that says Do not use it. Everything that has a replacement is however documented. So please, a little research before bashing perfectly good commits. How about a research before bashing perfectly good

Re: When deprecating, always say what the replacement is.

2010-02-23 Thread Murray Cumming
On Tue, 2010-02-23 at 22:36 +0100, Michael Natterer wrote: On Tue, 2010-02-23 at 19:59 +0100, Murray Cumming wrote: No, Deprecated: 2.20: Do not use it. is not good enough. As a matter of fact, it is. There is not supposed to be any replacement for the stuff that says Do not use it.