Does thread share FD?

2005-07-08 Thread 顺珉 吴
I am using gthread to create a multi-thread program.Every thread will open many sockets, and I use select() to handle them. Now I find in linux, a fd_set could only accept 1024 fd. The number of sockets one thread open can be restricted, but if all threads in a process share the same fd number,

Re: How to draw a custom border across multiple cells in TreeView?

2005-07-08 Thread Stefan Kost
Hi Nickolai, Stefan, Thanks for the information. Looks like the second option is simpler. By chance, is there any sample code that illustrates this? I have a hard time imagining how DrawingArea, for example, could be forced to draw its content inside TreeView. Thanks much, Nickolai I

Re: window and children resizable

2005-07-08 Thread Luca Cappa
Greg Breland wrote: On Thu, 2005-07-07 at 08:06, Luca Cappa wrote: Hello all, I found that if a create a window and I put inside this window a widget, the window could not resize itself to a size smaller than the one requested by its child. How to overcome this problem?

Gtk Popup Menu accelerators not working

2005-07-08 Thread Gaurav Jain
Hi, I'm creating a pop-up menu which is shown when I click inside a button. I added accelerators to the menu items (CTRL + B), but these do not work. If I explicitly pop up the menu and then click on the menu item, then the activate signal is called for the menu item, but not if I use the

Re: Gtk Popup Menu accelerators not working

2005-07-08 Thread Daniel Pekelharing
On Fri, 2005-07-08 at 13:32 +0530, Gaurav Jain wrote: Hi, I'm creating a pop-up menu which is shown when I click inside a button. I added accelerators to the menu items (CTRL + B), but these do not work. If I explicitly pop up the menu and then click on the menu item, then the activate

Re: About GTK low level APIs

2005-07-08 Thread uzytkownik22
Hi I am interested in knowing the low level APIs used by GTK which talk to the frame buffer .. does GTK directly do that or does it uses any base library for that .. Thank You Read about GTK and GDK(and GdkImage or something like that). It's extension allow OpenGL in GTK... Regards.

Re: g_io_channel

