Re: Rebooting the System

2006-04-11 Thread Guy Rouillier
Sandeep KS wrote: Hello everyone, I am doing a project using GTK which needs rebooting of the system. When the code is executed, the user is asked to select some details. After he enters all the details and clicks on the OK button, i need to save all the details and reboot the system. A

Re: Rebooting the System

2006-04-11 Thread Liam R E Quin
On Tue, 2006-04-11 at 21:27 -0700, Sandeep KS wrote: > Hello everyone, > I am doing a project using GTK which needs rebooting of the system. > When the code is executed, the user is asked to select some details. After he > enters all the details and clicks on the OK button, i need to sav

Rebooting the System

2006-04-11 Thread Sandeep KS
Hello everyone, I am doing a project using GTK which needs rebooting of the system. When the code is executed, the user is asked to select some details. After he enters all the details and clicks on the OK button, i need to save all the details and reboot the system. After rebooting, i

Refreshing the progressbar

2006-04-11 Thread Sandy K
Hello all, I am using the probress bar to show the progress of some event. Initially i have some text in the progress bar. After the event is complete, i change the text on the progress bar.. But it is not getting changed... But once i minimise the window and then maximise it, the text on the

Re: Differences between kinds of events

2006-04-11 Thread Gnaural
Thanks for the reply. Using gtk_widget_add_events() was a good tip in general, and the order in which I call things too. But unfortunately, they didn't help solve the question I still see. I'll paste a very short program illustrating what I mean below, in which I set-up a button-press and a key-p

Re: Modal windows behaviour

2006-04-11 Thread Liam R E Quin
On Tue, 2006-04-11 at 12:17 -0300, Juan Pablo wrote: > . > I made a program with a main window which opens a dialog and this > dialog opens another dialog. > The two dialogs are set modal. I know your programming question was answered... but you might also like to consider how hard it would be to

Re: Modal windows behaviour

2006-04-11 Thread gaof
Hi, gtk_window_set_transient_for() maybe helps you. > > Hi list. > I made a program with a main window which opens a dialog and this > dialog opens another dialog. > The two dialogs are set modal. > The first dialog is on top of the main window whatever, but the second > can be hided behind the f

Re: removing rows from a table

2006-04-11 Thread Sander Marechal
Sander Marechal wrote: > Hello all, > > I'm creating a game and I am using a GtkTable to display a table with scores in them. After every round I add a new row to the table and display a new series of values in the cells (using GtkLabels). > > When a player starts a new game, I need to reset t

Crashes with GTK 2.8.12 and above

