status/progress bars (revisited)
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? I can tell the status bar to change right before I tell the CPU to begin a real work-out, and no matter what I try, the thing won't update until the latter CPU-intensive function is done. This is rather annoying because I am trying to tell the user that the computer is busy. This is really annoying, especially when I try to make the progress bar move in activity mode, and it won't budge because the CPU is busy. I can tell it start moving without stopping it, and it won't start moving until the CPU-intensive function call is done! Please enlighten me! Thanks, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Gdk-WARNING **: shmget failed!
Yes, it is 1.2.9. What could I have done to generate this kind of warning? Is there a way to turn that warning off? My program still works perfectly no matter how many times the warning appears. Thanks, Matthew P. Hillebrand On 28 Mar 2001, Owen Taylor wrote: > > Matt Hillebrand <[EMAIL PROTECTED]> writes: > > > I run into this warning during execution sometimes. I never know when it > > is going to show up. Sometimes I see it immediately after execution, > > sometimes mid-session, and sometimes never! > > > > I think I started seeing it after I added icons to my windows. > > Is this with 1.2.9? 1.2.9 should be much better at this than earlier > versions which created so many shared segments that it was easy to > exceed the total limit for the system. > > Owen > > > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list > ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Gdk-WARNING **: shmget failed!
I run into this warning during execution sometimes. I never know when it is going to show up. Sometimes I see it immediately after execution, sometimes mid-session, and sometimes never! I think I started seeing it after I added icons to my windows. Any advice? Thanks, Matt ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
screensaver in viewport
Does anyone know how to run a screensaver in a viewport? I tried looking at the code of the gnome control-center to mimmick its "Screen Saver Demo", but I can't seem to find the code for it. Thanks, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
activity bar w/ recursive CTree select
I'm trying to make my activity bar start moving when a ctree node is selected. The problem is that I am always doing recursive selects, so many nodes are being selecting and unselected so fast that the activity bar turns on and off each time, and it doesn't appear to move. I tried using a signal_connect_after in several ways, but I don't think that is going to solve my problem. What's worse is that I tried activating the activity bar when the node-select signal is emitted, without turning it off on the unselect signal, and the bar STILL doesn't start moving until after all nodes are done with the recursive select. Ugh. Any ideas? Thanks. Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GtkHTML
I can't figure out how to use this widget. It is installed. I tried including gtkhtml.h and gtkhtml.c, but that doesn't work. I even installed bonobo, gnome-print, gal, and glibwww. I noticed that there weren't any executables after compiling gtkhtml. Where is that testgtkhtml for example? Matt ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Save CTree to file? please help
What's a good way to save everything in a CTree to a file so that the tree can be easily rebuilt using this file? It's easy to get the data in each column, but I can't think of a good way to represent the nodes' structure (parents, children, siblings...) in a file. Thanks, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
radio menu item
I found examples of some radio menu items in the code for testgtk, but I can't find those functions in the API! Functions like: gtk_radio_menu_item_group() gtk_radio_menu_item_new_with_label() What's worse is that the code in testgtk doesn't make a whole lot of sense. Where can I learn more about radio menu items? Thanks, Matt ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
OptionMenu default label
How do I specify which menu item should be the default (currently visible/selected) menu item in an option menu? Thanks, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GtkOptionMenu
Wazzup. I can't connect any signal handlers to my Option Menu. The API says that it is derived from a button, but none of the button signals seem to work. Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
tab completion vs. ESC-ESC
The file selection widget offers tab completion, which is very nice, but I find it frustrating that I can't tab over the the CANCEL button immediately after the window is created. Is there a way to make file completion activate on ESC being pressed twice so that I can use the TAB key to cycle through the buttons (or widgets) in the file selection window? Thanks, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Remove all nodes in CTree?
Is there a way to flush out a CTree without recursively calling gtk_ctree_remove_node()? This can take a long time if there are a lot of nodes in the tree. This seems to be the only way I can create a new tree afterwards. Thanks, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
CTree - horizontal scrolling
Hello. My program is very slick. Thanks for all the help. One more question though: Why is it that my CTree can't scroll horizontally? I looked at the CList functions and still couldn't find anything to fix it. Thanks, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
ftw and CTree
> >end use functions such as opendir(), readdir(), ... These all have > >manual pages e.g. man 3 opendir. > > see also ftw(3) for an easy way to recursively walk a directory tree. I read about this function in the libc info pages. Wow. It sounds too good to be true. How would I use it to recreate a directory hierarchy in my CTree widget? Right now I have a recursive function: void build_tree(GtkWidget *button, GtkWidget *parent, GtkWidget *sibling, char path[]) that uses scandir and (S_ISDIR(status.st_mode)), but it does weird things, like adds directory pixmaps when it is supposed to add file pixmaps (but only sometimes). Also, it likes to insert file nodes on the tree before subdirectory nodes, which I don't like. Matt ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: Pixmaps/Bitmaps & CTrees
Thanks for responding. On Wed, 21 Feb 2001, Esquibel, Rick wrote: > GdkPixmap *close = NULL; > GdkPixmap *open = NULL; > GdkBitmap *transparent; You must have meant to type GdkColor *transparent; right? > close = gdk_pixmap_colormap_create_from_xpm(NULL, > gdk_colormap_get_system(), > &transparent, NULL, "../pixmaps/dir.xpm"); > > open = gdk_pixmap_colormap_create_from_xpm(NULL, > gdk_colormap_get_system(), > &transparent, NULL, "../pixmaps/info.xpm"); This does work. However, the little directory pixmap in my CTree doesn't have a transparent background. It's nasty looking when you select that row. Another thing that's making me quite frustrated is the fact that I *cannot* associate any text with any of my CTree nodes. If I put anything other than NULL in the gchar *text parameter of insert_node, I get a segmentation fault. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Pixmaps/Bitmaps
Hello. I'm trying to stick some pixmaps on a CTree, and I can't get them even initialized without a segmentation fault. And testgtk.c has only confused me even more. Their example doesn't assign anything to the GdkBitmap *mask. And what is up with that circles-bits business? I guess I am asking for some (better) example code for GdkPixmap *gdk_pixmap_create_from_xpm( GdkWindow *window, GdkBitmap **mask, GdkColor*transparent_color, const gchar *filename ); And I don't have a clue what to do about the GdkBitmap **mask. The testgtk example doesn't seem to do anything more than declare mask, and then it's used in gdk_pixmap_create_from_xpm (window, &mask, background, filename); Thanks, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
gal / libunicode
Hi. I'm trying to install gal-0.5, but the configure script fails when it can't find 'libunicode'. But, I have had the libunicode-0.4 RPM installed for quite some time. So, I installed libunicode the tar.gz way, and gal still can't seem to find it? Should I just cut that section out of the configure script for gal and move on? Thanks, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Tree Widget
> Hello. > > Is there a CTree variation that has checkboxes next to each and every row > in its list? Sorry, I mean Tree widget, not CTree. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
CTree Widget
Hello. Is there a CTree variation that has checkboxes next to each and every row in its list? Thanks you guys, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: ProgressBar
Umm, what is that? Portuguese? Matthew P. Hillebrand On Mon, 29 Jan 2001, Edson Lima wrote: > Eu gostaria de saber se alguem poderia me ajudar > com uma funcao progressbar, eu ainda nao sei como interagir o progress > com um arquivo ou do progress trazer um arquivo. > obrigado. > > > > > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list > ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Gnome libs without Gnome desktop
What must be done to run a Gnome enabled GTK+ Glade application on a linux machine that doesn't have Gnome installed? Can I just get away with installing some Gnome libraries and not the entire desktop environment? Thanks -Matt ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: menu accelerators
Okay, so we have all agreed that they are a mixed blessing. There really ought to be a way for the programmer and/or user of the program to specify whether or not they would like menu accelerators to be dynamically changed, and it would really be nice if the changes were persistent so that they wouldn't have to be made for each session of that program. Matt ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
gnome libs on non-gnome OS
What exactly must be done in order for gnome applications such as Glade-built apps using Gnome support to run on OS's that done have gnome installed? Do I just install some gnome libraries on the target machine? Thanks, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
menu accelerators
How do you make it so that the accelerators for menu elements are static? I've read that this is "feature" that the user can change the menu accelerator by pressing a key combination while the mouse pointer is over the menu element. I think it's bad news. Thanks, Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
widgets/callbacks
I cannot figure out how to access widgets from within callback functions. For example, how do I make a second window appear when a button on the main window is clicked? Also, I would like to access widgets such as the scrolled window's labels of one window from callbacks associated with buttons on other windows. Thanks! Matthew P. Hillebrand ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list