Add a Scrollbar

2007-10-04 Thread omar . crea
A simple question: what is the best way to add a vertical scrollbar to a widget? In my case the widget is a notebook tab containing some frames (it shows many contents), so I have to handle the case in which the frames overlap the tab's height, including a scrollbar to browse them. Thanks in advanc

ComboBox and TreeView issues

2007-10-04 Thread omar . crea
Hi everybody. I obtain the following errors when launching my application that contains a notebook, and in one of its page there are three combobox with the associated treeviews: (when opening the tab) barcode_buttons[2561]: GLIB CRITICAL ** Gtk - gtk_tree_store_get_path: assertion `iter->user_dat

Re: Switch contents in the same window

2007-10-01 Thread omar . crea
Sorry Yeti, but it's not what I'm searching for: I cannot implement GtkAssistant because I'm working on GTK+ 2.6 on an embedded system... Is there another way to obtain what I deserve? Thanks in advance, Omar Quoting [EMAIL PROTECTED]: > Hi everybody. > How can I switch two contents in the same

Fwd: Reading row from a ComboBox

2007-10-01 Thread omar . crea
Thanks Damien, it works fine! - Forwarded message from [EMAIL PROTECTED] - Date: Fri, 28 Sep 2007 16:05:46 +0200 From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Subject: Reading row from a ComboBox To: GTK+ mailing list Hi everybody. I have a problem on reading the act

Switch contents in the same window

2007-10-01 Thread omar . crea
Hi everybody. How can I switch two contents in the same main window? I have a tabbed application, and I want to create a searching page where, when I click the "find" button, it switches and showes the search results, and when I click the "Back" button it returns to the searching page again (for a

[no subject]

2007-09-28 Thread omar . crea
Hi everybody. How can I switch two contents in the same main window? I have a tabbed application, and I want to create a searching page where, when I click the "find" button, it switches and showes the search results, and when I click the "Back" button it returns to the searching page again (for a

Reading row from a ComboBox

2007-09-28 Thread omar . crea
Hi everybody. I have a problem on reading the actually displayed content of a combobox. I created a combobox that contains some strings and I want to recover the actually displayed string when i press the "Find" button (that is a button in the same window of the combobox). The problem is that the '

Re: GtkDialog problems again

2007-08-29 Thread omar . crea
Thanks a lot, Jim! Now it works!!! Quoting Jim George <[EMAIL PROTECTED]>: > On 8/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi everybody. > > I need a dialog in my application that simply show a label (so without any > > button) and then hide itself after some processing occurred. >

GtkDialog problems again

2007-08-27 Thread omar . crea
Hi everybody. I need a dialog in my application that simply show a label (so without any button) and then hide itself after some processing occurred. The problem is that I can't send any :response signal to the dialog, so it remains blocked in the loop after gtk_dialog_run has been called. I tried

GtkDialog issues

2007-07-30 Thread omar . crea
Hi everybody. I want to use a GtkDialog to show a message in my application when the user clicks a particular button; I tried to implement this dialog in the program, but it appears only when the action is finished, and not when it begins. I insert here a snippet of the source code: /* dialog crea

RE: Running external program inside a widget

2007-07-13 Thread omar . crea
Thanks a lot Kumar! It seems not quite simple, also because I haven't the browser source, but I'll try with another browser. Quoting Kumar Siddharth <[EMAIL PROTECTED]>: > > Hi, > > You can place the call in any appropriate event handler. Also, you will have > to create a socket in your GTK prog

RE: Running external program inside a widget

2007-07-06 Thread omar . crea
Excuse me but I'm new to GTK+: at which moment I have to call the system() function to run the external program I need (a web browser, in this case)? Do I have to use two different source files to implement this mechanism (run the app as a GtkPlug, give it the ID of the GtkSocket, ecc.)? If not, wh

Running external program inside a widget

2007-07-06 Thread omar . crea
Hi everybody. Do anyone know how to include an external program to a widget of the main window? I have a main window containing a notebook, and in one of the notebook's tab I want to show an instance of a browser (Opera) inside a GtkDrawingArea(), and not to show the external program in its own new

Main window refreshing

2007-06-25 Thread omar . crea
I write a little application for an embedded system (Nokia N800) using GTK+ and GStreamer and I need refreshing of the window. When I iconize the application window and then put it in foreground again, the gstreamer flow disappears. I implemented this flow in a drawing area inside the main window.

Re: BadDrawable or BadWindow error

2007-06-13 Thread omar . crea
Fixed... The problem is that the GStreamer pipeline don't free properly when the window's exit button was pressed: it can be fixed using a quit function that frees the pipeline prior to close the GTK main loop. GstElement *pipeline; // global now // prototype void destroy (GtkWidget *, gpointer)

BadDrawable or BadWindow error

2007-06-12 Thread omar . crea
Hi everybody. I wrote a little application combining GTK and GStreamer functions to view the camera input on the window's screen and to take photo (not yet implemented, this is experimental code...). When I launch the application I obtain the following error: "The program 'test2' received an X Win

Notebooks problem

2007-06-11 Thread omar . crea
actually I giving all the tabs a predefined label (with progressive numbers). How can I change the text of a label after it has been created? Thanks a lot! Omar Crea This message was sent using IMP, the Internet Messaging Program