Re: Can't find _nl_msg_cat_cntr in GTK+-1.2.8 Configure

2001-01-14 Thread Havoc Pennington
"Andrew Mirsky" <[EMAIL PROTECTED]> writes: > When installing GTK+-1.2.8, and it trys to run the test for GLIB > compliance, I get the following error message: > > Undefined first referenced > symbol in file > _nl_msg_cat_cntr

Re: Obtaining a location on a Drawing Area via a mouse click.

2001-01-15 Thread Havoc Pennington
Colin Thomas <[EMAIL PROTECTED]> writes: > > I would like to be able to click on a Drawing area and extract > the cursors position, and possibly drag-select over its suface. > > Are there any tutorials on this? > Look at the "scribble" example in the GTK tutorial (on www.gtk.org). Havoc ___

Re: question about double using a thread

2001-01-16 Thread Havoc Pennington
Ronald Bultje <[EMAIL PROTECTED]> writes: > On 2001.01.16 21:04:21 +0100 Timothy M. Shead wrote: > > Ronald Bultje wrote: > > > > > I have tried it yesterday The application dumps core directly at > > > startup, I probably am doing something wrong. What? By the way, it > > compiles > > > fin

Re: object persistence

2001-01-16 Thread Havoc Pennington
Jeff Shipman <[EMAIL PROTECTED]> writes: > Is there any form of object persistence in Glib? > I would like to write a GList to a file without > having to determine a format and then also have > to parse it afterwards. > No, no support for that. (If you think about it you'll realize that GLib has

Re: clist: avoiding overhead with multiple selections

2001-01-18 Thread Havoc Pennington
Christian Kreibich <[EMAIL PROTECTED]> writes: > > I have a clist widget that causes a relatively costly operation for > displaying information to be performed whenever I select a row, via the > select_row signal. While this works great for single selections, the > problem is that when I select

Re: Able to send ssignal by name

2001-01-18 Thread Havoc Pennington
Billy Patton <[EMAIL PROTECTED]> writes: > I'm able to emit a signal by name and get it to go to the correct > location > but it dies with a page fault immediately. I put printf's inside and it > runs tryough the > entire function called but does not return the the location where signal > was em

Re: How do I send an event

2001-01-18 Thread Havoc Pennington
"Maher Awamy" <[EMAIL PROTECTED]> writes: > I think this is the function you want.. > > void gtk_signal_emit_by_name (GtkObject *object, > >const gchar *name, >

Re: gtk themes

2001-01-22 Thread Havoc Pennington
Neil Bird <[EMAIL PROTECTED]> writes: > I've taken to adding that final 'widget' line to all my downlaoded > themes, *none* of which set up tooltips "correctly". > > However, since they /do/ all have 'tooltip' entries (after a fashion), > the question is: are /all/ the themes I have doing t

Re: patch submitted not in patches, applied, unapplied or outdated

2001-01-22 Thread Havoc Pennington
"R. Bernstein" <[EMAIL PROTECTED]> writes: > FTP'd a small patch to glib that I use that facilitates finding memory > leaks (a tad). > > I can't see if it's in incoming. It isn't in patches, patches/applied, > patches/unapplied or patches/outdated. I made a small typo in the date > (gtk-rocky-00

Re: PangoLayout - problem with (re)drawing

2001-01-22 Thread Havoc Pennington
[EMAIL PROTECTED] (Rafał Kleger-Rudomin) writes: > PROBLEM: > When the window appears on the screen first time, i get > all may pango layouts (but the notebook is not drawn yet), > but after the second (sleep(1)) all they get cleared, and then > the notebook appears as well as rectangle, despi

Re: ANNOUNCE gtksourceview 0.0.1 (alpha)

2001-01-22 Thread Havoc Pennington
Andy Kahn <[EMAIL PROTECTED]> writes: > > What does gtksourceview provide that the new GtkTextView/GtkTextBuffer > widgets does not? It's a subclass that adds syntax highlighting, line numbers, and other programming-editor features. Havoc ___ gtk-li

Re: ANNOUNCE gtksourceview 0.0.1 (alpha)

2001-01-22 Thread Havoc Pennington
Andy Kahn <[EMAIL PROTECTED]> writes: > On Mon, Jan 22, 2001 at 10:57:43AM -0500, Havoc Pennington wrote: > > > > Andy Kahn <[EMAIL PROTECTED]> writes: > > > > > > What does gtksourceview provide that the new GtkTextView/GtkTextBuffer > > >

Re: Multiple menubars and linked radio buttons?

2001-01-24 Thread Havoc Pennington
"Kevin B. McCarty" <[EMAIL PROTECTED]> writes: > Is it the case that GTK doesn't like for a widget > to be displayed in more than one place at a time? Yep. > Can anyone give me a > better idea for how to "link" two identical groups of radio buttons > together so they always have the same stat

Re: GtkType defined in a gmodule?

2001-01-26 Thread Havoc Pennington
Maciej Stachowiak <[EMAIL PROTECTED]> writes: > What's the right way to handle a GtkType that's defined in a loadable > module that can get unloaded and reloaded multiple times? There's no > way to remove an existing GtkType, so the module can't clean up on > exit. However, from what I can see re

Re: size requests/allocations of own widgets

2001-01-26 Thread Havoc Pennington
Ronald Bultje <[EMAIL PROTECTED]> writes: > > I have made my own simple widget, it works, but one thing I don't like is > that if I request a size (width/height) and one of them gets bigger, the > other doesn't. Now, I really want the ration width:height to be 4:3. My > simple solution was to ju

Re: gtk 2

2001-01-26 Thread Havoc Pennington
Hosam Al-Moqim <[EMAIL PROTECTED]> writes: > hi gtk programmers ,, the gtk 1.3 is still development release ,, but it's > as i know support unicode ,, > how i cant get some information about new functions in this release that's > make my program support right dirction ,, thanx > There's some do

Re: trouble compiling gtk+1.2.8

2001-01-27 Thread Havoc Pennington
"Petros Sidiropoulos" <[EMAIL PROTECTED]> writes: > hello, > I tried to compile gtk+-1.2.8 on my system (GNU/Hurd) but 'make' returns a > few errors,(see attach) > the only think I understand is that MAXPATHLEN is not defined somewhere. > Can you help me to find which header file must be edited

Re: widget jumping

2001-01-28 Thread Havoc Pennington
"frederik jensen" <[EMAIL PROTECTED]> writes: > 1. when key "1" is pressed inside a text widget, key_press_event() is called, > and returns TRUE. However, should this not stop event propagation and mask out > the > > "1" from the visible text? > >   No, TRUE return from a signal emission keep

Re: widget jumping 2

2001-01-29 Thread Havoc Pennington
"frederik jensen" <[EMAIL PROTECTED]> writes: > Would it not be nice to have a "trace" function mapping the calling hierarchy > > of signals and events to stdout? This could perhaps help in understanding the > internals of the gtk main loop, or is such a function just plain unnecessary? > Tha

Re: GTK+ API reference in source distribution?

2001-01-31 Thread Havoc Pennington
Helmethead <[EMAIL PROTECTED]> writes: > Despair not, you can always contribute a couple of one line patches > like me! There are sgml sources in docs/reference/gtk in the source > distribution, yes. An sgml and a tmpl directory apparently. I don't > have a clue what they do but I'm pretty sur

Re: Setting size of SpinButton

2001-01-31 Thread Havoc Pennington
Lars Clausen <[EMAIL PROTECTED]> writes: > I'm looking at a SpinButton that goes from -100.0 to 100.0, and the Entry > field turns out too small -- when you're at -10.0 or below, the digits get > cut off. From the spinbutton example in the tutorial, I just see the > gtk_widget_set_usize, which i

Re: Setting size of SpinButton

2001-01-31 Thread Havoc Pennington
Paul Davis <[EMAIL PROTECTED]> writes: > except that its far from clear what you use it for. if you set the > usize of the spinbutton, it will still be too small, because of the > space taken by the arrows. a real annoyance. > Presumably the 2.0 API would be something like gtk_spin_button_set_

Re: Setting size of SpinButton

2001-02-01 Thread Havoc Pennington
Lars Clausen <[EMAIL PROTECTED]> writes: > I have the exact same problem with GtkMenu, it doesn't like to resize > itself to accomodate longer items (even when prompted with > gtk_widget_queue_resize()). Instead I find the longest item and set that > as usize, adding a but to allow for border a

Re: Setting size of SpinButton

2001-02-01 Thread Havoc Pennington
Lars Clausen <[EMAIL PROTECTED]> writes: > > I know there will be a bunch of little stuff like this that we forget > > for 2.0 and then kick ourselves having to answer the FAQ for the next > > year or two - everyone please query bugzilla.gnome.org for the "2.0 > > API freeze" milestone and be su

Re: on CVS of Feb 1, 8:20am

2001-02-02 Thread Havoc Pennington
Sven Neumann <[EMAIL PROTECTED]> writes: > I fear this is not possible (although I'm not an expert). I wish GTK > would load the GDK backend as a module. I have no idea is this would > be doable, but it would definitely rock. It's possible, but not actually that useful I think. So it's not a

Re: style xthickness and ythickness

2001-02-02 Thread Havoc Pennington
Helmethead <[EMAIL PROTECTED]> writes: > *sigh* > Sorry if this is a 100% braindead question, but what are style.xthickness and >style.ythickness exactly? > They are used for various padding values in GTK, such as the space taken up by frames. grep for them in the GTK source. Havoc _

Re: on CVS of Feb 1, 8:20am

2001-02-02 Thread Havoc Pennington
winterlion <[EMAIL PROTECTED]> writes: > I'll look into it then... multiple GDK targets are quite useful for me... > (probably a holdover from when I depended on GGI... XGGI can run under > XGGI which can all be running on the surfaces of a 3D cube :) > > I realise this example's silly - but h

Re: okay... figured out that compile prob...

2001-02-02 Thread Havoc Pennington
winterlion <[EMAIL PROTECTED]> writes: > configure for X asks for: > pangox > pangoxft It shouldn't be asking for pangoxft unless you have the Xrender extension (i.e. XFree 4.0.2). Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://

Re: How do I increase the scroll-repeat delay?

2001-02-03 Thread Havoc Pennington
Dean Edmonds <[EMAIL PROTECTED]> writes: > > Is there a way, as a use, to configure a longer delay before the > scroll-repeat kicks in? > Not at the moment, but GTK 2 will have a mechanism that lets us add this. If you want to file a bug at bugzilla.gnome.org, that would be useful (so we don't

Re: Some questions

2001-02-03 Thread Havoc Pennington
Julio Cesar Gazquez <[EMAIL PROTECTED]> writes: > 1) Hitting TAB once and again, focus goes from a widget to another, until > suddenly dissapears (after last widget, I guess), hitting TAB again focus > appears in the first widget. Why? Where is the damn focus? It's a bug. It may be fixed in G

Re: another bother in today's CVS

2001-02-03 Thread Havoc Pennington
winterlion <[EMAIL PROTECTED]> writes: > (now that I remember I had to manually patch this before) > > but gtk-config-2.0 is not constructed. > configure.in (and configure of course) doesn't construct it... > I manually added it in the line above "docs/gtk-config.1" > > ideas? > gtk-config-2.

Re: another bother in today's CVS

2001-02-04 Thread Havoc Pennington
winterlion <[EMAIL PROTECTED]> writes: > no - but you should probably mention something in the README or the like > about it :) > > A lot of gnome/gtk programs ask for it so Right, we'll have something like that by release time. Havoc ___ gtk-l

Re: About window decorations

2001-02-05 Thread Havoc Pennington
Paul Davis <[EMAIL PROTECTED]> writes: > create GtkWindow of type GTK_WINDOW_POPUP. its not guaranteed to be > free of decorations, but almost every window manager will obey the > request to avoid them. > POPUP means the window manager ignores it totally, not just for decorations - which mean

Re: on CVS of Feb 1, 8:20am

2001-02-05 Thread Havoc Pennington
Sven Neumann <[EMAIL PROTECTED]> writes: > > DirectFB is not adding hardware accel to the linux-fb port, but a > hardware abstraction layer that allows you to write code for the > linux framebuffer that benefits from the capabilities of your gfx > hardware or uses a software fallback if the des

Re: About window decorations

2001-02-05 Thread Havoc Pennington
"Norman Black" <[EMAIL PROTECTED]> writes: > > I have had many window managers ignore the decoration settings I have set. > That's really not your problem though, it's a bug in the WM. Using GTK_WINDOW_POPUP makes it broken for users who have a working WM, in order to fix it for users who have

Re: About window decorations

2001-02-05 Thread Havoc Pennington
Paul Davis <[EMAIL PROTECTED]> writes: > GTK defines 3 window types: Yes, but these mean: > > TOPLEVEL - all windows an app would normally create > DIALOG - useless feature, don't use it even for dialogs > POPUP - GtkMenu, tool tips (i.e. windows that are expect

Re: Embedded C++ keywords in gdk-pixbuf-loader.h

2001-02-08 Thread Havoc Pennington
Hi, Already fixed in CVS. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Spacing and GtkBox

2001-02-08 Thread Havoc Pennington
"Padraig O'Briain" <[EMAIL PROTECTED]> writes: > 1) Should the variable called spacing in _GtkBox be gint? Unless you have a monitor 65535 pixels wide, it doesn't really make any difference. ;-) It's 16 to save 32 bits there, since otherwise "homogeneous" would get its own 32 bits, which is har

Re: odd question...

2001-02-08 Thread Havoc Pennington
winterlion <[EMAIL PROTECTED]> writes: > Is there any looking into upgrading the /gtk+/examples directory to > actually support gtk-2.0? :) I think we'll probably be moving to using demos/gtk-demo instead and getting rid of examples. Though, examples is part of the GTK tutorial, so may get updat

Re: on the "examples/entry" (current CVS)

2001-02-08 Thread Havoc Pennington
winterlion <[EMAIL PROTECTED]> writes: > for some reason the cursor jumps around a lot - and the text output is > jumbled. No I -don't- know enough to know if this is gtk+, pango (one of > the fonts? I have pangoxft, pangoft2), glib, or something else. Did you get fribidi separately or use the

Re: Colormap question

2001-02-08 Thread Havoc Pennington
Andrei Zmievski <[EMAIL PROTECTED]> writes: > > When I do gdk_colormap_get_system(), the colormap I get has 'size' member set > to 64, but 'colors' is NULL. Why is that? > The code looks like this happens for TrueColor visuals. The "64" is apparently visual->colormap_size reported by X which i

Re: on the "examples/entry" (current CVS)

2001-02-08 Thread Havoc Pennington
winterlion <[EMAIL PROTECTED]> writes: > Oh good point - I got the standalone... > > right. Maybe add this to FAQ? *g* > (not a bad idea actually) > > Q: I've got jumbled text and nothing seems to print right? > > A: try reinstalling pango without --with-fribidi and see how that works > R

Re: Asynchronous File Reading

2001-02-09 Thread Havoc Pennington
"Dugas, Alan" <[EMAIL PROTECTED]> writes: > Does anyone have a suggestion on how I could asynchronously read a file? > I've tried using gtk_timeout_add()/gtk_timeout_remove(), but this causes > "racing" conditions when run over a network. Any ideas would be greatly > appreciated. > Sure, use g

Re: window resize-event?

2001-02-09 Thread Havoc Pennington
Ronald Bultje <[EMAIL PROTECTED]> writes: > What is the signal name to emit a (fake) resize-event to the window, so > that the window thinks it must be resized? > > I tried gtk_signal_emit_by_name(GTK_OBJECT(window), "resize_event");, but > that signal is unknown. > You need to call gtk_main_d

Re: Asynchronous File Reading

2001-02-09 Thread Havoc Pennington
"Dugas, Alan" <[EMAIL PROTECTED]> writes: > I'm getting segfaults in ioctl when I try to use open() and gdk_input_add(). > Do I need to setup threads? > Nope, just a bug in something I guess. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://

Re: Gtk+ and editing

2001-02-10 Thread Havoc Pennington
"Michael" <[EMAIL PROTECTED]> writes: > I want to ask , whats the most appropriate GTK+ widget to use enhanced text > editing . > > For example , something that looks like Windows RichEdit or Windows HTML > Control . > > I need both controls , especially HTML . > Look at the GtkHTML widget fo

Re: Gtk (HEAD) problem

2001-02-10 Thread Havoc Pennington
Mikael Hermansson <[EMAIL PROTECTED]> writes: > I am trying to use the property API in glib to get values in GtkTextTag. > > But I am getting GRuntime-CRITICAL **: file gvalue.c: line 48 > (g_value_init): assertion `G_VALUE_TYPE (value) == 0' failed when when > calling: g_object_get_property usi

Re: glib HEAD build error

2001-02-12 Thread Havoc Pennington
Lee Mallabone <[EMAIL PROTECTED]> writes: > Clearly glib-genmarshal should exist, but it doesn't. Anyone know what > I'm doing wrong? > The dependencies are probably hosed - you might try make -k to get glib-genmarshal built, then make again. Havoc ___

Re: question about gdk_window_shape_combine_mask(...)

2001-02-13 Thread Havoc Pennington
Jiang XU <[EMAIL PROTECTED]> writes: > > How to use gdk_window_shape_combine_mask( GdkWindow *, GdkBitmap * > shape_mask, gint offset_x, gint offset_y ) > > What is "offset_x" and "offset_y" used for?? Is that to do with > "GdkBitmap *shape_mask" > The position of the mask with respe

Re: Bizarre window behavior

2001-02-14 Thread Havoc Pennington
Jeff Shipman <[EMAIL PROTECTED]> writes: > > gtk_timeout_add (500, gtk_widget_hide, widget); > > Wow, that works great! Thanks a lot! One question, though. I > do get a warning about using gtk_widget_hide because it is > not a GtkFunctcion. How could I get rid of that warning? Pass a funct

Re: Vscale continued, help needed

2001-02-15 Thread Havoc Pennington
<[EMAIL PROTECTED]> writes: > Is this a hint that changing the direction was overlooked? > If so, will Gtk+ 2.0 provide it? > There's a bug in the tracker about this, if you want to track progress add yourself to the CC list: http://bugzilla.gnome.org/show_bug.cgi?id=50806 Havoc __

Re: how to do this?

2001-02-17 Thread Havoc Pennington
Ottavio Campana <[EMAIL PROTECTED]> writes: > Now, the widget is similar to a list in which every segment is a > possible choice (like the rows in the clist). I don't know where to > start from for developing this widget. Has someone of the list ever done > something similar? > Yo

Re: keypress from a drawing area

2001-02-18 Thread Havoc Pennington
"frederik jensen" <[EMAIL PROTECTED]> writes: > Is there any way to connect the key press event with darea instead > of the main window? > Your drawing area needs to get the key focus. There are several parts of this: - set the GTK_CAN_FOCUS flag on it with GTK_WIDGET_SET_FLAGS - on focu

Re: aligning widgets

2001-02-19 Thread Havoc Pennington
Timothy Flechtner <[EMAIL PROTECTED]> writes: > i'm trying to create a table, and supply it with headers, one per column. > for the life of me, i can't figure out how to > get the header width and the column width to match. created an hbox and > packed a bunch for frames containing la

Re: Memory leaks

2001-02-19 Thread Havoc Pennington
Enrico Fracasso <[EMAIL PROTECTED]> writes: > if i run it the memory used by the process increases (checked with top) > if I remove the gtk_ctree_insert_node(...) and gtk_ctree_remove_node(...) lines the > memory remain constant. > According to you, where's the problem? > We really need this

Re: question about GTK+fb.

2001-02-19 Thread Havoc Pennington
"$)C7yGu0o" <[EMAIL PROTECTED]> writes: > Shortly saying, What is needed for making GUI interface, > using GTK+fb, on my embedded device ? > GTK fb comes with a built-in window manager. We have a prototype of a virtual keyboard, and maybe some work on the handwriting recognition, but not fi

Re: aligning widgets

2001-02-19 Thread Havoc Pennington
Timothy Flechtner <[EMAIL PROTECTED]> writes: > > i would much prefer to leave everything to the provided layout > mechanisms in gtk, but i haven't found a way to do and: > 1. have my headers not scroll off the page. i put my table in a > scrolled window, but i'd like to always be able to see >

Re: widget's black border

2001-02-19 Thread Havoc Pennington
Jeff Shipman <[EMAIL PROTECTED]> writes: > Is there a way to increase the size of the small black > border that appears around a widget when it receives the > input focus (mainly, I would like to mess with the > size of the border for entry widgets)? > Not that I know of. Havoc __

Re: programing optimization

2001-02-22 Thread Havoc Pennington
[EMAIL PROTECTED] writes: > What you want is gprof. It's a standard component of most free Unices these > days. > > What you do is compile your programs (if using gcc) with the -pg > option. Then, when you run them, the program will generate a huge > log file. gprof analyses this log file and g

Re: GdkColor and GdkGC question

2001-02-23 Thread Havoc Pennington
Andrei Zmievski <[EMAIL PROTECTED]> writes: > > When I do gdk_gc_get_values() to retrieve the GC values, the > 'foreground' value which is a GdkColor, for example, only has pixel > member set properly - red, green, and blue are not. What is the proper > way to obtain RGB values for a certain pix

Re: Using Classes in GTK+

2001-02-24 Thread Havoc Pennington
[EMAIL PROTECTED] writes: > Can anyone help cause I done have a clue. Is it possible to call a > class function in such a situtation. > No, because GTK can't invoke a method without the object to invoke it on. (And moreover knowing the type of that object at compile time.) You can use only gl

Re: borders

2001-02-24 Thread Havoc Pennington
Jeff Shipman <[EMAIL PROTECTED]> writes: > I have widgets packed into a table and I would like > to add padding to the top of a widget. If I attach > it and modify the ypadding, then this adds padding > to the bottom as well, which is not what I want. > It doesn't work to add another column betwe

Re: GdkColor and GdkGC question

2001-02-26 Thread Havoc Pennington
Andrei Zmievski <[EMAIL PROTECTED]> writes: > This obviously won't work on Windows.. Or does Windows port > automatically fill in the red/green/blue values? Right, well 1.2 does not officially work on Windows. ;-) With 2.0 Windows is officially supported and we have gdk_colormap_query_color() t

Re: Widget directory?

2001-02-26 Thread Havoc Pennington
"Stephan Stapel" <[EMAIL PROTECTED]> writes: > > I would like to know if a website exists where all (or at least some) custom > controls/ widgets for Gtk are listed. A similar site exists for Qt... > A small subset can be found here: http://developer.gnome.org/tools/repo/ Also look at librar

Re: Icons

2001-02-27 Thread Havoc Pennington
Jeff Shipman <[EMAIL PROTECTED]> writes: > Is there a way to assign an icon to an applicaton? > My window manager (fvwm2) displays an icon that > I can double-click on after I've minimized the app > to pop it back up. I've seen many applications that > have the icon as part of the program (mozill

Re: Widget directory?

2001-02-27 Thread Havoc Pennington
Dov Grobgeld <[EMAIL PROTECTED]> writes: > And please don't forget my imageviewer widget at: > > http://imagic.weizmann.ac.il/~dov/freesw/gtk/gtk-image-viewer/ > > 8-) > > The widget repository is a great idea, but it needs a system for > adding entries in the repository. Currently th

Re: Widget directory?

2001-02-28 Thread Havoc Pennington
Dov Grobgeld <[EMAIL PROTECTED]> writes: > That's a great idea. It will be even greater once pressing Submit > returns something other than: > > Not Found > >The requested URL /cgi-bin/submit.cgi was not found on this server. > I forwarded the problem to webmaster. Havoc __

Re: GLIB/GTK+ recent version;s build error

2001-03-01 Thread Havoc Pennington
"Vladimir V. Zolotych" <[EMAIL PROTECTED]> writes: > gcc -g -O2 -g -Wall -I/usr/local/include/glib-2.0 > -I/usr/local/lib/glib-2.0/include -o .libs/make-inline-pixbuf > make-inline-pixbuf.o .libs/libgdk_pixbuf-1.3.so -L/usr/local/lib > -lgobject-1.3 -lgmodule-1.3 -ldl -lgthread-1.3 -lpthread -lgl

Re: GtkWidgetFlags

2001-03-01 Thread Havoc Pennington
Chris Ellec <[EMAIL PROTECTED]> writes: > > How can I access the various Flags in the GtkWidgetFlags ? > > I'd like to see the status of HAS_FOCUS and VISIBLE in particular. I > know it's like bit 8 and 12 or something like that, but how do I get > the value to mask ? > GTK_WIDGET_VISIBLE (w

Re: New widgets and their widths

2001-03-01 Thread Havoc Pennington
Flavio Ribeiro <[EMAIL PROTECTED]> writes: > What should I do to make gtk_widget_set_usize's values stick after the > call without resorting to GtkAlignment? And if I _must_ use > GtkAlignment, how can I allow the widget to resize if I resize its > window? > Exactly what behavior are you looki

Re: GtkEntry only for numbers

2001-03-03 Thread Havoc Pennington
Ignacio Nodal <[EMAIL PROTECTED]> writes: > > I want to use a GtkEntry widget, where the user should only enter float > values. > How can i avoid ilegal text-entries? > In addition to Flavio's suggestions, you can connect to the insert_text signal and gtk_signal_emit_stop_by_name (entry, "inse

Re: Animation in GTK

2001-03-04 Thread Havoc Pennington
[EMAIL PROTECTED] writes: > This doesn't work, it flickers continully. > I then tried to place the onscreen image in a pixmap, but this is to > slow. I think that pixmaps are only supposed to be used for static > images, not realtime movement. The position if the tanks is updated > many times a

Re: GTK+-1.2.9 Released

2001-03-05 Thread Havoc Pennington
"J. Ali Harlow" <[EMAIL PROTECTED]> writes: > There may be a clear argument, but I have to say that it is > unacceptable to me for the GTK team to resort to such > nannyisms. While it would not be impossible for the Slash'EM > development team to comply with this (and it would also have some > fr

Re: GTK+-1.2.9 Released

2001-03-05 Thread Havoc Pennington
"J. Ali Harlow" <[EMAIL PROTECTED]> writes: w > I do think you are being needlessly heavy handed. Even calling > gets(), which everybody agrees is not on, doesn't actually break the > application. And as I say, I will subvert the check if I have to. At > least if you supply a method of defeating

Re: GTK+-1.2.9 Released

2001-03-05 Thread Havoc Pennington
[EMAIL PROTECTED] writes: > On Mon, 05 Mar 2001 14:10:29 EST, Havoc Pennington said: > > Right. Adding something like a GTK_ALLOW_INSECURE environment variable > > doesn't seem like a terrible idea, though it's too late to do so for > > 1.2.9. > > Wron

Re: GTK+-1.2.9 Released

2001-03-05 Thread Havoc Pennington
[EMAIL PROTECTED] writes: > And of course, what we end up is an ISO-standard band-aid, with bells, > wistles, gauges, buttons, and supporting documentation, which still won't > fix the problem of programmers who don't take the time to write secure > code. > > You're probably better off sticking

Re: vertical text w/notebooks?

2001-03-05 Thread Havoc Pennington
"Eric M. Monsler" <[EMAIL PROTECTED]> writes: > > If the operator then clicks "==>", it becomes: > _ > <== | THIRD | fourth | fifth | ==> | > _ > Notebook is supposed to do this automatically, I t

Re: Formally request *X* focus?

2001-03-06 Thread Havoc Pennington
Neil Bird <[EMAIL PROTECTED]> writes: > What's the proper way to ask the WM to give input focus to a newly > popped-up dialogue box? > > I can't see any obvious or non-obvious GTK/GDK calls/hints/etc. > GDK 2 has this function, which you'll have to do yourself in GDK 1.2. Can leave out the

Re: Does anybody know how to display multi-fonts at one time?

2001-03-06 Thread Havoc Pennington
"david" <[EMAIL PROTECTED]> writes: > > I would like to display several fonts such as English, Chinese, > Japanese at together at one time. Does gtk provide any functions to > implement that? > > As I know, motif provides some functions to handle the issue of > muti-fonts but I cannot find in

Re: drawing speed under Windows

2001-03-06 Thread Havoc Pennington
Deborah Swayne <[EMAIL PROTECTED]> writes: > I'm going to revive a topic I raised a year ago and see if > there's anything new to be said about it. > > The use of plural drawing routines (draw_points instead of > draw_point, etc) improves drawing speed **twenty-fold** for > Windows versions of

Re: Problem pushing glib.h through Sun C++ compiler, Solaris 7,8, CC 5.0/6.1

2001-03-06 Thread Havoc Pennington
Jiri_Mracek <[EMAIL PROTECTED]> writes: > I get an error: > "/sopt/SUNWspro50/SUNWspro/SC5.0/include/CC/std/time.h", line 29: > Error: Multiple declaration for std::tm. > > To correct the problem: > > Change line 2079 in file "glib.h", > from > 2079 struct tm; > to

Re: Position of TOP_LEVEL window

2001-03-07 Thread Havoc Pennington
"Tom Knowles" <[EMAIL PROTECTED]> writes: > The TOP_LEVEL window seems to want to position itself centrally. I have > tried set_uposition (0,0) but it makes no difference. With subservient > dialogs there is no problem. > Can I force the window top left. The window manager has ultimate control h

Re: drawing speed under Windows

2001-03-07 Thread Havoc Pennington
Ron Steinke <[EMAIL PROTECTED]> writes: > Mabye the windows version of draw_point could cache the points, and > then call draw_points on a timeout when the main loop executes? > Yep I think that's pretty much the right idea. There may be tricky details. Havoc ___

Re: drawing speed under Windows

2001-03-07 Thread Havoc Pennington
Deborah Swayne <[EMAIL PROTECTED]> writes: > On Wed, Mar 07, 2001 at 07:29:19AM -0800, Ron Steinke wrote: > > > > Mabye the windows version of draw_point could cache the points, and > > then call draw_points on a timeout when the main loop executes? > > > > R

Re: drawing speed under Windows

2001-03-07 Thread Havoc Pennington
[EMAIL PROTECTED] writes: > > when exactly did the G in gtk start standing for automa_g_ically? > Long ago. GTK strives to save programmer thought cycles whenever possible. However this particular optimization is in Xlib for the X11 port, and no one has ever accused Xlib of being too high-le

Re: GList vs. GSList

2001-03-08 Thread Havoc Pennington
Jeff Shipman <[EMAIL PROTECTED]> writes: > I'm currently using GList's in my program, but > I don't really need the capability of a doubly-linked > list and GSList provides everything I could need. > However, I was wondering if there's a reason GList > should be used over GSList? Or, does GList n

Re: Entry widget

2001-03-08 Thread Havoc Pennington
Eamonn Martin Galvin <[EMAIL PROTECTED]> writes: > > Does anyone know if you can make a certain part of an entry widget > non-editable, say the first 4 characters, and the rest editable? > You could only do this by connecting to insert_text and doing some filtering. I think the reference manua

Re: Gtkglarea problems

2001-03-08 Thread Havoc Pennington
Stephan Stapel <[EMAIL PROTECTED]> writes: > BUG IN DYNAMIC LINKER ld.so: dl-version.c: 210: _dl_check_map_versions: > Assertion `needed != ((void *)0)' failed! > > As I'm quite new to the Linux enviromnment, I don't know how to react to > this error message? > Can anyone help me? > Sugge

Re: New widget - style inheritance?

2001-03-09 Thread Havoc Pennington
Neil Bird <[EMAIL PROTECTED]> writes: > My gut feeling would be to base this upon a GtkArea (or similar) and do > the drawing roughly myself - but what would be the best way of inheriting > theme/style settings (of say Buttons) such that the area's b/g, fill & > outline colours matched 'normal

Re: Checking success/failure of window resizes

2001-03-12 Thread Havoc Pennington
Dave Neary <[EMAIL PROTECTED]> writes: > > In gtk+/gdk/gdkwindow.c (gdk_window_resize) there's a call to > XResizeWindow() which works mostly - but there have been a few > bugs reported in unusual circumstances in the Gimp which get > traced to this function. > > There are hacks to get around t

Re: New widget - style inheritance?

2001-03-12 Thread Havoc Pennington
Neil Bird <[EMAIL PROTECTED]> writes: > Havoc Pennington wrote: > > Use the functions in gtkpaint.h to do your drawing when possible, and > > if that isn't possible (there aren't functions there to draw triangles > > for example), use the colors a