2005-07-08 Thread uzytkownik22
I need to send a data structure over an io_channel. In the reference manual, I found that the only available instruction to write data in a channel is: GIOStatus g_io_channel_write_chars(GIOChannel *channel, const gchar *buf,

Re: Gtk Popup Menu accelerators not working

2005-07-08 Thread Gaurav Jain
Thank you so much! Yes, that worked. -Gaurav On 7/8/05, Daniel Pekelharing [EMAIL PROTECTED] wrote: On Fri, 2005-07-08 at 13:32 +0530, Gaurav Jain wrote: Hi, I'm creating a pop-up menu which is shown when I click inside a button. I added accelerators to the menu items (CTRL + B), but

Re: Gtk Popup Menu accelerators not working

2005-07-08 Thread Gaurav Jain
Hi Again, I had another query in relation to Menu accelerators. I need to add more than one accelerator to the same menu item. Say, CTRL + B, and CTRL + I, both added to the activate signal. Now when I press CTRL + B, the activate callback is called, but there seems to be no way for me to know

Re: About GTK low level APIs

2005-07-08 Thread Tor Lillqvist
I am interested in knowing the low level APIs used by GTK which talk to the frame buffer .. does GTK directly do that or does it uses any base library for Read the source code? As long as we talk about the stable, supported GTK targets (X11 and Win32), well, the target names pretty much tell

Re: g_io_channel

2005-07-08 Thread Tor Lillqvist
Vivien Malerba writes: if it's on the same machine, then no problem!). ...as long as the writer and reader processes are compiled with the same compiler and compiler options, that is. --tml ___ gtk-app-devel-list mailing list

Re: Re: [gdk] How use gdk-pixbuf...

2005-07-08 Thread Michal Porzuczek
GdkPixmap *pixmap; GdkPixbuf *pixbuf; GdkGC *gc; pixbuf = pixmap = gdk_pixbuf_new(NULL, gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height(pixbuf),

Re: g_io_channel

2005-07-08 Thread The Saltydog
On 7/8/05, Vivien Malerba [EMAIL PROTECTED] wrote: Beware however that depending on the contents of your structure, you may have some problems if you exchange data this way between machines which do not have the same endian-ness (if it's on the same machine, then no problem!). should not be

Re: g_io_channel

2005-07-08 Thread John Vetterli
On Fri, 8 Jul 2005, Vivien Malerba wrote: On 7/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: g_io_channel_write_chars(channel, (const gchar *)your_struct, sizeof (your_struct), written, errors); Beware however that depending on the contents of your structure, you may have some problems if

Re: Does thread share FD?

2005-07-08 Thread John Vetterli
On Fri, 8 Jul 2005, [gb2312] 顺珉 吴 wrote: I am using gthread to create a multi-thread program.Every thread will open many sockets, and I use select() to handle them. Now I find in linux, a fd_set could only accept 1024 fd. The number of sockets one thread open can be restricted, but if all

tree append

2005-07-08 Thread srinivas
hi; i have a pbm with displaying treeview. i created tree using glade.later using lookup and list store i created view and model. now when i appending tree, every time list is creating again. ofcourse i displayed treeview in button press event (with out that i can't see the tree it self).

GLib 2.7.2 released

2005-07-08 Thread Matthias Clasen
GLib 2.7.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.7/ glib-2.7.2.tar.bz2 md5sum: df221afd5f475ba99f2afc1320f7693e glib-2.7.2.tar.gz md5sum: 1554be4c910e3f5d1357c7bf93748525 This is the second development release leading up to GLib 2.8. Notes: * This is unstable

GTK+ 2.7.2 released

2005-07-08 Thread Matthias Clasen
GTK+ 2.7.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.7/ gtk+-2.7.2.tar.bz2 md5sum: d8b78b20725eb38dcc545a0499aa68ff gtk+-2.7.2.tar.gz md5sum: 92ae255168642787582539437c2eae3c This is the third development release loading up to GTK+ 2.8. Notes: * This is unstable

Re: How to hide initialigation screen in FC3

2005-07-08 Thread Christopher Anderson
Hi there. No offense, but I think this question would be more appropriately asked at: www.linuxquestions.org or www.fedoraforum.org On 7/7/05, harshavardhanreddy mandeepala [EMAIL PROTECTED] wrote: HI I am using Linux Fedora Core 3. When we swith on linux system it will show booting

Re: What's the deal with gtkglarea?

2005-07-08 Thread Christopher Anderson
Madeningly, it is not included with Fedora, or Mandrake. Fortunately, on Mandrake at least, it is easy to install with urpmi (assuming correct repositories are set up). I assume it can also easily be installed on Fedora with yum. Chris Anderson On 7/7/05, Ken Siersma [EMAIL PROTECTED] wrote:

design advise needed/toolbar question

2005-07-08 Thread Paul Pogonyshev
Hello. Suppose I have a number (like 8) of modes of operation for a program. They all work in similar fashion, so you could switch between them seemlessly. Much like different tools in The GIMP. However, I don't want to put a number of buttons in the toolbar for the modes, partially because I

GtkTreeStore in a ComboBox

2005-07-08 Thread David
I'm trying to get a TreeStore in a ComboBox to look like I want but haven't been able to do so. I'm trying to design a form to be used with a database of business records. I have categories under Income and Expense, which I wish to be separated from each other. I can get the setup I want by

Re: GtkTreeStore in a ComboBox

2005-07-08 Thread Matthias Clasen
On Fri, 2005-07-08 at 20:58 -0500, David wrote: I'm trying to get a TreeStore in a ComboBox to look like I want but haven't been able to do so. I'm trying to design a form to be used with a database of business records. I have categories under Income and Expense, which I wish to be

Re: GtkTreeStore in a ComboBox

2005-07-08 Thread David
On Fri, Jul 08, 2005 at 10:13:47PM -0400, Matthias Clasen wrote: On Fri, 2005-07-08 at 20:58 -0500, David wrote: I'm trying to get a TreeStore in a ComboBox to look like I want but haven't been able to do so. [... getting top-level row of TreeStore non-selectable ... ] Make the toplevel

Re: design advise needed/toolbar question

2005-07-08 Thread Soeren Sandmann
Paul Pogonyshev [EMAIL PROTECTED] writes: However, it seems that in the new (2.4 and up) toolbar API there is no easy way to add a random widget to a toolbar (well, I could subclass GtkToolItem, but...) Any suggestions? A different design might solve a problem as well as a simple way of

Re: gobject thread safety

2005-07-08 Thread Alexander Larsson
On Thu, 2005-07-07 at 12:02 -0400, Matthias Clasen wrote: Tim, congratulations to the new job. Does that mean you get paid now to review gobject patches ? That would be awesome :-) I'd like to make one last attempt to get some motion on the gobject thread safety bugs,

Re: gobject thread safety

2005-07-08 Thread Andy Wingo
Hi Alex, On Fri, 2005-07-08 at 09:54 +0200, Alexander Larsson wrote: It would also be extremely sweet to get the atomic refcount patches in: http://bugzilla.gnome.org/show_bug.cgi?id=166020 Whomever this is blocking on, please please try to move it forward. It's blocking on Wim, who just

Re: More on embedding combo models in a treestore

2005-07-08 Thread muppet
(cc'ing gtk-devel-list to see if anybody can confirm whether this is a bug in gtk+ or behaving as designed.) On Jul 8, 2005, at 12:22 AM, Daniel Kasak wrote: If I edit a cell with a combo and then click into another row, however, things go screwy. The problem seems to be that by clicking

GLib 2.7.2 released

2005-07-08 Thread Matthias Clasen
GLib 2.7.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.7/ glib-2.7.2.tar.bz2 md5sum: df221afd5f475ba99f2afc1320f7693e glib-2.7.2.tar.gz md5sum: 1554be4c910e3f5d1357c7bf93748525 This is the second development release leading up to GLib 2.8. Notes: * This is unstable

GTK+ 2.7.2 released

2005-07-08 Thread Matthias Clasen
GTK+ 2.7.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.7/ gtk+-2.7.2.tar.bz2 md5sum: d8b78b20725eb38dcc545a0499aa68ff gtk+-2.7.2.tar.gz md5sum: 92ae255168642787582539437c2eae3c This is the third development release loading up to GTK+ 2.8. Notes: * This is unstable