2006-04-11 Thread Enrico Tröger
Hi, I have some problems with newer GTK versions(2.8.12 and above) and my application(http://geany.uvena.de). It crashes with segmentation faults inside GTK. With GTK 2.8.10, it works at its best. I and some other people tested it with GTK 2.8.12, 2.8.13 and 2.8.16 and crashes randomly. This means

Re: Choosing a parent class

2006-04-11 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/11/2006 2:00 PM, Andreas Kotowicz wrote: > On Tue, 2006-04-11 at 17:02 -0400, Tristan Van Berkom wrote: >> Andreas Kotowicz wrote: >> [...] >>> ok, I think I understand now. but somehow it seems that my class has >>> some mistake in it (see attach

Re: Choosing a parent class

2006-04-11 Thread Andreas Kotowicz
On Tue, 2006-04-11 at 17:02 -0400, Tristan Van Berkom wrote: > Andreas Kotowicz wrote: > [...] > > ok, I think I understand now. but somehow it seems that my class has > > some mistake in it (see attachment). I'm calling it like this in my > > code: > > > > > > . > > . > > window->priv->o

Re: Choosing a parent class

2006-04-11 Thread Tristan Van Berkom
Andreas Kotowicz wrote: [...] ok, I think I understand now. but somehow it seems that my class has some mistake in it (see attachment). I'm calling it like this in my code: . . window->priv->object = app_calendar_new (); gtk_box_pack_end (GTK_BOX (main_box), GTK_WIDGET(window->priv->

Re: Differences between kinds of events

2006-04-11 Thread Tristan Van Berkom
Gnaural wrote: I ultimately just used g_signal_connect with the main window to catch keypresses. But it wasn't clear to me why I couldn't get g_signal_connect to handle keyboard events for a drawing area. Any explanation would be appreciated. You should use gtk_widget_add_events() instead (in

Re: Choosing a parent class

2006-04-11 Thread Andreas Kotowicz
On Tue, 2006-04-11 at 19:53 +0200, David Necas (Yeti) wrote: > Inherit from the class the widget actually *is*. If you > inherit from GtkFoo, your widget will inherit the properties > and methods (this is what inheritance is about) -- > gtk_foo_blow_up() can be expected to work with your new > wid

Differences between kinds of events

2006-04-11 Thread Gnaural
I am trying to get a handle on some basic aspects of event handling. In particular, I can't quite figure-out why a drawing area (created with gtk_drawing_area_new ()) can handle mouse-clicks set up with a g_signal_connect call for "button_release_event", but not keyboard input setup with the same g

Re: Choosing a parent class

2006-04-11 Thread David Necas (Yeti)
On Tue, Apr 11, 2006 at 07:35:41PM +0200, Andreas Kotowicz wrote: > I created a composite widget which consists of two frames, one of which > holds a calendar and a second one which has some buttons. I now ask > myself what is the right parent class to choose from. Is it GtkFrame? > Why can't I jus

Re: Choosing a parent class

2006-04-11 Thread Michael L Torrie
On Tue, 2006-04-11 at 19:35 +0200, Andreas Kotowicz wrote: > I created a composite widget which consists of two frames, one of which > holds a calendar and a second one which has some buttons. I now ask > myself what is the right parent class to choose from. Is it GtkFrame? > Why can't I just choos

Choosing a parent class

2006-04-11 Thread Andreas Kotowicz
I created a composite widget which consists of two frames, one of which holds a calendar and a second one which has some buttons. I now ask myself what is the right parent class to choose from. Is it GtkFrame? Why can't I just choose GtkWidget? are there any rules which classes to choose from for c

Modal windows behaviour

2006-04-11 Thread Juan Pablo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi list. I made a program with a main window which opens a dialog and this dialog opens another dialog. The two dialogs are set modal. The first dialog is on top of the main window whatever, but the second can be hided behind the fist dialog but not be

Adding popdown menu list in GtkEntry

2006-04-11 Thread Amitesh Singh
Hi I want to show pop down menu list on mouse clicking on the GtkEntry Widget's area.I know it can be done using GtkComboBoxEntry .. how to do it ? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/g

Re: Setting the Visual of a GtkWidget

2006-04-11 Thread Tristan Van Berkom
Taras Zakharko wrote: Hello everyone I am new to GTK+ and to mailing lists so I hope I didn't screw something up :-) I need a possibility of setting the visual for my widgets (for OpenGL rendering). Have you looked at GtkGLExt ? sounds to me like thats the wheel your trying to invent

RE: 3000 toggle buttons in a table?

2006-04-11 Thread Sailaxmi korada
Thanks Yeti, for all your advices. I could implement my 3168 toggle buttons successfully, except that Editable cells don't serve the purpose. Anyways thanks once again for all the support rendered by you. Have a great day Laxmi ___ gtk-app-devel-list

Re: Accessing filenames from file choosers

2006-04-11 Thread Ross Clement
On Tue, 2006-04-11 at 13:09 +0200, David Necas (Yeti) wrote: > No, you should not. GtkFileSelection is the old file > selector, GtkFileChooser is the new one, they are two > completely different classes. You have to use > GtkFileChooser methods, see > > http://developer.gnome.org/doc/API/2.0/gtk

Re: Accessing filenames from file choosers

2006-04-11 Thread David Necas (Yeti)
On Tue, Apr 11, 2006 at 11:48:17AM +0100, Ross Clement wrote: > I create a few file chooser dialogs. These were set up in glade. I can > make the dialogs appear, use them, and then make them disappear again. > What I can't do is fetch the selected filename from the dialog. > > Looking around it se

Accessing filenames from file choosers

2006-04-11 Thread Ross Clement
I should have known my previous good progress would get stuck on some seemingly minor point. I create a few file chooser dialogs. These were set up in glade. I can make the dialogs appear, use them, and then make them disappear again. What I can't do is fetch the selected filename from the dialog.

"Hello world"

2006-04-11 Thread Ross Clement
Hi. I'm now writing my first ever gtk program. I'm using glade to build the interface and am writing the rest of the C code in vi :-) Previously I wrote all my cross-platform GUI programs in Java, but for some audio things I would like to do I would prefer to use C. So writing a gtk application see

newbiee - i want multiple line in a treeview cell, or in a label, &| in a entryfield...

2006-04-11 Thread chabayo
Hello @ all, this is my first post to a mailing list, i ever had 2-3 posts on a newsgroup; and most of all my enlish isnt very familiar in its principles, too - so i try to get teached for success later on. Again hello to all !! As i play with code snippets ( i havnt oversight for more than

Re: interactive buttons inside treeview headings

2006-04-11 Thread ensonic
Hi all, to make t more clear, its multiple items per header. Here comes some ascii art: +-+--+ - - | label1 | label2 | label3 | [B1][B2]| [B1][B2][B3] | ... +-+--+- - - So each treeview header widget is infact: vbox { la