Re: Reference to a C++ object in GTK+ callbacks

2005-12-14 Thread Paul Santa Maria
". It works fine now - thanx again! --- Stephen Pollei <[EMAIL PROTECTED]> wrote: > On 12/13/05, Paul Santa Maria <[EMAIL PROTECTED]> wrote: > > I'm coding in C++, but using the "raw" GTK+ C > > libraries. > I'm doing similiar f

Reference to a C++ object in GTK+ callbacks

2005-12-13 Thread Paul Santa Maria
Hi - I'm using the GTK+ 2.6.4 that came with Suse 9.3. I'm coding in C++, but using the "raw" GTK+ C libraries. I'm trying to pass a pointer to one of my C++ classes into a callback, so that I can call a method on that class. The code looks like this: 1. less hbaview.h => -- c

Polling is bad...

2005-07-15 Thread Paul Santa Maria
Hi - Just FYI, "running another function in the background... to be called every some milliseconds..." can be *extremely* detrimental to performance. It could easily make your program a *very* unpleasant thing to be running in a production environment. Often times, there's no way to avoid it.

How can I display the buttons in a dialog's action area vertically?

2005-06-22 Thread Paul Santa Maria
Hi - I have a pop-up window (a GtkDialog) that presents a list of about a dozen choices. I want to display these choices vertically. The action area seems to be an HBox. Any suggestions? Here's the basic code: m_dialog1 = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (m_dialog1), ti

Any way to disable window decorations (including "X" button)?

2005-06-08 Thread Paul Santa Maria
Hi - I'm implementing a kiosk-style application in GTK+, and it's important to *disable* window resize, minimize, maximize, etc. Is there any way to simply remove window decorations (especially the "X" close button) from a GTK+ window? Thank you in advance .. PSM

Re: file selection

2005-05-18 Thread Paul Santa Maria
Hi - No - actually, all you need to do is: 1. Launch the file selection dialog 2. Check the return value I've cut/pasted an example below. 'Hope that helps .. PSM === // Prototype GtkWidget * mk_file_chooser (); /

how to implement a modal window: gtk_run

2005-05-08 Thread Paul Santa Maria
Hi - 1. Register an event handler with your pushbutton. 2. In the event handler, create your dialog as you normally would ... 3. ...but use "gtk_run()" instead of "gtk_widget_show()". Hope that helps .. PSM > Gurus, > > I want to implement below behavior > > 1.main window has a button.

Re: gtk_file_selection_new vs gtk_file_chooser_dialog_new

2005-05-06 Thread Paul Santa Maria
Have you considered trying "gtk_file_selection_new()" instead? --- [EMAIL PROTECTED] wrote: > -- > > Message: 7 > Date: Fri, 6 May 2005 08:48:26 -0400 (EDT) > From: isil light <[EMAIL PROTECTED]> > Subject: gtk_file_chooser_dialog_new > To: gtk-app-devel-list@gnome.o

Can't display image: fixed!

2005-05-04 Thread Paul Santa Maria
Hi - I just answered my own question: 1. I need to *keep* the GKT+ image I allocated when the program started 2. I simply need to call gtk_image_set_from_pixbuf () to assign it the new pixbuf from the new file. Everything is working fine now! ___

Can't get image to display!

2005-05-04 Thread Paul Santa Maria
Hi - I know this has a really, really simple answer, but... 1. I have a GTK+ file viewer application that needs to handle multiple different image file types (.jpg, .png, proprietary, etc etc) 2. When the user clicks the "File, Open" menu option, I pop up a GtkFileSelection dialog

DevHelp on SuSE Linux

2005-04-11 Thread Paul Santa Maria
Hi - Over the weekend, I posted a question about a problem I was having running the SuSE-built RPM for DevHelp 7.0: devhelp (under default KDE 3.1 desktop, SuSE 8.2) => (devhelp:2783): GLib-GObject-CRITICAL **: file gobject.c: line 1319 (g_object_ref): assertion `G_IS_OBJECT (object)' failed ..

Browseable On-line developer documentation?

2005-04-10 Thread Paul Santa Maria
Hi - I'm a newbie who's been playing with GTK for a few weeks now. The API looks really great. The HTML documentation (generated from DocBook?) appears, as far as I can tell, to be quite excellent. So why the heck can't you search and browse the documentation as easily as, for example, hitting

GTK+ to multiple displays: use

2005-04-06 Thread Paul Santa Maria
Hi - I was trying to adapt the GDK demo from "Multi-Head Support Overview", and was getting a link unresolved on "gdk_display_new()". The fix was to substitute "gdk_display_open()" instead: THIS CODE SUCCESSFULLY REDIRECTS TO SPECIFIED MONITOR: ---

Link error: gdk_display_new

2005-04-05 Thread Paul Santa Maria
Hi - I'm a complete newbie to GTK+: We're writing a Linux-based app; one of our requirements is that the GUI must be able to address multiple different video cards independently. SuSE 9.2 recognizes each of the three video cards in our system, and addresses them as: unix:0.0 unix:0.1 ...