Re: Installing gtk+2.10.12 issues.
Sergei Steshenko wrote: --- David Neèas (Yeti) [EMAIL PROTECTED] wrote: I see. Then please at least advertise tools people are able to get. Or make your the new great tools actually available. I prefer to release complete things. For example, I need to update documentation. Regardless of all of that, please stop posting about Apps From Scratch every other day. It's really annoying. Thanks, Andrew ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Editable Label Widget
Andrew, it's probably worth asking on gtk-devel-list - especially if you're planning on doing this in a reusable way that can be incorporated into a future version of GTK+. Hans Oesterholt-Dijkema wrote: Why not use a GtkEntry and make it look like a GtkLabel? ... because that's quite theme dependant? -- Andrew ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: newcomer query - seeing other apps Xwindows
Ritesh Khadgaray wrote: On Fri, 2007-05-11 at 23:24 +0100, Godfrey Nix wrote: Hi, I am a newcomer to the list so don't know if this has been asked before or not. What I want to do is to be able to view the structure of all the windows open on a display, and to both read values from them (eg see what is in a text area) and to send events to control them. For example, I would like to be able to 'record' the buttons and menus that I activate whilst doing some work, so that I can 'play back' as part of a training session for others. I have looked through the library functions, read tutorials but so far I cannot find anything that helps. I don't want yet more help on drawing widgets in my own app., I want to 'take control' of widgets in other apps! I realise there are security implications, but I do want to (if possible) have the ability to record my actions for use in student training sessions. Any help to point me in the right direction would be appreciated, or a comment that it is not possible (if that is the case). Not sure if this is what is being looked for, but checkout LDTP http://ldtp.freedesktop.org/ Also, if you enable accessibility, you should be able to get the hooks you want through atk. Checkout atk for documentation on how to do it yourself, and accerciser for an application that should be able to access other applications. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GLib 2.12.12 released
Sergei Steshenko wrote: This is a broken release - 'make' fails with these messages: gconvert.c:48:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv Try --with-libiconv=gnu in configure. And please keep an eye on how many lists you crosspost to! -- Andrew ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: calendar with Gtk+ 2.0
vicente garcia wrote: Hi, I'm programming a GTK program with freepascal and MySQL. The application must administer a Medical center and I need a calendar to show when the patients must go to the doctor. I'm working with the widget GtkCalendar, it's cool but I need something like this: http://farm1.static.flickr.com/176/434960008_65ab81bc16_o.jpg I need something that show me the weeks and the hours of the day that is occupated the medical center. I think I can't do this with GtkCalendar. Can somebody help me, please? You'll have to write your own widget [1]. That said, check out the source code for Evolution and Dates [2], which both implement something like this. You might be able to steal their code :) (The Dates code is likely to be simpler and less full of CORBA than Evolution.) -- Andrew [1] http://gnomejournal.org/article/34/writing-a-widget-using-cairo-and-gtk28 and http://gnomejournal.org/article/36/writing-a-widget-using-cairo-and-gtk28-part-2 are good starting points. [2] http://pimlico-project.org/dates.html ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Our program with GTK 2.2.4 die every 8days. Help me plz!
김은혁 wrote: We must use GTK-2.2.0. For a long time we developed our progam with 2.2.0 and have no time to convert to other GTK version. You do know that all versions of GTK 2.x are source and binary compatible, right? So if you download a later version of GTK+, it should just drop in. The major advantage of this approach is that you then won't hit this bug :-) -- Andrew ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Emulating MDI
Robert Pearce wrote: I have a Windows application I want to port to GTK. In the Windows version it uses the Multiple Document Interface scheme, where several document windows are placed on the main application canvas, and each of these windows is decorated like a top-level window. For this particular application, that layout makes a lot of sense. It's not supported natively in GTK+. Most people think that MDI is one of the worst user interface designs ever, and so its lack of support in GTK+ isn't an issue for most people. That said, if you want to use an MDI-style layout, doing a google search for GTK MDI gives http://gtkadi.sourceforge.net as its first hit. Looks actively maintained, too (last SVN commit 2 hours ago). HTH, Andrew ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Large strings in GtkTextView
Hi guys, I just tried to load a ~200 kb string into GtkTextView, and there are bugs in the viewing of the string. The most noticeable is that when you try to scroll, the text disappears and/or overlaps. Is GtkTextView completely unsuitable for viewing large amounts of text? Is there an alternative? Many thanks, Andrew ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GNOME 2.11/2.12 targeting GTK+ 2.8 (ie cairo based)
On Thu, 2005-06-09 at 12:10 +0100, Gustavo J. A. M. Carneiro wrote: It has not been tested it was too soon to test. Why are people so afraid of gtk+ 2.7 without even trying it? It really is quite stable now. I think it's because in these enlightened times, people use the GNOME stack that comes out of jhbuild or Ubuntu Breezy. Both of these distribution methods are semi-official; jhbuild is meant to have The next version of GNOME, Breezy is The next version of Ubuntu, and switching to 2.7 for a trial period *without* having this conversation is ugly and liable to confuse people about what was actually decided. And Cairo does help developers significantly. Anyone doing any kind of drawing and printing will know what I mean. Like, imagine how abiword/gnumeric/criawips would benefit from this. Gnome Print is not an option for most of these programs simply because it's a Gnome library thus not cross platform or needs gnome. There's a great bias against gnome libraries nowadays, unfortunately... And even if it is slower now, it potencially may become much faster than current X11 drawing model, perhaps even when gtk+ 2.8 gets released. Please stop gtk/cairo FUD. Hey hey hey, let's stay calm here. GNOME necessarily works on a short-term-benefit model; the question we need to ask is Is going to GTK+ 2.8 in less than 6 months *definitely* not going to have any negative implications on that version of GNOME? And it's a fair question to ask, because last time we did this the answer was Yes, it did. We're blatantly going to use GTK+ 2.8 by 2.14 at the latest, but GTK+ does work on a cycle with a longer feature-implementing stage, and so necessarily a longer improvements-and-bug-fixing stage. Which is fine. But we need to be careful about it. No-one was implying that Cairo was a Bad Idea (tm), only whether we could be 99% sure of it being as stable as and as fast as the current stable GTK+ in a relatively short timescale. -- Andrew ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: GNOME 2.11/2.12 targeting GTK+ 2.8 (ie cairo based)
On Thu, 2005-06-09 at 14:39 +0100, Mark McLoughlin wrote: On Thu, 2005-06-09 at 12:29 +0100, Andrew Sobala wrote: Hey hey hey, let's stay calm here. GNOME necessarily works on a short-term-benefit model; the question we need to ask is Is going to GTK+ 2.8 in less than 6 months *definitely* not going to have any negative implications on that version of GNOME? And it's a fair question to ask, because last time we did this the answer was Yes, it did. That particular negative impact on GNOME you're referring to is that it delayed the GNOME release. Matthias's mail basically says that that isn't going to be an issue this time and details what the GTK+ guys are doing to make sure of that. So, lets not get things mixed up here. Performance worries are very different from meeting-the-schedule worries. There were a couple of stability issues too (nothing terribly major, but it wasn't quite up to the very high standards that GTK+ releases normally set for themselves). I can't remember specifically what they were, any more. But you're right, they weren't performance issues, so I might be talking at 90 degrees to everyone else. -- Andrew ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Adding buttons to the header of a GtkTreeViewColumn
Hi, When you set the widget (in the header) of a GtkTreeViewColumn to contain a GtkButton, it's impossible to click the GtkButton. Because when you do, the entire column header gets the focus and sorts the column instead of clicking the button. Is this a bug, or design? Many thanks, -- Andrew Sobala [EMAIL PROTECTED] The lighting designer is expected to be a master of art, science, history, psychology, communications, politics and sometimes even mind reading. -- Stage Lighting Design 101 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Inheritence without knowing the parent at compile time
Hi, After playing about with GObject a bit, I'm trying to work out how to inherit at runtime. Normally, type and class structs have the parent type and class structs at their start, in order to make them the right size and give the correct offset to the other members of the struct. ie. struct _MyObject { ParentObject parent; gpointer myfield; ... etc ... }; However, I can't do this because I don't know what the parent is going to be. So I'm omitting that from my structs and registering my types with this sort of function: GType tirith_obi_python_new_type (const gchar *class, const gchar *super) { guint type = 0, parent_type = 0; GTypeQuery query; parent_type = g_type_from_name (super); g_type_query (parent_type, query); GTypeInfo obi_info = { query.class_size + sizeof (TirithObiPythonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tirith_obi_python_class_init, (GClassFinalizeFunc) NULL, NULL, query.instance_size + sizeof (TirithObiPython), 0, (GInstanceInitFunc) tirith_obi_python_init, NULL }; type = g_type_register_static (g_type_from_name (super), class, obi_info, 0); return type; } note the sizeof() addition so the runtime system gets the correct size. But now I expect my pointers are pointing to the wrong place when they are passed to a function. void tirith_obi_python_init (TirithObiPython *obi) In this function, obi will be pointing to the start the gobject which is not the same point as the beginning of the TirithObiPython struct? Presumably I have to do something along the lines of: newobi = obi + sizeof (parent); to get the correct position? But I don't know what the immediate parent is. Is there a gobject function where I can find out? Basically, I'd like to know if I'm on the right lines here, or if I'm doing it totally wrong. Thanks a lot for your help. -- Merry Christmas, Andrew -BEGIN GEEK CODE BLOCK- Version: 3.1 GS/M d--(-) s: a17 C++(+++) UL+ P++ L+++ E--- W+++ N(-) o? K? w--(---) !O M V- PS+ PE Y+ PGP+ t@ 5-- X- R tv-@ b DI+++ D G- e- h! r--- y? --END GEEK CODE BLOCK-- ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GtkCombo and GtkList
Hi, In gtk-2.0, the GtkCombo widget uses a drop-down GtkList, not a GtkTreeView as I would expect. Which is deprecated. 1) Are there plans to replace this for gtk-2.2? 2) Because I'm loath to duplicate the common list code in my app (one for GtkTreeView's and one for GtkCombo's, displaying the same data), has anyone done some alpha/beta GtkCombo code that replaces the GtkList with a GtkTreeView? 3) If not 2), would there be interest if I made a patch (assuming I have time to do it) Thanks -- Andrew ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list