Re: Typecast error

2001-03-13 Thread Havoc Pennington
Dwight Tuinstra <[EMAIL PROTECTED]> writes: > > This program compiles and creates an executable which works > > correctly, ie. ithe int is successfully passed to the function, > > however I get this warning, which I would like to fix > > > > gui.h:873: cannot convert `int' to `void *' for argument

Re: window/dialog focus

2001-03-14 Thread Havoc Pennington
"Tom Knowles" <[EMAIL PROTECTED]> writes: > I am developing a touch screen EPOS application using gtk. When I raise > another window/dialog I would like that item to be highlighed. The focus, as > I call it, remains where the button was pressed and the new item is bordered > in lowlight until an

Re: Typecast error

2001-03-14 Thread Havoc Pennington
Dwight Tuinstra <[EMAIL PROTECTED]> writes: > You're right about a pointer to random data. But casting > pointers to ints, and vice-versa, has always seemed to me > a horrible abuse of the type system (I guess I've been > overly influenced by contact with the ML language's Vorlon- > strict typ

Re: GtkFontSelectionDialog fields

2001-03-14 Thread Havoc Pennington
Andrei Zmievski <[EMAIL PROTECTED]> writes: > I'm writing language bindings for GTK+. In GtkFontSelectionDialog, are > all the following fields considered publicly accessible? > > GtkWidget *fontsel; > > GtkWidget *main_vbox; > GtkWidget *action_area; > GtkWidget *ok_button; > /* The

