Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García [EMAIL PROTECTED] writes: I've been trying to copy a bitmap into a bitmap with gdk_draw_pixmap(), without success. Is it necesary to use XCopyPlane in lieu of some gdk routine? When you say without success, what happens? It should work fine. Basically all I want to

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García [EMAIL PROTECTED] writes: After looking at a book by Barkakati, (X Window System Programming, 1991) he says that bitmaps should be copied into pixmaps by XCopyPlane(), not XCopyArea() (the latter being used by gdk_draw_pixmap()). That's right, but I thought you were

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García [EMAIL PROTECTED] writes: But isn't a bitmap nothing more than a pixmap of depth 1? If gdk_pixmap_new(window,pix_w,pix_h,1); is not the correct way to create an empty bitmap with gtk, how should it be created? That is the right way. One of us is missing some detail.

Re: change the colour of widget after it has been shown

2002-01-17 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: http://pobox.com/~hp/gtk-colors.html and Havoc - can we get a link to this document added to the GTK+ FAQ? it and the threads questions are the 2 most common queries here, and being able to just tell people to look at the FAQ would be good. Yeah,

Re: How to render text to a drawable? (gtk+ 1.3)

2002-01-17 Thread Havoc Pennington
Jason Tackaberry [EMAIL PROTECTED] writes: I see a pango_x_render, which lets you render to an X drawable, but I don't see any gdk equivalent. I suppose I could fetch the X drawable from gdk but it seems to me the _right_ way to do this shouldn't be that convoluted. I'm convinced I'm

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García [EMAIL PROTECTED] writes: gc = gdk_gc_new (h-window); Try using one of the bitmaps here instead of the window, the bad match may be a GC/drawable issue rather than src/dest drawable. Havoc ___ gtk-list mailing list [EMAIL

Re: configure event just means resized or first displayed right?

2002-01-17 Thread Havoc Pennington
Hi, Configure event means the drawing area got a new size. This always happens at least once when the drawing area first comes onscreen. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Pango and wrapping

2002-01-18 Thread Havoc Pennington
Jason Tackaberry [EMAIL PROTECTED] writes: I am calling set_width on a Pango layout in order to force wrapping within a specific boundary. What I want, however, is something of a combination of PANGO_WRAP_WORD and PANGO_WRAP_CHAR. That is, wrap by word if you can, but if a word boundary

Re: [INIMSS] How to make a default button.

2002-01-20 Thread Havoc Pennington
Dino Cherian K [EMAIL PROTECTED] writes: How can I make a button click when I press Enter from another widget in the dialog. If the other widget is a GtkEntry, the usual way is to connect gtk_window_activate_default() to the activate signal on the entry: gtk_signal_connect_object

Re: GdbRgb flicker

2002-01-20 Thread Havoc Pennington
Jamie Guinan [EMAIL PROTECTED] writes: It looks like XMoveResizeWindow actually clears the window contents. Of course, I would like it to leave the window contents as-is, and just redraw the RGB data over top of whatever was there. To leave the contents as-is one approach is to call

Re: Difficulties in using GTK from Emacs

2002-01-20 Thread Havoc Pennington
mails to the Eclipse project: From: Havoc Pennington [EMAIL PROTECTED] Subject: Re: [platform-swt-dev] GTK in CVS To: [EMAIL PROTECTED] Date: 05 Dec 2001 16:23:25 -0500 [EMAIL PROTECTED] writes: - positioning widgets such that they do not move when the parent is resized (we are using a fixed

Re: why that not working?

2002-01-21 Thread Havoc Pennington
Hi, Read http://pobox.com/~hp/gtk-colors.html Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: gtk-1.3.12.90 (redhat rawhide) GtkTreeView bug?

2002-01-21 Thread Havoc Pennington
Boszormenyi Zoltan [EMAIL PROTECTED] writes: I tried gtk-demo from the RedHat rawhide's gtk2-1.3.12.90. I found it quite nice and stable for most things. However, the Editable Cells demo crashes when I do the following: select one of the cells is the last row and press the remove item

Re: Memory Leak? pango_layout_set_markup

2002-01-21 Thread Havoc Pennington
Jason Tackaberry [EMAIL PROTECTED] writes: If this is a genuine bug, please let me know and I will file it in bugzilla. If something does need to be freed, the API documentation should be updated. :) I just fixed it in CVS, thanks for the nice test case. (Simple compilable test case

Re: Difficulties in using GTK from Emacs

2002-01-21 Thread Havoc Pennington
Richard Stallman [EMAIL PROTECTED] writes: It might be important to explain this more explicitly in the documentation. If there are already solutions to some of the problems Jan encountered, I think they should be documented too. Can you do that? Sure, I do my best to work on GTK

Re: How to use GError?

2002-01-22 Thread Havoc Pennington
Luis Velez [EMAIL PROTECTED] writes: I am trying to use gdk_pixbuf_save function but this function uses a GError as a parameter. So I create the GError and use the g_error_new_literal function to give it a domain, code and etc... The problem is that even including the glib.h GError gives me

Re: Gettext Gtk1.3.12

2002-01-23 Thread Havoc Pennington
Andreas Scherf [EMAIL PROTECTED] writes: Hello, i am porting my little app to Gtk2 and i have the problem the the gettext Strings such as (_(xyz) On some String it shows me: Gtk-WARNING **: Invalid input string and some are just empty. On normal String i got the message : Invalid UTF8

Re: pango_layout_set_text not returning?

2002-01-23 Thread Havoc Pennington
Jason Tackaberry [EMAIL PROTECTED] writes: However, after repeating the procedure I used to cause the above problem, I got this message on the terminal: Xlib: unexpected async reply (sequence 0x3a1ae)! And the process started to eat all available CPU. You're using threads? Now I

Re: pango_layout_set_text not returning?

2002-01-23 Thread Havoc Pennington
Jason Tackaberry [EMAIL PROTECTED] writes: On Thu, 2002-01-24 at 01:26, Havoc Pennington wrote: You're using threads? No. I am forking, though. But I was able to reproduce the problem even with the code that forks commented out. I do sometimes (typically right before a crash) see

Re: pango_layout_set_text not returning?

2002-01-24 Thread Havoc Pennington
Jason Tackaberry [EMAIL PROTECTED] writes: Anyway, I believe the problem is a race condition with the fork -- or more specifically, the handler for SIG_CHLD. I'm doing gtk+ things inside the handler, which of course can interrupt other gtk functions and, I presume, cause some internal

Re: Portable wrapper for fork/exec wanted. Where find? (Ever used g_spawn_*??? - glib?)

2002-01-25 Thread Havoc Pennington
Chris Seberino [EMAIL PROTECTED] writes: Anyone know if this wrapper exists??? Havoc mentioned g_spawn_*. My knowledge of that is scarce and the docs on this even scarcer. There are plenty of docs on it: http://developer.gnome.org/doc/API/2.0/glib/glib-spawning-processes.html Havoc

Re: Gettext Gtk1.3.12

2002-01-25 Thread Havoc Pennington
Andreas Scherf [EMAIL PROTECTED] writes: And i changed the po files with KBabel (sorry for that) but nothing happened (some lines are invisible) im unsing the german charakters öä,ü in those lines and the aren`t shown up in the running program what could i do here ? How does a UTF8 charcter

Re: how to fully quit out of recursive main loops?

2002-01-25 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: why would i want to? imagine the user takes some steps to invoke a quit function. if there are nested main loops (e.g to run a dialog), gtk_main_quit() won't work as a way to return control to whatever called gtk_main_run() at the top level. People

Re: TAB operation in text widget

2002-01-25 Thread Havoc Pennington
Hi, If you guys are using GtkTextView just set the tab stops with gtk_text_view_set_tabs() or whatever, or use the defaults. If it doesn't work right with proportional fonts it's just some sort of bug, file it on http://bugzilla.gnome.org. If you're using GtkText, you're not going to get it

Re: how to fully quit out of recursive main loops?

2002-01-25 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: g_main_quit_all (); which would apply g_main_quit() to all current main loops. it seems like a rather serious design defect, I think you are just writing your code in a way no one else writes their code. ;-) Main loops are supposed to be

Re: What must I include to use GError

2002-01-25 Thread Havoc Pennington
Luis Velez [EMAIL PROTECTED] writes: In the reference manual it says that the only thing one must include in order to use GError is glib.h but I include glib.h and all the other libraries from the 'glib-config --cflags -- libs' but the GError data type is not recognized by the compiler. Must

Re: how to fully quit out of recursive main loops?

2002-01-25 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: so yes, perhaps its a small set of programs, but we're doing it the right way, and the rest of you are just being lazy :) With no apparent negative impact. ;-) given that the point is to return to the point where GTK/glib is not running anymore, it

Re: TAB operation in text widget

2002-01-25 Thread Havoc Pennington
Philip Bunce [EMAIL PROTECTED] writes: Perhaps I am using the wrong version. But can't find anything about a widget called GtkTextView in my documentation. I am using 1.2.10 gtk+ and glib. Yes, GtkTextView is only in 1.3.x/2.0. Havoc ___

Re: key_release_event with GtkText widget

2002-01-25 Thread Havoc Pennington
Hi, You probably need to select GDK_RELEASE_MASK with gtk_widget_add_events(). Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: floating reference count

2002-01-26 Thread Havoc Pennington
[EMAIL PROTECTED] writes: Can anyone explain me what is a floating reference count (I saw this on GTK2.0 GtkObject API Reference)? What is the difference between this and normal reference count (if any)? If you read the top of the page on GtkObject it explains this a bit. The special

Re: queues - glib2

2002-01-26 Thread Havoc Pennington
Jan Vittrup Hansen [EMAIL PROTECTED] writes: I am looking for a basic queue implementation for use in C project. Along the way I stumbled across GLib, and the datatype GQueue. However, it seems present only in GLib2, which I cannot find in active use anywhere. Is this currently under

Re: XtWindow in gtk?

2002-01-26 Thread Havoc Pennington
Vahid Zahiri [EMAIL PROTECTED] writes: What can i use instead of XtWindow function in gtk? I need get window ID (integer number). how can i get it in Gtk? #include gdk/gdkx.h and use GDK_WINDOW_XID (gdk_window). For widgets widget-window is the GdkWindow. You need the widget to be

Re: How add superscripts to GTKLabel text?

2002-01-28 Thread Havoc Pennington
Chris Seberino [EMAIL PROTECTED] writes: How add superscripts to GTKLabel text? You can only do this in GTK 1.3.x/2.0. It is documented here: http://developer.gnome.org/doc/API/2.0/gtk/gtklabel.html See Markup section. Havoc ___ gtk-list mailing

Re: HELP: Compiling GTK+ Applications on UNIX

2002-01-31 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: i sincerely hope that in a future release of the 1.2 series, pkg-config gets added. Note that pkg-config has some dubious legacy hacks in it - try pkg-config --cflags gtk for example. Havoc ___ gtk-list

Re: GtkEntry color Background

2002-01-31 Thread Havoc Pennington
Isaac Pernas [EMAIL PROTECTED] writes: Estoy intentando cambiar el fondo d un GtkEntry pero por más que lo intento no me deja. Nosé que estoy haciendo mal. La versión de mis librerías Gtk es la 1.2. I'm trying to change de background color for my GtkEntry but i can´t. I don't know what i'm

Re: GtkListStore getting values in Gtk2.0

2002-01-31 Thread Havoc Pennington
Andreas Scherf [EMAIL PROTECTED] writes: Hello, im porting some apps to Gtk+2.0, i wondering how to get values back from a GtkListStore ? I saw only functions to add or del values inside the List but no function to get the data back.What i want is to print a GtkTreeView so istored the data

Re: GTK without X ???

2002-02-01 Thread Havoc Pennington
Flávio Alberto Lopes Soares [EMAIL PROTECTED] writes: Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes ? You will need to port to 1.3.x/2.0, which is fairly simple and a good idea anyway. There's some information in the

Re: GUI design

2002-02-01 Thread Havoc Pennington
Hi, User Interface Design for Programmers by Joel Spolsky is good. It's online in shortened form but the paper version is enough better to be worth buying I think. Havoc ___ gtk-list mailing list [EMAIL PROTECTED]

Re: setting the font in a program using gtk 1.3.12

2002-02-01 Thread Havoc Pennington
K P-W [EMAIL PROTECTED] writes: I have been trying to find out how tp set the font and the fontsize in my program using gtk version 1.3.12 because the standard font is unreadable. This really isn't a reason to hardcode the font in your app - that will just result in every app having a

Re: HELP: Compiling GTK+ Applications on UNIX

2002-02-01 Thread Havoc Pennington
Sven Neumann [EMAIL PROTECTED] writes: I hope you are joking here. Forking gtk-config would be a really evil hack. If that's indeed what pkg-config does, a crash is what you deserve. It allows you to use PKG_CHECK_MODULES with the GNOME 1 platform. It's kind of a cheesy special case, but

Re: GTK without X ???

2002-02-01 Thread Havoc Pennington
Flávio Alberto Lopes Soares [EMAIL PROTECTED] writes: Where can I download GTK+2.0 ? Get 1.3.13 (the unstable version that will become 2.0). It's on ftp.gtk.org. Havoc ___ gtk-list mailing list [EMAIL PROTECTED]

Re: HELP: Compiling GTK+ Applications on UNIX

2002-02-01 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: ah. thats different. thats an m4 macro that probably calls pkg-config and handles failure. that doesn't mean pkg-config itself can handle it. No, pkg-config itself definitely does ask a set of legacy *-config scripts for results if it can't find .pc

Re: GTK2 and gettext

2002-02-01 Thread Havoc Pennington
Ralph Walden [EMAIL PROTECTED] writes: It seems to me that glib innow REQUIRES the use of GNU gettext, which is covered under GPL. If that's true, then GTK2 can no longer be used for commercial software development. Is this intentional? Am I missing something? Is there a way to

Re: GTK2 and gettext

2002-02-01 Thread Havoc Pennington
Ralph Walden [EMAIL PROTECTED] writes: Where can I obtain the LGPL version of gettext? I downloaded the gettext-0.11 version from gnu.org, and there is no mention of LGPL, only GPL. Look at intl/COPYING.LIB-2.1 in the source tree. Only the library part of gettext is LGPL, the command line

Re: How to set only ONE Column editable (GTK2)

2002-02-01 Thread Havoc Pennington
Andreas Scherf [EMAIL PROTECTED] writes: I have another problem, i have 2 columns : Number Name Now i want that the user could edit the name but not want that he could change the number. I have solved this by dont let the changes come trough : column = g_object_get_data (G_OBJECT (cell),

Re: scrolled window: scroll in only one direction?

2002-02-02 Thread Havoc Pennington
Vincent Arkesteijn [EMAIL PROTECTED] writes: I would like to have a scrolled window, in which the child is only scrolled in one direction. In the other direction, the child's size should change when the user changes the size of the window. Is this possible? I think you just want to set

Re: gtk+1.3 library

2002-02-04 Thread Havoc Pennington
satyajit kanungo [EMAIL PROTECTED] writes: I found the gtk sources still using deprecated features such as GtkTypeInfo,GtkType variables, gtk_signal_new etc. Are there any plans to removed these features in future versions. I am thinking of making the changes to remove the

Re: Run time error in gtk1.3 application

2002-02-04 Thread Havoc Pennington
Flávio Alberto Lopes Soares [EMAIL PROTECTED] writes: I make some modifications in my Makefile (attached in mail) in order to compile my application in gtk+1.3 (gtk+2.0), in compilation I get this messages (was several similar messages to each file of my application, I put only piece of

Re: Release date of GTK+ 2.0 ?

2002-02-05 Thread Havoc Pennington
Volkan Arslan [EMAIL PROTECTED] writes: does someone know, when GTK+ 2.0 will be released ? I have looked at www.gtk.org, but couldn't find anything regarding the release date of GTK+ 2.0. Look at developer.gnome.org/dotplan, it will be out before GNOME 2 is. Havoc

Re: gtk+1.3 library

2002-02-06 Thread Havoc Pennington
satyajit kanungo [EMAIL PROTECTED] writes: Well, I see gtk+ using lot of deprecated calls. I also saw many patches submitted in bugzilla (#52790) but not yet gone into the source. I have replaced all the GtkType GtkTypeInfo to GType GTypeInfo. The attached diff contains the

Re: What's purpose of returned boolean in expose/configure event functions?

2002-02-06 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: there are also so-called after handlers (connected with gtk_signal_connect_after()) which are called after the default handler. its not clear to me if these will still be called in 1.3/2.0 if a before handler returns TRUE. owen/havoc and others will

Re: GtkEntry not accepting keyboard input (GTK+ 1.2)?

2002-02-07 Thread Havoc Pennington
Ronald Kneusel [EMAIL PROTECTED] writes: I have a GtkEntry which is attached to a fixed widget and that is attached to a frame in another fixed widget. The entry box appears and I can set the text, highlight the text with the mouse, but cannot type in the box. Anything typed appears at

Re: GtkEntry not accepting keyboard input (GTK+ 1.2)?

2002-02-07 Thread Havoc Pennington
Ronald Kneusel [EMAIL PROTECTED] writes: You were correct! I created a full screen window as a POPUP window and it wasn't getting keyboard focus. I made it a TOPLEVEL window without decorations and all it well. Right, POPUP windows should never be used if you need to type into the window.

Re: Equivalents for gdk_input_remove,gdk_input_add etc

2002-02-08 Thread Havoc Pennington
Deepa [EMAIL PROTECTED] writes: gdk_input_remove () g_source_remove() gdk_input_add () g_io_channel_add_watch () gdk_rgb_init () No longer required, simply delete all instances of this. Havoc ___ gtk-list mailing list

Re: Memory problems while using a clist

2002-02-08 Thread Havoc Pennington
Kerber, Ulrich [EMAIL PROTECTED] writes: I wrote an app with a clist showing the contents of a log file; the clist is updated every 60 seconds. Although i do a gtk_clist_clear, the memory used is increasing with every run, even if no element is added. After a day of work the amount reaches

Re: Iconify/deioconfy gtk windows

2002-02-08 Thread Havoc Pennington
nicholas allen [EMAIL PROTECTED] writes: I thought there would be a gtk_window_iconify function or something similar. GTK 2 has this function. In 1.2, you probably want to look at the GTK 2 source and copy what it does. Check out the ICCCM to understand why it does it. Havoc

Re: Equivalents for gdk_input_remove,gdk_input_add etc

2002-02-08 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: last time i looked at the replacement functions, their interface was intimidating in the extreme. it required me to understand a *LOT* more about glib than i wanted to. by contrast, gdk_input_*() were pitched at exactly the right level. i spent 10

Re: catching unix signals from Gtk

2002-02-10 Thread Havoc Pennington
[EMAIL PROTECTED] writes: I could open a pipe and have the unix signal handler write a single byte to it when there's an interrupt, and then have GTK attach an input handler to the output side of the pipe. This is in general the best way to do it we've come up with. These all seem to be

Re: At the end of my tether with gtk_adjustment_value_changed()

2002-02-10 Thread Havoc Pennington
James Vanns [EMAIL PROTECTED] writes: What am I doing wrong ?? Am I completely misunderstanding the use of these functions!!??? No, they should work as you described. I'm guessing you're looking at the wrong piece of code for the bug. Havoc ___

Re: Problem with gtk_im_context_get_surrounding ()

2002-02-12 Thread Havoc Pennington
Aleksey A. Malyshev [EMAIL PROTECTED] writes: I have a problem with gtk_im_context_get_surrounding (). Test case: #include gtk/gtk.h int main (int argc, char** argv) { GtkIMContext *context; gint *index; gchar **text; gboolean res; gtk_init (argc, argv);

Re: GtkObject in gnome-utils/Gnome-Calculator

2002-02-13 Thread Havoc Pennington
Yogeesh MB [EMAIL PROTECTED] writes: In gnome-utils/Gnome-calculator has both GTK_OBJECT_CLASS destroy call :gnome_calc_destroy(GtkObject * gobject), and G_OBJECT_CLASS finalize :gnome_calc_finalize(GObject * gobject). GTK_OBJECT_CLASS is deprecated and there is no destroy call in

Re: How do I change the default language in GTK / GNOME?

2002-02-13 Thread Havoc Pennington
Morten Andersen [EMAIL PROTECTED] writes: Somehow my default language changed from english to polish or something on almost all of my gnome apps and all GTK apps. Does anyone know how to change it back to english?? This is a function of the desktop or operating system, not GTK. Maybe the

Re: scrolling gtktextview

2002-02-13 Thread Havoc Pennington
Dennis Bjorklund [EMAIL PROTECTED] writes: I add lines at the end of the textview and would like it to scroll down to the bottom so I can see the new lines. But I can't get it to work. I tried: gtk_text_buffer_get_end_iter (buf, iter); gtk_text_view_scroll_to_iter (view, iter,

Re: Update of GtkRadioMenuItems wihtout emitting any signal

2002-02-15 Thread Havoc Pennington
Mark R. Rubin [EMAIL PROTECTED] writes: o Someone (Havoc??) must know the right solution to this problem. It depends on the situation. Some approaches are: - gtk_signal_handler_block (g_signal_handlers_block, and by_func variants) - don't do anything in the callback if the value hasn't

Re: Update of GtkRadioMenuItems wihtout emitting any signal

2002-02-18 Thread Havoc Pennington
Mark R. Rubin [EMAIL PROTECTED] writes: o I (possibly mis-) read Havoc's: if (current_state == gtk_toggle_button_get_active (toggle)) return; FWIW I think I did mean what Paul said, i.e. current_state is the state of the object the toggle button affects. Havoc

Re: move-event

2002-02-20 Thread Havoc Pennington
Ronald Bultje [EMAIL PROTECTED] writes: is there an event which is triggered by moving windows? expose_event only gets called on a full repaint, I basically need to do some work whenever the drawing area is being increased/decreased in size or is being moved, either relative to the parent

Re: GTK and non-monospace fonts

2002-02-21 Thread Havoc Pennington
Bartosz \Neron\ Leper [EMAIL PROTECTED] writes: I'm using Mandrake Linux and I've experienced some problems with displaying GTK widgets: all applications I have that are written using GTK are calculating word length incorrectly, which causes labels unreadable in some cases. This doesn't

Re: Creating a font based on the GTK default font

2002-02-21 Thread Havoc Pennington
Dominic Sacré [EMAIL PROTECTED] writes: Hmm, a nightmare, indeed... But is there no reasonable way to get at least the name (logical font description) of the default font? Not really... you have to use GdkFontPrivate I think. Eel does it somehow or other. Havoc

Re: g_signal_connect_swapped

2002-02-22 Thread Havoc Pennington
Peter Van Osta [EMAIL PROTECTED] writes: Is there still a manual somewhere that describes the GTK1.2 version of GTK ? If you download the GTK 1.2 tarballs (gtk+-1.2.x.tar.gz) there's a copy of the 1.2 tutorial in there. Havoc ___ gtk-list mailing

Re: interesting thread issue at exit()

2002-02-22 Thread Havoc Pennington
handler. (existance pointed out by Stefan Kost) 2001-02-19 Havoc Pennington [EMAIL PROTECTED] * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it (gdk_init_check): no atexit func atexit functions are completely evil - the intent is to have none. Havoc

Re: When will GTK+2.0 be released?

2002-02-24 Thread Havoc Pennington
Jimmy Lin [EMAIL PROTECTED] writes: I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much better now? Please give me some advices. Thanks!!! Yes, I would start with 2.0. Havoc

Re: Gtk feature requests

2002-02-24 Thread Havoc Pennington
[EMAIL PROTECTED] writes: Hi all; I just saw that gtk 2 is coming out soon. It's probably too late for 2.0, but could I get folks to consider the following features for a future release? These comments stem from frustrations I encountered while developing under gtk. Most of these could

Re: garbage collection (long)

2002-02-24 Thread Havoc Pennington
Enrico Weigelt [EMAIL PROTECTED] writes: if someone's interested, i'll do the most of the work with implementing an GC (Hans-Boehm-GC) in glib/gtk, but i need some help with testing the build stuff (i wont touch this spooky automake) ... I already did this a while ago, it's in CVS as

Re: how to align a label in GtkTable

2002-02-25 Thread Havoc Pennington
¶À¼y Kason Huang [EMAIL PROTECTED] writes: hi: you could try gtk_label_set_justify(GtkLabel *label,GtkJustification jtype); typedef enum { GTK_JUSTIFY_LEFT, GTK_JUSTIFY_RIGHT, GTK_JUSTIFY_CENTER, GTK_JUSTIFY_FILL } GtkJustification; for example: gtk_label_set_justify

Re: Making a label text bold

2002-02-26 Thread Havoc Pennington
Anjali Grover [EMAIL PROTECTED] writes: In order to get a bold label text, I loaded the desired font into GtkFont boldfont; Then I tried to get bold label text via: label=gtk_label_new(text); style = gtk_widget_get_style(label); style-font = boldfont; The result was everything

Re: GTK_TYPE_BOXED

2002-02-26 Thread Havoc Pennington
Ralph Walden [EMAIL PROTECTED] writes: Can anyone comment on the changes between 1.2 and 2.0 that woud break code using gtk_type_unique(GTK_TYPE_BOXED, some_subclass_info ); in the _get_type function for a derived type? You probably want g_boxed_type_register_static() instead. Havoc

Re: file handling with fopen() and fclose()

2002-02-27 Thread Havoc Pennington
John Breen [EMAIL PROTECTED] writes: Ok, I sit corrected. I guess I'll have to add more overhead and figure out _how_ to handle the authentication. PAM _looks_ like it will do it, but then again maybe not. Has anyone done such a thing then, and prepared to share the methodology? If

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
satyajit kanungo [EMAIL PROTECTED] writes: Do we always need to attach the expose event to the drawing area to draw anything on it . Is there any other way where I can force the drawing . Yes, all drawing should happen in expose_event. There are other ways to do it sometimes, but

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
Norman Black [EMAIL PROTECTED] writes: Are you saying that when a user hits the e key in my program I should generate an expose event to draw the e in my window rather than simply draw the e in response to them pressing e. What you should do is call gtk_widget_queue_draw_area() or

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
Norman Black [EMAIL PROTECTED] writes: The expose handler must be able to redraw any area anyway, so you may as well put all drawing there for code cleanliness; putting all drawing there is also crucial to be sure you don't have any flicker in GTK 2. My code does not flicker now on

Re: Pango, or font size??

2002-03-01 Thread Havoc Pennington
Vahid Zahiri [EMAIL PROTECTED] writes: hi all i use this fuction, gtk_label_set_markup (GTK_LABEL (label), span size=\150\color=\red\Red/span bigiText/i/big); but i can't set size with this. anyone can help me ? and where i can find Pango samples? Have you read

Re: progress bar issues

2002-03-09 Thread Havoc Pennington
Srinivasan Sriram [EMAIL PROTECTED] writes: I have a piece of code inside a button click event handler to create 25 child processes. After forking each child process, I want to update a progress bar to let the user know the status of the forking and how may processes it has forked. I am

Re: PangoFontMetrics

2002-03-09 Thread Havoc Pennington
Venkat Ramakrishnan [EMAIL PROTECTED] writes: Thanks a lot for the help . I am using pango_layout_get_extents() but I think using the above call I can get the width and height of the string I am using but not the ascent and descent . Please correct me if I am wrong but ascent and descent

Re: PangoFontMetrics

2002-03-09 Thread Havoc Pennington
Venkat Ramakrishnan [EMAIL PROTECTED] writes: I am new to gtk+ so also to pango and I read Pango is the thing to use for application using fonts etc . I am designing a UI for a application (a user interface for a mediaplayer) on Linux. I have so many text strings to display ,with various

Re: (no subject)

2002-03-09 Thread Havoc Pennington
Wasim Jaffer [EMAIL PROTECTED] writes: I have a small problem in GtkTreeview .I am using GtkTreeView to display 2 colums. By default these colums are left justified. I want the colums to be right justified. How can I do this?I used the call gtk_tree_view_column_set_alignment (), but it

Re: Checkbox and Style

2002-03-11 Thread Havoc Pennington
Jean-Christophe Berthon [EMAIL PROTECTED] writes: I have another problem which is how to change the state of a checkbox to Partially Checked. GTK 2 has this feature, gtk_toggle_button_set_inconsistent() or something like that is the function name. Havoc

Re: Checkbox and Style

2002-03-11 Thread Havoc Pennington
Jean-Christophe Berthon [EMAIL PROTECTED] writes: Thank you Havoc for your help, So there is no way to do it under gtk-1.2.10? There isn't a built-in API for it. Perhaps you could make it work, but I don't know how, offhand. Havoc ___ gtk-list

Re: GTK 2.0 and egcs 2.91.66 - problem

2002-03-11 Thread Havoc Pennington
Olaf Fr±czyk [EMAIL PROTECTED] writes: When I try to compile anything (eg. arrow.c from examples) I get errors. This is a problem with incorrectly set G_HAVE_ISO_VARARGS. Is this compiler no longer supported? The configure checks for it are probably wrong; have a look at configure.in and

Re: can't get height during expose-event

2002-03-12 Thread Havoc Pennington
[EMAIL PROTECTED] (Joachim Klähn) writes: trying out example 1 of section GtkDrawinArea of GTK2.0.0 Reference Manual (sample code at the end of the mail) I got some trouble. I'm using GTK2.0.0 The sample draws a filled circle in a window. Changing the width of the window changes the

Re: set attributes to rows in GtkTreeView

2002-03-13 Thread Havoc Pennington
Bernd Demian [EMAIL PROTECTED] writes: First the question: Can somebody show me a simple way to change the color of one or more rows in GtkTreeView. In CList it was simple to use the function gtk_clist_set_background. I don't think there is one. What's the application? You probably have

Re: ref_count

2002-03-13 Thread Havoc Pennington
Deborah Swayne [EMAIL PROTECTED] writes: Is it appropriate to look at a gobject's ref_count, or is that supposed to be private? I've been keeping track of its value whenever I deliberately increment or decrement it, but the code makes it look as though I'm doing something improper -- and

Re: set attributes to rows in GtkTreeView

2002-03-14 Thread Havoc Pennington
Bernd Demian [EMAIL PROTECTED] writes: Looks like a divide-by-zero in gtkrange.c. This is in 2.0.0? Yes 2.0 on alpha - 64 bit - offen a problem. Should be sure it's in bugzilla. btw I have a second question - we are porting a motif appl with bxm-widgets. the list widget has a feature to

Re: static executable, can't open $DISPLAY

2002-03-14 Thread Havoc Pennington
Ian Britten [EMAIL PROTECTED] writes: [ If you can't/shouldn't link libc in statically, how to most people create static executables? If the problem is as you describe, then it would seem that the -static GCC option is useless/dangerous... ] Yes, it basically is useless/dangerous. The

Re: can anybody help with bebugging a little displaying program?

2002-03-18 Thread Havoc Pennington
Simon Hookway [EMAIL PROTECTED] writes: what you have: GtkWidget *window; GdkPixbuf *pixbuf; GtkWidget *widget; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); widget = gtk_event_box_new(); gdk_pixbuf_render_to_drawable (pixbuf, widget-window,widget-style-white_gc, 0, 0,0,0,

Re: enable-disable widgets

2002-03-19 Thread Havoc Pennington
Nicolas web [EMAIL PROTECTED] writes: Hi. Someone can tell me how can I disable and enable a widget? A function or command. See: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html http://www.gtk.org/faq/ Havoc ___ gtk-list mailing

Re: Help getting pkg-config working - GTK+ 2.0

2002-03-19 Thread Havoc Pennington
Philip Bunce [EMAIL PROTECTED] writes: sh: gnome-config: not found This only appears because pkg-config is trying to fall back to gnome-config when gtk+-2.0 isn't found So I set the environment variable to setenv PKG_CONFIG_PATH /export/home/pjb/gtk2/gtk+-2.0.0 PKG_CONFIG_PATH needs to

Re: Help getting pkg-config working - GTK+ 2.0

2002-03-19 Thread Havoc Pennington
Philip Bunce [EMAIL PROTECTED] writes: See... No gtk+-2.0.pc. It would seem as if the pkg-config install didn't happen properly? Well not pkg-config, but rather GTK didn't install its .pc files. What should I try next? Look at the output from configure and make install for GTK, and see

Re: pango font for arrow keys

2002-03-20 Thread Havoc Pennington
Deepa Chacko Pillai [EMAIL PROTECTED] writes: I am porting GdkFont in stock-ticker to Pango. I am not able to find the Pango font which will display the up/down arrow characters. Previously, it was Symbol (Adobe). When I used Symbol as the font to Pango, it gave me Invalid UTF8 string

Re: Error converting from UTF-8 to STRING

2002-03-21 Thread Havoc Pennington
Bradley F. Hartman [EMAIL PROTECTED] writes: I downloaded the latest version of GTK along with the libraries on which gtk+-2.0.0 depends. After resolving some minor configuration installation problems, I was able to compile all libraries for Solaris 2.6. I decided to run some of the

Re: dynamically changing the text of a GtkMenuItem

2002-03-21 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: i have a menu which as 2 item that potentially need updating every time it is displayed (its a submenu of a menubar). at the moment, i connect to the map_event, remove (and delete) all the items, recreate new items, and return FALSE. this works, but after

<    5   6   7   8   9   10   11   12   >