Re: 3000 toggle buttons in a table?

2006-04-04 Thread David Necas (Yeti)
On Tue, Apr 04, 2006 at 10:55:08AM +0530, Sailaxmi korada wrote: Perhaps, my application requires 16 toggle buttons to be placed in each row, that represent a hex value. So I need not write 3000 callbacks for them, instead with one call back I can manage to calculate the hex value, based on

Re: Update text label

2006-04-04 Thread David Necas (Yeti)
On Mon, Apr 03, 2006 at 08:00:57PM -0700, 3saul wrote: I'm very very new to GTK programming. I've created a button which get's it's label from a variable. The text in the variable will change and I need to find out how to 'refresh' the label on the button. gtk_button_set_label() Please at

RE: 3000 toggle buttons in a table?

2006-04-04 Thread Sailaxmi korada
That was great David, it was doing the task in fraction of seconds... Why I said Tree view doesn't fit my requirement was, in a row I've to display label, 15 toggle buttons, text entry... Like this I've to fill the widgets in 178 rows. Displaying label is fine with List store... But how can I

Re: 3000 toggle buttons in a table?

2006-04-04 Thread David Necas (Yeti)
On Tue, Apr 04, 2006 at 01:47:10PM +0530, Sailaxmi korada wrote: Why I said Tree view doesn't fit my requirement was, in a row I've to display label, 15 toggle buttons, text entry... Like this I've to fill the widgets in 178 rows. Displaying label is fine with List store... But how can I

GtkTreeView Bug

2006-04-04 Thread Juan Pablo
Hello list. Ive downloaded the latest -all needed- gtk and still the same problem. When there are text editable cells and one is being edited, if I click in another editable cell, the first doesn't stop the edition. Instead I have two editable cells being edited, and it some times ends by

Re: text tag table

2006-04-04 Thread Eduardo M KALINOWSKI
ashley maher wrote: G'day, In the references to the text widget of the GTK API it says to refer to the gtk-demo for examples. These examples are very good. Using the Multiple Views example I can save a gtk text buffer to, and retrieve, from a text file. I can change the look and feel using

Re: Update text label

2006-04-04 Thread 3saul
Thanks a lot. However it's for a menu not a button ...here is some code menubar2 = gtk_menu_bar_new (); gtk_widget_show (menubar2); gtk_box_pack_start (GTK_BOX (hbox2), menubar2, FALSE, FALSE, 0); time_date1 = gtk_menu_item_new_with_mnemonic (MENU); gtk_widget_show

Re: Update text label

2006-04-04 Thread David Necas (Yeti)
On Tue, Apr 04, 2006 at 05:01:06AM -0700, 3saul wrote: Thanks a lot. However it's for a menu not a button... I'm sorry (there is nothing like menu button, I chose the wrong half of the term). This line: time_date1 = gtk_menu_item_new_with_mnemonic (MENU); I've changed to time_date1 =

Segmentation Fault

2006-04-04 Thread Sandeep KS
Hello everyone, I have written a program using GTK which executes some shellscripts in the background...After the shellscripts complete executing, a window is displayed showing the completion details At this time segmentation fault occurs. Is there anyway to trace the exact cause of

show/hide widget within other widget

2006-04-04 Thread Andreas Kotowicz
I have a main.c file like this: int main(int argc, char **argv) { GnomeProgram *program; program = gnome_program_init(bla, bla, ..) create_mainwindow(); gtk_main(); return 0; } where create_mainwindow reads like following: void create_mainwindow (void) { GnomeApp *window; window

Segmentation Fault

2006-04-04 Thread Fernando ApesteguĂ­a
Are you dealing with threads? Maybe it's a problem of concurrency. Could you be more precise? Best regards! -- Forwarded message -- From: Sandeep KS [EMAIL PROTECTED] Date: 04-abr-2006 19:31 Subject: Segmentation Fault To: Gtk gtk-app-devel-list@gnome.org Hello everyone,

show/hide widget within other widget

2006-04-04 Thread Fernando ApesteguĂ­a
If you expected the user works with the calendar I think you can create it at start up. If using the calendar is not usual, maybe you could delay the creation and when the user enables it, create the calendar and place it in your window. Creating all widgets at start up is faster for you.. but

Re: Notification area application

2006-04-04 Thread James Scott Jr
On Sun, 2006-04-02 at 07:37 -0700, BobS0327 wrote: I am trying to develop an application that resides in the notification area of Fedora 5 and version 2.14.0 of the Notification area. I have found some sample code on the internet for a base system tray (notification area) application. It

api reference

2006-04-04 Thread ashley maher
The api has the following reference: http://www.gtk.org/api/2.6/gtk/TextWidget.html I have everything in this reference working. However after you have made a mark of a section of text in a buffer how do you save this so if you save the text in a file when you open this file again all the text

Re: Segmentation Fault

2006-04-04 Thread John Vetterli
On Tue, 4 Apr 2006, Sandeep KS wrote: I have written a program using GTK which executes some shellscripts in the background...After the shellscripts complete executing, a window is displayed showing the completion details At this time segmentation fault occurs. Is there anyway to trace

Re: Segmentation Fault

2006-04-04 Thread Wallace Owen
On Tue, 2006-04-04 at 19:38 -0400, John Vetterli wrote: On Tue, 4 Apr 2006, Sandeep KS wrote: I have written a program using GTK which executes some shellscripts in the background...After the shellscripts complete executing, a window is displayed showing the completion details At this

Funcamentals of GTK

2006-04-04 Thread 3saul
OK I'm having some trouble understanding how a GTK application actually works. I've created a few terminal based applications in C for linux. When I want my application to continually perform a particular function I set up a loop. Within this loop I call the functions to update data etc So

Re: Fundamentals of GTK

2006-04-04 Thread Michael Torrie
On Tue, 2006-04-04 at 19:20 -0700, 3saul wrote: OK I'm having some trouble understanding how a GTK application actually works. I've created a few terminal based applications in C for linux. When I want my application to continually perform a particular function I set up a loop. Within this

Re: Fundamentals of GTK

2006-04-04 Thread 3saul
Thanks for the information...that was very helpful. So in terms of how the main function works in a GTK app is it like this: int main( int argc, char *argv[] ) - start here and work down to... gtk_main (); - check to see if anything needs to be done for the gui then loop back up to int main(