Re: allocation returns -1, -1, 1, 1

2002-06-06 Thread Jason Bodnar
> On Thu, 6 Jun 2002 20:21:13 -0500 > "Jason Bodnar" <[EMAIL PROTECTED]> wrote: > > > I'm adding hboxes as needed in a signal handler to hold rows of photo > > thumbnails. The first hbox which is created before the main loop even > > starts returns proper numbers from $widget->allocation but hbox

Re: allocation returns -1, -1, 1, 1

2002-06-06 Thread Jean-Yves Lefort
On Thu, 6 Jun 2002 20:21:13 -0500 "Jason Bodnar" <[EMAIL PROTECTED]> wrote: > I'm adding hboxes as needed in a signal handler to hold rows of photo > thumbnails. The first hbox which is created before the main loop even > starts returns proper numbers from $widget->allocation but hboxes that > ar

allocation returns -1, -1, 1, 1

2002-06-06 Thread Jason Bodnar
I'm using gtk-perl but I think this is general GTK thing. I'm adding hboxes as needed in a signal handler to hold rows of photo thumbnails. The first hbox which is created before the main loop even starts returns proper numbers from $widget->allocation but hboxes that are added during the signal

gtk_adjustment_get_value()

2002-06-06 Thread David J. Singer
OK, it's late and I'm probably going mad. I've been playing around with Gtk Adjustments and have found some useful examples My problem is, everything works just fine until I try and call gtk_adjustment_get_value(), then it gets weird...! My compilation fails with: undefined reference

More info about signals

2002-06-06 Thread Philippe FREMY
Hi, I am trying to understand better the signal stuff of Gtk. I have read the tutorial but I still have some questions. The api reference did not help me much. 1. All the arguments that are received by the function the signal is connected to are set when connecting the signal, right ? I

steal window

2002-06-06 Thread xy s
Hi all, I new a gtk window( gtk_window_new() ) and also I create a X11 window ( XCreateWindow() ). And now, thw window can be displayed on screen. But how can I put the X11 window into the gtk window ? Thanks very much ! Jason __ Do You Yahoo!? Y

A question about menu color. Thank you for respond.

2002-06-06 Thread 海鸥
Hi! all: I want to change the front-ground color of menu, but I can't find the function in GTK library, could you tell me how to do that? thanks! Also, could you tell me how to attach a pixmap to menu or menuitem? thanks! And, I only want to use gtk for this function. face-3.gif

Re: multithreading problem.

2002-06-06 Thread Robert Walker
On Tue, 4 Jun 2002, Paul Davis wrote: > > I called gthread_init() at the beginning of the program > >and the gtk_main() is surrounded by threads_enter(), threads_leave() calls. > > It probably doesn't make any difference but I am using pthreads. > > no, it makes no difference. there's no

Newbie question: # of colors in a pixmap

2002-06-06 Thread Gabriel Chime
What is the number of all possible colors in a pixmap? Is it 2^depth? Thanks in advance. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com ___ gtk-list mail

Re: Wheel Mouse Scrolling

2002-06-06 Thread Vince Busam
>From what I understand (and please speak up if I'm wrong), this is done by the driver. E.g., the application is getting a page up or page down command, not a "mouse wheel up" or "mouse wheel down" command. Thus, you'd have to configure your driver to send different commands. In XFree86, yo

blit'n

2002-06-06 Thread Billy Patton
Please forgive me for not looking at the archive first. I'm multi-tasking just to do this( jumpinging between writing in gtk and testing 4 other programs) I've currently gotten my data to draw to a drawing area. I have the scaling and shifting all done, don't know if it is right, but it works f

Re: gtk_paint_string future

2002-06-06 Thread Soeren Sandmann
Matej Knopp <[EMAIL PROTECTED]> writes: > I can hardly imagine the rendering could undertake some significant > optimization without huge increasing of the memory consumption. > I've mentioned the other possible optimizations but I don't dare to do > it myself (I'm not a GtkTreeView hacker...).

Re: gtk_paint_string future

2002-06-06 Thread Matej Knopp
Dňa St, 2002-06-05 at 22:49, Chris Nystrom napísal: > On 5 Jun 2002, Daniel Elstner wrote: > > > I just can't stand it. That's so damn egoistic. Yes, I honestly hope > > others will be able to help you with the performance problems. But > > performance reasons just can't be taken as an excuse

How can I refresh sorting rules?

2002-06-06 Thread Jarek Dukat
I have a GtkTreeView. I call gtk_tree_sortable_set_default_sort_func() with some function and then gtk_tree_sortable_set_sort_column_id(GTK_DEFAULT_SORT_COLUMN_ID). Sorting works well, but some time later I want to change sorting function to some other one. But calling ...set_default_sort_func aga

Problem with g_io_channel_read_chars

2002-06-06 Thread Andrew E. Makeev
Good day, I am trying to write app that gonna connect to remote host using TCP service. So, I've created connection channel (simple error handling is omitted): m_FileDescriptor = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); connect(m_FileDescriptor, (struct sockaddr *)&m_Addr, sizeof(m_Ad

Tooltip in a grafigwidget

2002-06-06 Thread Bernd Demian
Hi all, I have a little problem, I show in a gtk2 application in a drawable some objects and I want show the user the name of the object when he goes over the object with the pointer and wait for 1 or 2 second. I have no idea which widget i have to take for this task. I think tooltips are not fl

Re: gtk_paint_string future

2002-06-06 Thread Matej Knopp
Dňa St, 2002-06-05 at 22:18, Daniel Elstner napísal: > Am Mit, 2002-06-05 um 21.21 schrieb Matej Knopp: > > > > I'm writing an application and have chosen Gtk+ 2.0 for the gui. During > > the programming I came to a very significant problem. The main window > > consists of a pane with GtkTextView