Re: Vertical strings in a PixMap

2001-05-04 Thread Havoc Pennington
Neil Bird [EMAIL PROTECTED] writes: Am I right in remembering that GTK has a pixmap rotation jobby? Nope. ;-) That's the fatal flaw in your plan! muhahahaha Havoc ___ gtk-list mailing list [EMAIL PROTECTED]

Re: Question re configure_event.

2001-05-04 Thread Havoc Pennington
Colin Thomas [EMAIL PROTECTED] writes: Now I need to write to one of the drawing areas BEFORE the window has ever been displayed, and had a configure_event. Assuming you could do this, it would be a no-op; X/GTK does not remember the contents of the drawing area. Only the visible contents

Re: GtkLabel background

2001-05-05 Thread Havoc Pennington
latin [EMAIL PROTECTED] writes: Is it possible to define a background color for GtkLabel in rc file? How can I define it in a program? Put the label in a GtkEventBox, set the background on the event box. Havoc ___ gtk-list mailing list [EMAIL

Re: PROBLEM: Can't compile Gtk+-1.3.4

2001-05-05 Thread Havoc Pennington
[EMAIL PROTECTED] writes: I think that is the crux of the matter. I doubt the Gtk designers expect it to be a library used by novices, at least not directly, and certainly not at the current stage of 1.3.x development. (I don't think I'm not putting words in anyone's mouth with the

Re: personal install of gtk+

2001-05-05 Thread Havoc Pennington
David Goldsmith [EMAIL PROTECTED] writes: Follow-up to previous posting: in my glib/.lib directory I found and ran testglib and everthing was ok 'til: g_log tests: ** WARNING **: harmless warning with parameters: 42 Boo 0x3039 Message: the next warning is a test: GLib-CRITICAL **: file

Re: Trying to do a personal install of gtk+1.2.10

2001-05-05 Thread Havoc Pennington
David Goldsmith [EMAIL PROTECTED] writes: Am I trying to do the impossible? If not, what do I need to do? Thanks, I think the instructions about LD_LIBRARY_PATH, ldconfig, etc. are a bit Linux-centric. Check the Solaris docs for how to put your library directory in the linker's search

Re: Can't grab keyboard

2001-05-05 Thread Havoc Pennington
Dinesh Nadarajah [EMAIL PROTECTED] writes: I am trying to grab the keyboard using the command gdk_grab_keyboard() and am passing (GtkWidget *)-window, FALSE, GDK_CURRENT_TIME as paramaters. The function is executed just before gtk_main(). But I am unable to grab the keyboard. Am I doing

Re: widget question

2001-05-05 Thread Havoc Pennington
Ronald Bultje [EMAIL PROTECTED] writes: But I'm horribly confused. The code of Gtk(H/V)Scale and GtkRange are not really understandable to a newbie-who-knows-how-tu-use-gtk-but-doesn't-get-it (me). They aren't really understandable by anyone at all. The author of GtkRange was smoking some

Re: combo widget for question/answer

2001-05-07 Thread Havoc Pennington
Vicki Stanfield [EMAIL PROTECTED] writes: Is there a combination widget for use in the situation when you want to ask a simple question and have the answer input by the user. In Motif, there was a label attached to a text widget which could be used for this purpose. What is your name?

Re: Image type 'png' is not supported

2001-05-07 Thread Havoc Pennington
Rodrigo Moya [EMAIL PROTECTED] writes: I'm trying to compile GTK+ HEAD, and, on the gtk/stock-icons directory, it complains about Image type 'png' is not supported when trying to run gdk-pixbuf/make-inline-pixbuf. I've got the libpng-dev package installed, and configure did detect it,

Re: Image type 'png' is not supported

2001-05-08 Thread Havoc Pennington
Owen Taylor [EMAIL PROTECTED] writes: Well, this answer was for the case when libpng is not present - which is - we need to fix this so the files are distributed You and Michael are thinking of a newer thread - there was an older thread where the same PNG missing problem had some other

Re: scrollbar once again

2001-05-08 Thread Havoc Pennington
Ronald Bultje [EMAIL PROTECTED] writes: 1) if I close the Gtk-app, control doesn't return to the terminal, so it locks somewhere - how do I find out where? Do you gtk_main_quit() to exit gtk_main()? To find out where, just run 'gdb myapp', then after closing the app, hit Ctrl-C and type

Re: Please: Explain what happens when on use gtk_container_remove

2001-05-08 Thread Havoc Pennington
Preben Randhol [EMAIL PROTECTED] writes: I do this (note the code is not in C as I use Ada 95, but it should be understandable) Gtk.Container.Add (Some_Vbox, Some_Frame); Gtk.Container.Remove (Some_Vbox, Some_Frame); Gtk.Container.Add (Some_Vbox, Some_Frame); As I understand

Re: scrollbar once again

2001-05-08 Thread Havoc Pennington
Ronald Bultje [EMAIL PROTECTED] writes: On 2001.05.08 20:53:10 +0200 Havoc Pennington wrote: Do you gtk_main_quit() to exit gtk_main()? yes ... #4 0x400b9043 in gtk_main () from /usr/lib/libgtk-1.2.so.0 You are still in gtk_main(), so the answer is no not yes ;-) Maybe you

Re: scrollbar once again

2001-05-09 Thread Havoc Pennington
Ronald Bultje [EMAIL PROTECTED] writes: I cam as far as to see that the delete/destroy signals don't reach their respective functions at all. If it gets delete/destroy, it will unrealize the widget, then destroy the widget (these commands finish), but then, it doesn't reach the

Re: scrollbar once again

2001-05-09 Thread Havoc Pennington
Hi, Why not just post all the source code, and we'll look at it? ;-) Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: scrollbar once again

2001-05-09 Thread Havoc Pennington
Ronald Bultje [EMAIL PROTECTED] writes: On 2001.05.09 21:27:01 +0200 Havoc Pennington wrote: Hi, Why not just post all the source code, and we'll look at it? ;-) http://ronald.bitfreak.net/gtkenhancedscale.tar.gz :-) It works fine for me, I click the close decoration

Re: gtk-scrollbar bug with gtk-xemacs

2001-05-11 Thread Havoc Pennington
Rene Rebe [EMAIL PROTECTED] writes: I looked into XEmacs and gtk+ source - but can't figure out what might be wrong. The gtkscrollbar.c in gtk+ has not changed ... . bugzilla.gnome.org has a bug filed against GTK for this. The bug speculates that XEmacs is not guaranteeing that

Re: Porting to gtk 1.3.5

2001-05-11 Thread Havoc Pennington
monkeyiq [EMAIL PROTECTED] writes: I know that gtk2 is not a stable API at current. Though it would be better to wait, I don't know that I will have the time to code when gtk2 is out, so I am doing it now in the hopes that the API doesn't change that much between now and then. I have

Re: Porting to gtk 1.3.5

2001-05-11 Thread Havoc Pennington
monkeyiq [EMAIL PROTECTED] writes: All I get is: ... GRuntime-CRITICAL **: file gparamspecs.c: line 1465 (g_param_spec_enum): assertion `g_enum_get_value (enum_class, default_value) != NULL' failed Well, the lesson is, always debug the first warning first. The BadMatch is probably just a

Re: Problem with g:strsplit

2001-05-13 Thread Havoc Pennington
Janos Blazi [EMAIL PROTECTED] writes: I am starting with gtk+. ... gint64 x,y; Here is your problem. There's no reason to specify a size for these integers; and since the natural integer size on Windows is 32, it breaks things below. Also, not all platforms offer gint64. gchar **l;

Re: whither gnome_program_init ?

2001-05-13 Thread Havoc Pennington
Bill Haneman [EMAIL PROTECTED] writes: The follow-on to this is that we'd like to export application-name and version strings to adaptive technologies as part of the Gnome Accessibility SPI, and it seems that (most, all?) Gnome apps export these strings in gnome_program_init or a similar

Re: whither gnome_program_init ?

2001-05-14 Thread Havoc Pennington
Bill Haneman [EMAIL PROTECTED] writes: Havoc said, regarding getting program name and version: g_get_prgname() returns the name, there is no existing way to get the version. Havoc Seems like an omission. Mind if we file a bug? Sure, though it isn't obvious to me how to fix this -

Re: GtkText vs GtkTextView

2001-05-14 Thread Havoc Pennington
Raymond Wan [EMAIL PROTECTED] writes: I haven't tried v1.3 of GTK+ yet, but I'm wondering if I should. What I'm using is a GtkText that's holding a lot of text...like megabytes of text and I don't mind switching to v1.3, even if it's just a pre-release of 2.0 . My program seems to

Re: Question about entry callbacks

2001-05-15 Thread Havoc Pennington
Vicki Stanfield [EMAIL PROTECTED] writes: I am trying to create a callback for an entry widget. When a string is typed in, I want the callback to be called. I assume that I can use the entry widget which is passed in with the gtk_entry_get_text function to get the string. The problem is that

Re: status/progress bars (revisited)

2001-05-15 Thread Havoc Pennington
On Tue, 15 May 2001, Matt Hillebrand wrote: I have been posting this question every few weeks for the past year, and I have never received a response: How do I force a status bar (or progress bar) to update when the computer is really busy? http://www.gtk.org/faq/#AEN561 Havoc

Re: status/progress bars (revisited)

2001-05-16 Thread Havoc Pennington
John Cupitt [EMAIL PROTECTED] writes: Havoc Pennington wrote: On Tue, 15 May 2001, Matt Hillebrand wrote: I have been posting this question every few weeks for the past year, and I have never received a response: How do I force a status bar (or progress bar) to update when

Re: gtk_grab_add trouble

2001-05-16 Thread Havoc Pennington
Craig Emery [EMAIL PROTECTED] writes: according to the GTK+ FAQ to make a window modal you call gtk_grab_add (window) and then when it's destroyed called gtk_grab_remove (widndow). However my code was using a different method! After showing the window I call gtk_main () (yes, for the

Re: Pointer to info on color, etc.

2001-05-17 Thread Havoc Pennington
Vicki Stanfield [EMAIL PROTECTED] writes: I am trying to figure out how to create a window with a background color and text of a different color. I understand that this involves a graphics context and GDK, but I can't find a simple example. Can anyone point me to a very simple example of

Re: How to have multi-level menus?

2001-05-18 Thread Havoc Pennington
David J. Topper [EMAIL PROTECTED] writes: 1. Separators? Everything is a menu item? Empty menu items (with no child packed in them) appear as separators. Strange but true. GTK 2 has GtkSeparatorMenuItem which is just a subclass of GtkMenuItem that changes nothing whatsoever about the base

Re: gdk_window_set_background?

2001-05-18 Thread Havoc Pennington
Vicki Stanfield [EMAIL PROTECTED] writes: What is the function gdk_window_set_background used for? I have used gtk_windows, but I don't understand how a gdk_window fits into the scheme. Can someone explain it to me (as if I were a six year old)? GdkWindow is a primitive window in the

Re: gdk_window_set_background?

2001-05-19 Thread Havoc Pennington
Vicki Stanfield [EMAIL PROTECTED] writes: rc_style-color_flags[GTK_STATE_NORMAL] |= GTK_RC_FG; The error is: conversion from `int' to `enum GtkRcFlags' I've looked at the code a hundred times, and I don't see anything so different as to account for this error. My declarations are just

Re: double IEEE precission with spin buttons

2001-05-19 Thread Havoc Pennington
Andrej Prsa [EMAIL PROTECTED] writes: I'm a newbie to gtk+ programming (started only yesterday ;) ), but after few hours of trying to invent hot water I gave up and figured I should ask: How do I get double precission with spin buttons? I have to enter Julian dates, which are something

Re: Fw: Draggable Toolbars, problems suggestions

2001-05-19 Thread Havoc Pennington
TG [EMAIL PROTECTED] writes: * GTK toolbars continually update when you drag them, but there is a lot of flickering/ugliness as they redraw. Note that at least the flicker bit has been killed for GTK 2. Havoc ___ gtk-list mailing list [EMAIL

Re: A FAQ? What do I need to build GTK+ these days?

2001-05-19 Thread Havoc Pennington
Rick Campbell [EMAIL PROTECTED] writes: Where can I find a complete list of the packages required to build GTK+? I've been going through an iterative process starting with gtk+ and glib, then pulling in pkgconfig, then pango, and currently I'm staring at: Unknown package 'atk'

Re: gtk+ ver 1.2

2001-05-19 Thread Havoc Pennington
Kimberley Brent-y17568 [EMAIL PROTECTED] writes: I have been having difficulty downloading the latest stable gtk+ source file.  Should I be using v1.3 instead? Nope, not unless you enjoy instability. Try putting your ftp client in passive mode, that makes ftp.gtk.org work for me. Most

Re: Gimp color question

2001-05-19 Thread Havoc Pennington
Vicki Stanfield [EMAIL PROTECTED] writes: color.red = 99; color.green = 8; color.blue = 206; These should be in the range 0-65535, Gimp is in 0-255. (i.e., multiply by 255) No luck. I have the hex equivalent (#6308ce) if that would be easier. gdk_color_parse (color, #6308ce); Havoc

Re: Radiobuttons dont work?

2001-05-20 Thread Havoc Pennington
Robert Wilkens [EMAIL PROTECTED] writes: Please consider taking the 'if i==1' thing out of the loop... Do your initialization before you enter the loop, then make the loop 'for i = 2 to 5' instead of 1 to 5.  The way your code is written it's not only doing an unnecessary compare, it's not

Re: A FAQ? What do I need to build GTK+ these days?

2001-05-21 Thread Havoc Pennington
Rick Campbell [EMAIL PROTECTED] writes: I wouldn't phrase it quite that way, but perhaps, ``Don't force support for disabled users and/or internationalization on those that don't need it.'' This is the approach that XEmacs development takes on things ranging in importance from

Re: pixmap spacing problem

2001-05-21 Thread Havoc Pennington
Hi, A simple way to add space when there's no other convenient method is to create a GtkAlignment, and call gtk_widget_set_usize() to set the size of the alignment. GtkAlignment is invisible so it will just be a spacer. Havoc ___ gtk-list mailing

Re: gtk+ ver 1.2

2001-05-22 Thread Havoc Pennington
Kimberley Brent-y17568 [EMAIL PROTECTED] writes: Thanks for the reply.  I'm not sure if this is a passive/active ftp issue.  ( I am using iexplorer. ) I can download the glib source but not the gtk+ source.  I'm behind a firewall.  I can download glib, however I can't download the

Re: vertical scale display; button prelighting

2001-05-22 Thread Havoc Pennington
Thomas J Lewis [EMAIL PROTECTED] writes: 1.) set up vertical scale to display digit 0-10,but the scale works backwards. when the slider moved up, the digits decrease; when moved down, it increases. didn't see an option to reverse the order. There is no option. There is in GTK 2 though.

Re: Getting correct widget height/width

2001-05-22 Thread Havoc Pennington
Ian King [EMAIL PROTECTED] writes: Is there a way of 'always' returning the correct height/width of a widget whether or not it has been expanded in its parent or is mapped/unmapped. What do you mean by correct? The current width/height of a widget is widget-allocation.width,

Re: vertical scale display; button prelighting

2001-05-22 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: Just set the prelight color to the same as the normal color. if its a toggle button, there are *2* normal colors. what then? I'm sure you could hack something, e.g. change prelight color when toggled. (I see the issue here now, Thomas sent me mail

Re: grid widget for gtk 2.0?

2001-05-22 Thread Havoc Pennington
Dale Arntson [EMAIL PROTECTED] writes: I'm trying to settle on library to learn for doing future gui development. I need a flexible grid widget to do lots of database display and updating. WxWindows seem to have what I need, but I have a preference in other regards for GTK+. Are there any

Re: mnemonics, version 1.3.5

2001-05-23 Thread Havoc Pennington
Steve Ramsay [EMAIL PROTECTED] writes: I am in the process of porting an app from 1.2.10 to 1.3.5. First of all thanks for doing this and sending in questions, now is the time to catch GTK 2 problems. My question is how to do this with the new mnemonics of 1.3.5, using

Re: Sun Cut/Copy/Paste keys

2001-05-23 Thread Havoc Pennington
Spear, Don H. Jr. [EMAIL PROTECTED] writes: I've seen posts on this subject in the archives but no solutions so I'll post once more in hopes someone smarter than me has found the answer. In a text window I want to associate the Cut/Copy/Paste keys on a Sun keyboard with the text functions.

Re: What's the Hangul shaper? Sounds like a power tool...

2001-05-23 Thread Havoc Pennington
[EMAIL PROTECTED] writes: (well, the TextBuffer object is broken IMHO and always contains at least a carriage return) Havoc This is a Broken On Purpose - even documented to work the way it Havoc does, IIRC. I agree it's broken, I've known about it for half a Havoc

Re: Clist : popup menu on right click

2001-05-23 Thread Havoc Pennington
fabien derreal [EMAIL PROTECTED] writes: is there any way to have a popup menu appear when clicking on a Gtk Clist using the right button of the mouse? It seems that the closest useable signal is select_row, which means using the left button of the mouse. Any hint? Use

Re: size of table cells

2001-05-24 Thread Havoc Pennington
Ignacio Nodal [EMAIL PROTECTED] writes: conversion from `int' to `enum GtkAttachOptions' cast it, i.e.: GtkAttachOptions (GTK_FILL | GTK_EXPAND) Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Source code widget

2001-05-24 Thread Havoc Pennington
Andrei Zmievski [EMAIL PROTECTED] writes: Anyone know of a good Gtk+ widget that implements good source code editing, with custom highlighting and all that? Judging by the Anjuta IDE, Scintilla is pretty nice. I think it has a weird Windows-like programming interface, but the user

Re: What's the Hangul shaper? Sounds like a power tool...

2001-05-24 Thread Havoc Pennington
Peter Finderup Lund [EMAIL PROTECTED] writes: There's also a Unicode line separator (which forces a line break inside a single paragraph). Why isn't this one used instead or together with 0x2029? You mean in the text widget? The lines in the text widget are actually paragraphs. Meaning

Re: Newbie question - colors

2001-05-24 Thread Havoc Pennington
Aubury, Mike [EMAIL PROTECTED] writes: I understand (from reading what I've found on the net) that setting colours can be done from within an rc file - but I really need to do it from a program. The program I'm writing compiles legacy 4GL code such as: DISPLAY Hello World TO

Re: What's the Hangul shaper? Sounds like a power tool...

2001-05-23 Thread Havoc Pennington
[EMAIL PROTECTED] writes: (well, the TextBuffer object is broken IMHO and always contains at least a carriage return) This is a Broken On Purpose - even documented to work the way it does, IIRC. I agree it's broken, I've known about it for half a year, Tk is broken in the same way - and it's

Re: HScale vs. VScale vs. Scale w/ orientation

2001-05-24 Thread Havoc Pennington
Ronald Bultje [EMAIL PROTECTED] writes: Now we're talking about the scales anyway. Will it have support for multiple sliders (like my example widget I had some time ago)? And will the code be more understandable? :-) Well, I wrote the new code, and I understand it far, far better than the

Re: setting the selection in a clist

2001-05-25 Thread Havoc Pennington
Norman Black [EMAIL PROTECTED] writes: How can I set the selection and focus item in a clist to the same item in the list. There is no set focus row API call. I am using gtk_clist_select_row to select an item in the clist. I think some people in the past have managed this by poking around

Re: xml

2001-05-28 Thread Havoc Pennington
Sven Neumann [EMAIL PROTECTED] writes: Monserrat Seisdedos Nuñez [EMAIL PROTECTED] writes: i have an xml file and i would like to create an app to view it as i would have a web browser. Can anybody open my eyes in such a goal??? Is there any xml interpreter in gtk or somethin like

Re: replacement for CList in GTK2

2001-05-30 Thread Havoc Pennington
Steve Ramsay [EMAIL PROTECTED] writes: In my current application (written with gtk 1.2.x) I have written a custom widget which derives from GtkCList. Now I am playing around with porting it to Gtk 1.3 and noticed that the CList is depricated. I am not sure on how to do this custom widget

Re: object_data - qdata?

2001-05-31 Thread Havoc Pennington
Skip Montanaro [EMAIL PROTECTED] writes: Where in 1.2 you have GTK_OBJECT (widget)-object_data Yikes, you shouldn't be using this I don't think. What are you trying to do, maybe we can give you what you should be using in that context. Owen pointed me at some stuff on his website

Re: error messages

2001-06-01 Thread Havoc Pennington
[EMAIL PROTECTED] writes: need to be able to suppress error messages while my program is running. Does anyone know how? Redirect stderr to /dev/null, or you can use g_log_set_handler(). Havoc ___ gtk-list mailing list [EMAIL PROTECTED]

Re: Left Alt and Right Alt

2001-06-01 Thread Havoc Pennington
Ian King [EMAIL PROTECTED] writes: Is there anyway to dynamically query whether a Left Alt key is pressed and not the right, I am using GDK_MOD1_MASK at the moment but this seems to do both. If you're using Alt as a modifier, then it will produce broken/surprising behavior for end users if

Re: Question about printing a drawable

2001-06-01 Thread Havoc Pennington
Jose Fernando Diago [EMAIL PROTECTED] writes: So my question is: What's the gdk-pixbuf? How can I use it? There's a new app that does exactly this (gdk-pixbuf for screenshots, gnome-print to print): http://lists.eazel.com/pipermail/nautilus-list/2001-May/003389.html Will probably come

Re: gtk_tree_view_column_set_min_width (column, 0) segvs

2001-06-04 Thread Havoc Pennington
Vitaly Tishkov [EMAIL PROTECTED] writes: #include gtk/gtk.h int main (int argc, char** argv) { GtkTreeViewColumn* column; gtk_init (argc, argv); column = gtk_tree_view_column_new (); gtk_tree_view_column_set_min_width (column, 1); } What am I doing wrong or is

Re: Compiling GTK apps with Sun's Forte compiler

2001-06-05 Thread Havoc Pennington
rhfreeman [EMAIL PROTECTED] writes: Sun's compiler doesn't seem to get on with GTK too well. Anyone got any ideas what I can do to change this rather odd behaviour? You have to build GLib apps with the same compiler used to build GLib, since GLib uses compiler-specific features according to

Re: adjustment property on scales and scrollbars get/set methods on range

2001-06-05 Thread Havoc Pennington
Skip Montanaro [EMAIL PROTECTED] writes: According to the 2.0 reference manual the GtkHScale, GtkVScale, GtkHScrollbar and GtkVScrollbar classes all define an adjustment property, but get_adjustment and set_adjustment methods are defined at the GtkRange level. Is this an inconsistency in

Re: Help, how to set background color of a text(window)

2001-06-06 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: whether there is an easy way to set up the background color of a text widget (or a window). Have you read Havoc's color-setting FAQ? Search the archives of this list; it was posted here recently. It would be nice if it showed up in the GTK FAQ.

Re: (2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap parameter (using C++)

2001-06-06 Thread Havoc Pennington
Ignacio Nodal [EMAIL PROTECTED] writes: but not the segmentation fault I get with pix = *pixmap; which I don't really understand ;(( You can't copy GdkPixmap by value. It can only be manipulated as a pointer. Havoc ___ gtk-list mailing list [EMAIL

Re: Hacks needed.

2001-06-08 Thread Havoc Pennington
Ian King [EMAIL PROTECTED] writes: 1) Does anyone know why the vertical scrollbar in a scrollable gtklist doesn't function when the list contains more than 2500 items? The size of GtkList is limited by the size of an X window, which is 32K pixels or so. Using GtkCList is recommended for

Re: odd assertion in gtktextiter.c

2001-06-08 Thread Havoc Pennington
Skip Montanaro [EMAIL PROTECTED] writes: I'm getting an assertion error in forward_line_leaving_caches_unmodified in gtktextiter.c (this is from the vanilla 1.3.5 distribution). There is a test of new_line: if (new_line != NULL) { ... do some stuff ... } else {

Re: hbox widgets with different heights

2001-06-09 Thread Havoc Pennington
Ignacio Nodal [EMAIL PROTECTED] writes: Is there any way to make a widget in a hbox smaller in height than the other widgets?? set_usize() isn't working because it only sets the widget size request, it doesn't force a size. What you want to do is put the button inside a GtkAlignment, then

Re: g_assert vs. g_return[_val]_if_fail

2001-06-10 Thread Havoc Pennington
Reinhard Mueller [EMAIL PROTECTED] writes: * g_assert terminates the application, where g_return... only terminates the function * therefore, g_assert lets me jump into gdb as soon as it is hit, while g_return... doesn not. This seems to be an advantage for g_assert. You can always run the

Re: Lightweight GTK+?

2001-06-10 Thread Havoc Pennington
Simon Budig [EMAIL PROTECTED] writes: Is it possible to reduce the size of the GTK Library (we don't have unlimited resources) e.g. by removing some unused widgets? You can do a custom GTK build and remove a substantial number of the widgets and some other features (e.g. unused image loaders

Re: gtk font dependancies

2001-06-11 Thread Havoc Pennington
Ira Weiny [EMAIL PROTECTED] writes: My question is: where does gtk get it's fonts from? (xfs?) They come from the X server, GTK isn't doing anything different from any other X app. Havoc ___ gtk-list mailing list [EMAIL PROTECTED]

Re: GObject

2001-06-11 Thread Havoc Pennington
Ron Steinke [EMAIL PROTECTED] writes: Could someone explain how the properties-changed signal in GObject is supposed to work? How do you write objects so they use it properly? You don't use it - we are campaigning to get it removed because it slows down GTK a lot and is not

Re: Automatic focus handling? How do I turn it off?

2001-06-11 Thread Havoc Pennington
Ken Simpson [EMAIL PROTECTED] writes: I was told that gtk has a mechanism for automatically setting or removing the focus on widgets in response to events such as keypresses. I think this mechanism has been enabled somewhere inside Mozilla and is causing all kinds of focus-related problems

Re: GDK-PixBuf

2001-06-11 Thread Havoc Pennington
Andrej Prsa [EMAIL PROTECTED] writes: image = gdk_pixbuf_new_from_file (test.jpg); canvas = gdk_pixmap_new (window-window, 262, 392, 8); The 8 argument here is totally bogus, it will only work if your display is 8-bit. If window-window existed (and it doesn't here) you could then pass -1

Re: Error running configure for CVS atk

2001-06-11 Thread Havoc Pennington
Hi, Get latest pkg-config from http://www.freedesktop.org/software/, and be sure to re-run autogen.sh. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: How to keep (force) window focus?

2001-06-11 Thread Havoc Pennington
David J. Topper [EMAIL PROTECTED] writes: I mean a window, they are GtkWindows, not popups. I'm using them to get parameters for items created on the fly (eg., length, width, height) and I don't want the windows to drop in back when I accidentally move the mouse off them. I don't

Re: Pixmaps and focus

2001-06-11 Thread Havoc Pennington
Ian King [EMAIL PROTECTED] writes: If I were to write a gtktext replacement using gtkpixmap, This is a totally weird thing to do, btw. 1) Letting the pixmap receive the focus when the user clicks on the editor. Set the GTK_CAN_FOCUS flag, handle focus_in_event and focus_out_event, and

Re: Automatic focus handling? How do I turn it off?

2001-06-11 Thread Havoc Pennington
Ken Simpson [EMAIL PROTECTED] writes: Is this the code which performs automatic focus changing in response to keypresses? It certainly seems to fit the symptoms :) Hmm.. But there doesn't appear any way of turning it off. Yep, that's the code. Writing other widget sets is not what GTK is

Re: human language support

2001-06-13 Thread Havoc Pennington
Jim Edwards [EMAIL PROTECTED] writes: 1. Can someone point me to an example of, or document about, how to build a gtk+ gui with multi-language support. Just read the gettext info pages, GTK works the same as a non-GUI program basically. 2. I have an application in C with no gui and one

New release of GTK+ libraries (1.3.6)

2001-06-14 Thread Havoc Pennington
A new release of the development versions of GTK+ and associated libraries (GLib, Pango, Atk) is available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ The JPEG/PNG/TIFF libraries and pkg-config 0.7 are needed to compile this release. These are available at:

Re: alpha channel in GdkPixbuf

2001-06-14 Thread Havoc Pennington
Ron Steinke [EMAIL PROTECTED] writes: Is there any way to extract the alpha channel information from a GdkPixbuf (for example, writing it to an array or a grayscale pixmap)? You just iterate over the pixels in the pixbuf. They are arranged like so for a pixbuf with alpha: RGBA RGBA RGBA

Re: [set][get]_property

2001-06-14 Thread Havoc Pennington
Ron Steinke [EMAIL PROTECTED] writes: From examining the code, it looks like the [set,get]_property functions of GObject (and its descendents) only handle the properties of the object itself and not those of its ancestors. Is this true, and if so is there a reason for this? Sure, to avoid

Re: trouble with pango build - incorrect -I flags

2001-06-14 Thread Havoc Pennington
Skip Montanaro [EMAIL PROTECTED] writes: I got the 0.7 version of pkg-config, cvs up'd in glib, atk and pango. Glib and atk built and installed okay, but after a successful autogen.sh in the pango directory make CFLAGS=-g says: The default CFLAGS are: CFLAGS = -g -O2 -Wall

Re: Finding gtkwidget from GdkWindow

2001-06-14 Thread Havoc Pennington
Ian King [EMAIL PROTECTED] writes: If I retrieve the gdkwindow that the mouse pointer is currently over (gdk_window_at_pointer), what is the easiest way to find the relative gtkWidget for which this gdkwindow is associated with. It's gdk_window_get_user_data (window). The user data on a

Re: Lightweight GTK+?

2001-06-15 Thread Havoc Pennington
Simon Budig [EMAIL PROTECTED] writes: Static linking currently is not a solution, since we have multiple applications. So - how would I remove widgets from the Build? Simply deleting the files from the Makefile? For many widgets that should work, yes. We'd kind of like to have a nicer way

Re: Minimize and Restore Windows

2001-06-15 Thread Havoc Pennington
Ralph Walden [EMAIL PROTECTED] writes: [Sorry, but I'm asking this again...] Does anyone know if GTK 1.2 has functionality to raise and lower (minimize) windows on the desktop programmatically? To deiconify, call gdk_window_show (window_widget-window), to iconify you basically call

Re: Help with popup/popdown with pointer grab.

2001-06-16 Thread Havoc Pennington
[EMAIL PROTECTED] writes: /* Popup window and grab pointer */ gdk_window_show(window-window); gdk_window_raise(window-window); if (gdk_pointer_grab (window-window, FALSE, GDK_POINTER_MOTION_MASK, window-window, NULL,

Re: Help with popup/popdown with pointer grab.

2001-06-16 Thread Havoc Pennington
[EMAIL PROTECTED] writes: However even putting gdk_flush()'es before the grab doesn't solve the problem. What is the solution then ? How can i wait till window is mapped ? A flush doesn't help - that ensures your show request has gone to the server, but not that the window manager has

Re: GtkCList GtkScrolledWindow

2001-06-17 Thread Havoc Pennington
Charlie Schmidt [EMAIL PROTECTED] writes: im not a big fan of GtkCList, it takes a long long time to insert a lot of rows, but i suppose its all we have, right? It's actually pretty fast, i.e. it's not doing a lot of work per-row. It's just that this operation is inherently O(n). You aren't

Re: drawing area in scrolled window

2001-06-17 Thread Havoc Pennington
Chris [EMAIL PROTECTED] writes: Hello. I am having trouble using a drawing area in a scrolled window. I am unable to scroll the drawing area. I have tried using a callback for the viewport in the scrolled window to set the vertical and horizontal adjustments for the size of the

Re: Scrolled window in ctree

2001-06-18 Thread Havoc Pennington
Ian King [EMAIL PROTECTED] writes: Does anyone know why the horizontal scrollbar for ctree (scrolled_window_add_with_viewport) is not viewable at all. I also get size allocation warnings everytime I use the ctree? I need to fix this as ctrees are used for our visual debugger. Thanks for

Re: Trouble setting GdkEventMask

2001-06-18 Thread Havoc Pennington
Ron Steinke [EMAIL PROTECTED] writes: I'm trying to connect to the key-press-event of a wigdet derived from GtkDrawingArea. It has a window, and I'm using gtk_widget_add_events() to add GDK_KEY_PRESS_MASK to the GdkEventMask for the widget. Nonetheless, the signal isn't being emitted

Re: Popup windows

2001-06-18 Thread Havoc Pennington
Ian King [EMAIL PROTECTED] writes: In follow up to the previous message, it seems that the key events are not passed through for a popup window, but are for a top level window. Is there a reason for this? Yes, GTK_WINDOW_POPUP windows are not known to the window manager. So the window

Re: Popup windows

2001-06-18 Thread Havoc Pennington
Ian King [EMAIL PROTECTED] writes: I want to create a window with no decorations, that allows widgets inside it to behave as they do with a normal top level window. Can I create a top level window that 1) Has no decorations and only shows the client area. 2) Cannot be moved or resized

Re: Trouble setting GdkEventMask

2001-06-18 Thread Havoc Pennington
Ron Steinke [EMAIL PROTECTED] writes: From: Havoc Pennington [EMAIL PROTECTED] Ron Steinke [EMAIL PROTECTED] writes: I was missing that, so thanks. However, I changed that, and it still doesn't work. What else is missing? Ah, I forgot this is GTK 1.2. You need

Re: Trouble setting GdkEventMask

2001-06-19 Thread Havoc Pennington
Ron Steinke [EMAIL PROTECTED] writes: That was it. Thanks. Perhaps a short lecture on the way focus works in GTK is in order? Well, it isn't really that complicated from this standpoint - if you want your widget to get focus you set GTK_CAN_FOCUS, then whenever you get the focus (normally

Re: Delta between GTK+ and Gnome

2001-06-19 Thread Havoc Pennington
Markus Kühni [EMAIL PROTECTED] writes: If I just use GTK+ instead of GTK+ plus Gnome, what am I missing? For GTK 1.2, you are missing GnomeCanvas, GnomeDialog, stock icons. Also unless you use gdk-pixbuf you're missing image loading. For GTK 2.0, you are missing GnomeCanvas but there's a

Re: Delta between GTK+ and Gnome

2001-06-19 Thread Havoc Pennington
Ronald Bultje [EMAIL PROTECTED] writes: Uniform style. The fact that every New document button in a toolbar looks the same in each and every app, and the same for save, load, cut, copy and so on. That's what makes Gnome so attractive imho, most users (if not all) really appreciate having a

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