Re: Why isn't my custom widget getting mapped?

2008-08-20 Thread Braden McDaniel
On Tue, 2008-08-19 at 00:19 -0400, Braden McDaniel wrote: [snip] > What might I have neglected to do (or unwittingly done) that would > result in this? The problem here was that I thought GtkBin was doing more for me than it actually does and I wasn't overriding a few necessary functions. As it

Re: Why the Timer doesn't work? (about g_timeout_add())

2008-08-20 Thread Lazy Fox
At last, I found it. Thanks. On 8/20/08, Tor Lillqvist <[EMAIL PROTECTED]> wrote: > > Look at this: > > > static void timer_1_test(gpointer data) > > >g_timeout_add(1000, (GSourceFunc)timer_1_test, cw); > > Then look at the documentation for GSourceFunc: > > http://library.gnome.org/devel

Re: Markup in GtkTreeViewColumns

2008-08-20 Thread John Coppens
On Wed, 20 Aug 2008 22:47:02 +0300 Paul Pogonyshev <[EMAIL PROTECTED]> wrote: > John Coppens wrote: > > It may be evident, but I can't seem to find how. I need to put markup > > in the column title of GtkTreeViewColumns, as the column titles are > > parameters with sub-indexes. (S11 etc). > > Use

Re: Markup in GtkTreeViewColumns

2008-08-20 Thread Paul Pogonyshev
John Coppens wrote: > It may be evident, but I can't seem to find how. I need to put markup in > the column title of GtkTreeViewColumns, as the column titles are > parameters with sub-indexes. (S11 etc). Use gtk_tree_view_column_set_widget() on the column. You can then use any widget as a title,

Markup in GtkTreeViewColumns

2008-08-20 Thread John Coppens
Hello people. It may be evident, but I can't seem to find how. I need to put markup in the column title of GtkTreeViewColumns, as the column titles are parameters with sub-indexes. (S11 etc). Is this possible? John ___ gtk-app-devel-list mailing list g

(1) How to implement Image Buttons without gaps? (2) Can GtkImage stretch an image automatically?

2008-08-20 Thread Daniel Yek
Hi, (1) I have been looking for a way to use GtkButton to create an Image Button that is exactly of the same size as the GtkImage that it contains, so that two Image Buttons next to each others would leave no gap in between. I have some ideas in mind, but I wonder if I'm going to over-engine

Re: Question regarding the dependency of GDK on other libraries

2008-08-20 Thread Ruchi Lohani
Can anybody explain me the significance of Requires and Requires.private field in the pkg-config .pc file ? For the gdk-x11-2.0 package, one Ubuntu system has some of the X libs like Xcomposite, Xdamage etc in Requires field whereas another one has all of them in Requires.private field. This affec

Hitting return in Gtk::Entry control doesn't do default action in dialog with Gtk::Notebook

2008-08-20 Thread Garth's KidStuff
Hi All, I have a dialogs with a Gtk::Entry control in a Gtk::Notebook and -- unlike other Gtk::Entry controls in dialogs without notebooks -- if I set: m_IDOK.set_flags(Gtk::CAN_DEFAULT); m_IDOK.grab_default(); ... m_ENTRY.set_activates_default(true); // Enter while editing should act

Re: Why the Timer doesn't work? (about g_timeout_add())

2008-08-20 Thread Tor Lillqvist
Look at this: > static void timer_1_test(gpointer data) >g_timeout_add(1000, (GSourceFunc)timer_1_test, cw); Then look at the documentation for GSourceFunc: http://library.gnome.org/devel/glib/stable/glib-The-Main-Event-Loop.html#GSourceFunc . Notice anything? --tml

Why the Timer doesn't work? (about g_timeout_add())

2008-08-20 Thread Lazy Fox
I copy my source files "CurveWindow.h" and "testCurveWindow.cpp" below. And attach them in this mail. You can compile them by: $ g++ testCurveWindow.cpp -o testCurveWindow `pkg-config --cflags --libs gtk+-2.0` In this application, I create an 1 second timer to draw a moving line. But in the functi

RE: Question regarding the dependency of GDK on other libraries

2008-08-20 Thread Kumar Siddharth
The first one can be considered as core dependencies for GTK/GDK. Second list is more like add-ons like compositing manager etc for Alpha/blending. Regards Siddharth -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ruchi Lohani Sent: Wednesday, August 20, 20