Re: beg for help - writing a custom tree model

2004-08-23 Thread Christer Palm
rt from the fact that the TreeView is rather complex I think that it would definitely be possible to fix these problems. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: BinReloc functionality

2004-08-19 Thread Christer Palm
rmine the runtime path of its executable. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: AIX glib compile error message "gettext not found"

2004-08-17 Thread Christer Palm
dmap or -bnoquiet option to obtain more information. IIRC, AIX doesn't honor LD_LIBRARY_PATH, but uses LIBPATH instead. So try export LIBPATH=/usr/local/lib instead. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mail

Re: Aligning widgets adjacent to a drawing area...

2004-07-22 Thread Christer Palm
David J. Singer wrote: On Wednesday 21 July 2004 7:30 pm, Christer Palm wrote: gtk_widget_translate_coordinates() with values from each of the text labels allocation's and the DrawingArea as the destination should do the job, I guess. Hmmm. I've had a look at that and I can't s

Re: Aligning widgets adjacent to a drawing area...

2004-07-21 Thread Christer Palm
the table with a suitable row span. gtk_widget_translate_coordinates() with values from each of the text labels allocation's and the DrawingArea as the destination should do the job, I guess. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] ht

Re: Aligning widgets adjacent to a drawing area...

2004-07-21 Thread Christer Palm
ut for some reason, you should have a look at GtkSizeGroup. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Sheet and Drawer widgets

2004-07-16 Thread Christer Palm
h screen real estate. MS Office has a similar concept, but their "drawers" actually go inside the parent window and steals some space from the parent window contents when they pop up. Although I guess this would be very hard to do properly under X. -- Christer Palm _

Re: Proper way to provide gtk+ app with asynchronous data?

2004-07-12 Thread Christer Palm
-versa be a good design decision to avoid asynchronous mechanisms, because they add unnecessary complexity. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Proper way to provide gtk+ app with asynchronous data?

2004-07-09 Thread Christer Palm
pipe _is_ guaranteed to be atomic as long as it's no larger than PIPE_BUF (from limits.h) bytes. So 4 bytes should be safe. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Proper way to provide gtk+ app with asynchronous data?

2004-07-09 Thread Christer Palm
ta arrives from the pipe. Just make sure that you have a lock around any code that touches the data the pointer is pointing to, and this approach is definitely one of the best. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail

Re: Proper way to provide gtk+ app with asynchronous data?

2004-07-09 Thread Christer Palm
he/she should better stay away from using them in the first place. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Newbie Q: What to use ...

