Re: gdk_threads_leave in gtk callback ?

2006-04-03 Thread Tristan Van Berkom
Gus Koppel wrote: [...] BTW, can I use g_idle_add in non-main thread without locking ? I am not sure. The documentation is not clear about this and I havn't had the time to examine the sources of that yet. To be safe, you should wrap a simple GStaticMutex lock around the call. g_idle_add()

Gnome Terminal Alt+# Tab Switching

2006-04-03 Thread Tristan Sloughter
I wrote this to the gnome desktop devel mailing list and got no response. So, I thought I'd try here: I need to find out how gnome-terminal gets around passing keys to Bash. I write a terminal Tilda that is also in gtk+ and uses vte. I want to be able to ahve Alt+1, Alt+2, ... switch between

3000 toggle buttons in a table? (was: Button Vs Toogle Button)

2006-04-03 Thread Gus Koppel
Sailaxmi korada wrote: My application has to display around 3000 toggle buttons, in 178 rows of a table. It is taking almost 12 seconds to do so. Can you help me out in reducing this time. Here are the two steps that are consuming maximum time gtk_button_set_label

Re: 3000 toggle buttons in a table?

2006-04-03 Thread Tristan Van Berkom
Gus Koppel wrote: Sailaxmi korada wrote: My application has to display around 3000 toggle buttons, in 178 rows of a table. It is taking almost 12 seconds to do so. Can you help me out in reducing this time. Here are the two steps that are consuming maximum time gtk_button_set_label

Re: 3000 toggle buttons in a table?

2006-04-03 Thread David Necas (Yeti)
On Mon, Apr 03, 2006 at 01:40:25PM -0400, Tristan Van Berkom wrote: Why not use GtkCellRendererToggle w/ GtkTreeView GtkListStore ? Or use a GtkListStore to select your data item and some togglebuttons and whatever other control widgets below your treeview (i.e. the single toggle button

Cut Copy paste

2006-04-03 Thread prabhakar kushwaha
hi thanks for your Drag and Drop tutorial.. it helps me a lot.. can you send me link for Cut Copy and Paste Tutorial.. thanks -- Prabhakar IV Year B.tech (Computer Science) I. E. T. Lucknow ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: 3000 toggle buttons in a table?

2006-04-03 Thread Gus Koppel
Tristan Van Berkom wrote: Gus Koppel wrote: Sailaxmi korada wrote: My application has to display around 3000 toggle buttons, in 178 rows of a table. It is taking almost 12 seconds to do so. Can you help me out in reducing this time. Here are the two steps that are consuming

RE: Cut Copy paste

2006-04-03 Thread Niaz Jalal
hi. could i get the link for both of these tutorials mentioned below? thanks, -- niaz -Original Message- From: [EMAIL PROTECTED] on behalf of prabhakar kushwaha Sent: Mon 4/3/2006 1:28 PM To: mailing list Subject: Cut Copy paste hi thanks for your Drag and Drop tutorial.. it helps me a

Re: 3000 toggle buttons in a table?

2006-04-03 Thread David Necas (Yeti)
On Mon, Apr 03, 2006 at 11:23:51PM +0200, Gus Koppel wrote: On the other hand, filling the visible area of a treeview with 3000 toggles would still result in suboptimal display performance. Suboptimal maybe, OTOH if you try the example I attached to my previous mail, you can see we are now in

text tag table

2006-04-03 Thread ashley maher
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 tags. All modified from

put a button on a menuitem, when click mouse button on the menuitem, it seems that button does not receive it

2006-04-03 Thread cheng bo
code snipper: GtkMenu * menu = gtk_menu_new( ) ; GtkMenuItem * item = gtk_menu_item_new( ); GtkWideget * b = gtk_button_new_with_label(asdada); gtk_containter_add((GtkContainer*)item, b ) ; gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); g_signal_connect(G_OBJECT(b), entry,

Update text label

2006-04-03 Thread 3saul
Hi, 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. Thanks -- View this message in context:

popup menu

2006-04-03 Thread prabhakar kushwaha
hi is it there any widget like popup menu Gtk which comes when we press third button of mouse.. if not please tell me the widgets that we should use in order to find pop up menu like facility by clicking third button of mouse. thanks with regards.. -- Prabhakar IV Year B.tech (Computer

Re: popup menu

2006-04-03 Thread Guy Rouillier
prabhakar kushwaha wrote: hi is it there any widget like popup menu Gtk which comes when we press third button of mouse.. if not please tell me the widgets that we should use in order to find pop up menu like facility by clicking third button of mouse. thanks with regards.. gtk_menu_new();

RE: 3000 toggle buttons in a table?

2006-04-03 Thread Sailaxmi korada
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 the position of toggle button. Tree view doesn't fit my requirement.

Re: graphics using GTK+

2006-04-03 Thread Dominic Lachowicz
You might want to check out the GOffice graphing library. Gnumeric and GnuCash both use it. cvs co goffice from Gnome's CVS. Best, Dom On 4/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi!! I've a problem to solve... I need to graph some points in a graphic using GTK+. And after graph

Virtualizing paint functions

2006-04-03 Thread Anders Carlsson
Hello, for the Quartz backend I'd like to use the native versions of some things GTK+ normally provides. These are: * Double buffering (gdk_window_begin/end_paint) * Invalidating regions (gdk_window_invalidate_region, gdk_window_process_updates) In order to do that I'd like to make it

Re: Virtualizing paint functions

2006-04-03 Thread Owen Taylor
On Mon, 2006-04-03 at 23:30 +0200, Anders Carlsson wrote: Hello, for the Quartz backend I'd like to use the native versions of some things GTK+ normally provides. These are: * Double buffering (gdk_window_begin/end_paint) * Invalidating regions (gdk_window_invalidate_region,

Re: Virtualizing paint functions

2006-04-03 Thread Anders Carlsson
Owen Taylor skrev: On Mon, 2006-04-03 at 23:30 +0200, Anders Carlsson wrote: Hello, for the Quartz backend I'd like to use the native versions of some things GTK+ normally provides. These are: * Double buffering (gdk_window_begin/end_paint) * Invalidating regions