Re: Ill-behaved pop-up menus

2001-03-15 Thread Havoc Pennington
Lokesh Setia <[EMAIL PROTECTED]> writes: > > While doing some gtk+ programming, I noticed that opening a menu grabs > the X11 mouse. Any broken program can take control of the entire > display this way, and even wm-shortcuts don't seem to work while the > display is grabbed. The only way I cou

Re: GtkFontSelectionDialog fields

2001-03-15 Thread Havoc Pennington
Vladimir Tsichevski <[EMAIL PROTECTED]> writes: > > Some of that fields (notably ok_button) are referenced in supplied > testgtk.c file, which is meant to be an usual user application > example. So IMHO the fields are dy def public. > Well, testgtk isn't really supposed to be an example (it do

Re: GtkFontSelectionDialog fields

2001-03-15 Thread Havoc Pennington
Andrei Zmievski <[EMAIL PROTECTED]> writes: > On Thu, 15 Mar 2001, Havoc Pennington wrote: > > Well, testgtk isn't really supposed to be an example (it does a lot of > > things in the wrong way, does a lot of weird things you shouldn't do, > > and is reall

Re: colormap free question

2001-03-15 Thread Havoc Pennington
Chris Ellec <[EMAIL PROTECTED]> writes: > > However, I imagine I need to do a free(colormap) somewhere. If I put it at the > end of the expose_event, the program segfaults. Since I have colormap as a > local variable, I can't free it anywhere else. > Two mistakes: - you don't need to free the

Re: how to fix an "assertion failed" ?

2001-03-15 Thread Havoc Pennington
Chris Ellec <[EMAIL PROTECTED]> writes: > > I get the following error everytime I close one of my windows, and I was > wondering how to track it down: > > Glib critical **file main.c line 500 (g_source_remove) assertion 'tag > 0' > failed. > Run the app in gdb with --g-fatal-warnings: $ gdb

<    1   2   3   4   5   6   7   8   9   10   >