2004-07-04 Thread Christer Palm
erful way of doing fast low-level graphics, you should have a look at SDL (http://www.libsdl.org/index.php), which at least used to be rather painless to use together with GTK+. I think there's even an example in there... -- Christer Palm __

Re: [gtkmm] Actions / UIManager and OO programming style

2004-06-29 Thread Christer Palm
Murray Cumming wrote: On Tue, 2004-06-29 at 01:29 +0200, Christer Palm wrote: First of all, although I can connect a Button to an Action using connect_proxy(), it won't get the Icon specified by the Action. Neither can the Action create a button. It appears that it would be natural for Ac

Actions / UIManager and OO programming style

2004-06-28 Thread Christer Palm
ems to me like a natural way of creating actions. The same goes with UIManager and other fairly recently added widgets such as TreeStore/ListStore (although they've been fixed since). IMHO, this rather discourages good OO programming style. Any

Re: GtkTreeView and Threads

2004-06-08 Thread Christer Palm
Hello Alberto! ALBERTO MONTERO wrote: The program fail and I obtain the message: "There is a disparity between the internal view of the GtkTreeView, and the GtkTreeModel. This generally means that the model has changed without letting the view know. Any display from now on is likely to be incorre

Re: Top-levels embedded in another top-level?

2004-04-15 Thread Christer Palm
Михаил Иванов wrote: that functionality. If you're _really_ desperate, there are toolkit level window managers that can give you MDI functionality, at the price of not beeing able to have the internal windows look and behave the same way as toplevel windows. Yes!! That's perfectly acceptable! I do

Re: Top-levels embedded in another top-level?

2004-04-14 Thread Christer Palm
Михаил Иванов wrote: Forget about MDI (Multi Document Interface) like in windoze. I's A Bad Thing (TM). Yes I know :-) The application in question is not a new one, but the emulation of existing interface. That's why GtkNotebook is not acceptable :-/ Apart for beeing A Bad Thing, most window manag

Re: Refreshing of the text

2004-04-14 Thread Christer Palm
John Cupitt wrote: You have two solutions, I think: - Every time a packet comes in, update your widgets and call while( g_main_context_iteration( NULL, FALSE ) ) ; this will make the screen repaint. This is not a good idea. What if there are no packets coming in? Then your GUI would no

Re: GHashTable insertion problems (string literals, c_str(), etc.)

2004-04-14 Thread Christer Palm
edwardt wrote: No particular reason - its just when I searched "Vector" and "HashTable" in Google, glib / GTK+ came up first. Then glib is not the right tool. Just use the standard STL types vector and hashtable. I tried using STL for insertions as well, but I came up with the same c_str() "add

Re: GHashTable insertion problems (string literals, c_str(), etc.)

2004-04-14 Thread Christer Palm
Hi Edward! Is there a particular reason to why you, as a C++ programmer, want to use GTK+ and glib? IMHO, you should probably use STL and gtkmm. In that way you'd avoid many problems like this. edwardt wrote: Is there anyway I can store in / GHashTable takes in strings as **string literals** ?

Re: Refreshing of the text

2004-04-14 Thread Christer Palm
What's wrong with Ethereal (http://www.ethereal.com)? [EMAIL PROTECTED] wrote: Hello, I'm using GTK and libpcap (library dedicated to provide routines for packet caputre) to make a sniffer with GUI in C. I have a problem, when I start to sniff, the program comes into a function from which will

Re: anti-spam measures

2004-01-24 Thread Christer Palm
German Poo Caaman~o wrote: El vie, 23-01-2004 a las 21:16, Byron Hale escribió: I notice that the GTk list does not have any identifying header. It has a lot of headers, you can try with: X-BeenThere: [EMAIL PROTECTED] or List-Post: Or even; List-Id: General disc

Re: gtk_events_pending return value

2004-01-05 Thread Christer Palm
gtk_events_pending() returns the number of pending events. Whether knowing the actual number of pending events is useful or not I don't know, but there you have it. Johannes WeiÃl wrote: Hello, does anyone know, why the return value of the function gtk_events_pending() is gint? In my opinion gb

Re: more on g_strconcat problem

2003-11-27 Thread Christer Palm
() wants strings. If you use an int in place of a string a segfault makes a lot of sense! -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

"Autoscrolling" TextView

2003-11-17 Thread Christer Palm
e the situation when resizing an autowrap TextView causes the last line to split, which in turn causes it to drop out of the bottom position. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: signal on title colum of GtkTreeView

2003-11-13 Thread Christer Palm
n you tell us more about what you are trying to do? Perhaps there is a better solution? -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Check for instances running

2003-10-30 Thread Christer Palm
ed to keep the client/server nature of X in mind. You may have several instances running on the same display but on different hosts, and/or several instances running on the same host but on different displays. -- Christer Palm ___ gtk-list mailing list [

Re: [gtkmm] Custom TreeStore Problems

2003-10-16 Thread Christer Palm
ause sort is a basic functionality of a TreeView, and because the TreeView itself essentially makes a lot of random accesses to its TreeModel. As this is a GTK+ problem rather than a gtkmm-problem, I put the GTK+ list on copy. -- Christer Palm ___ gtk-list

Re: blocking signals

2003-09-09 Thread Christer Palm
akes sense, but in the general case, isn't that exactly what you want? What is the difference between a user making a change and the program making a change? OK, the program could communicate the change using some other mechanism, but why would it if the signal mechanism is already ther

Re: Stock item request

2003-09-09 Thread Christer Palm
a diskette. Thus, I picture of a diskette is not a very good visual cue. I suggest using the generic storage symbol (barrel) instead. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: GtkTreeModel

2003-09-02 Thread Christer Palm
Hello again! Christer Palm wrote: edscott wilson garcia wrote: Use gtktreestore model. Add a dummy for non expanded directories. That makes the expander appear. When the user expands, if nothing is in there, collapse the node and remove the dummy. Since there will be no children, the expander

Re: GtkTreeModel

2003-09-02 Thread Christer Palm
ient so I don't think that would be a real problem. But I could easily add some kind of (user activated) refresh mechanism if that would be necessary. If I store the last modified timestamp along with the directory name, it would just be a matter of checking whether the timestamp has change

GtkTreeModel

2003-08-31 Thread Christer Palm
can I "let the view know" that the model has changed, and is it safe to do it from within the GtkTreeModel implementation? Cheers, -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list