Re: How do I remove the close button from a window in Fedora Core 5?

2007-07-17 Thread Michael Ekstrand
On Tue, Jul 17, 2007 at 08:44:40AM -0700, Jonathan Cooper wrote: > I am not sure why, but the "GTK_WIDGET (window)->window" is false (which > I suspect means I am actually getting a NULL value for > g_type_instance_cast() which is used by the GTK_WIDGET macro). Since > the Gtk::Window::gobj() func

Re: How to create a self contained GTK+ Application for Linux

2007-05-23 Thread Michael Ekstrand
On Wed, 2007-05-23 at 15:07 +, Jeremy Roberson wrote: > Hardcoded paths might be okay initially but I need to come up with a more > dynamic solution but, I'm not sure there is one. You might want to take a look at what the autopackage folks are doing. At the very least, they have a lot of docu

Re: Fake pushing a GTK+ button

2007-05-23 Thread Michael Ekstrand
On Tue, 2007-05-22 at 14:26 -0400, DanH wrote: > I have a program that has your basic set of buttons, windows, switches and > adjustables. I have added a listener to tell me if a directory has been added > to or changed. The printf statement works great and says, "Directory changed" > at all the

Re: Gtk+ and multithreating

2007-05-14 Thread Michael Ekstrand
tch for data availability? That will let you set up callbacks so the GLib main loop will notify your program as bits of data are available from each server. You don't block on communication, your GUI stays responsive, and you don't have to worry about the complexities of multithreading.

Re: Adding different tooltips to a single widget

2007-04-06 Thread Michael Ekstrand
ps myself. Creating a popup window with a widget name of "gtk-tooltips" gives you access to the style, and you just have to play with spacings and drawing. - Michael -- Michael Ekstrand Research Assistant, Scalable Computing Laboratory Goanna, compute cluster and InfiniB

Re: Move decorationless window with mouse

2007-03-22 Thread Michael Ekstrand
s by simulating ALT - the ALT+drag feature is configurable and window-manager-specific. You will want to respond to the drag and use something like gtk_window_move() to move the window. - Michael -- Michael Ekstrand Research Assistant, Scalable Computing Laboratory Goanna, compute cluster and

Re: QWidgetList QApplication::topLevelWidgets () ?

2007-03-20 Thread Michael Ekstrand
t; app. I'm not sure if there's a direct way, but it shouldn't be difficult to track all instances you create in a GList somewhere. Then just hook in to the objects' destroy signals to remove them from the list. - Michael -- Michael Ekstrand Research Assistant, Scalable Comp

Re:

2007-03-19 Thread Michael Ekstrand
ce is running and, if one is, wake it up and die rather than starting a new copy. The GNOME libs may also have some functionality for this (I'm not really sure; I just seem to have a vague-ish recollection of seeing that somewhere). On Windows, I have no idea... - Michael -- Michael E

Re: GtkScrolledWindow in a dialog

2007-03-19 Thread Michael Ekstrand
hough, I'd also be very interested to hear it. - Michael -- Michael Ekstrand Research Assistant, Scalable Computing Laboratory Goanna, compute cluster and InfiniBand network monitor tool: http://www.scl.ameslab.gov/Projects/Monitor/ ___ gtk

Re: new to gtk, how can I limit widgets?

2007-03-19 Thread Michael Ekstrand
and see if it meets your needs. It provides a way to force several widgets to all request the same size (the size of the largest of them is requested by all). - Michael -- Michael Ekstrand Research Assistant, Scalable Computing Laboratory Goanna, compute cluster and InfiniBand net

Re: strange segfault in threading

2007-03-14 Thread Michael Ekstrand
d. I can't promise this is the problem, but that looks extremely shady to me. - Michael -- Michael Ekstrand Research Assistant, Scalable Computing Laboratory Goanna, compute cluster and InfiniBand network monitor tool: http://www.scl.ames

Re: Tooltips for GtkTreeView?

2007-03-02 Thread Michael Ekstrand
Jan-Oliver Wagner wrote: > well, yes and no. I am bound to use GTK 2.4. > I was hoping for a pointer at some sample code (even inefficient). > > I also am wondering if someone fidled this based on callbacks via > gtk_tree_view_column_set_cell_data_func() ? IIUC, this would > be the other way ar

Re: C++ + Gtkmm + Thread + new window

2007-02-27 Thread Michael Ekstrand
pipe is ready to send) and keep everything in one thread. Option 2 is probably easier to get right. Much less can go wrong in strange ways. But whichever way you go, GTK+ can only work in one thread. - Michael -- Michael Ekstrand Research Assistant, Scalable Computing Laboratory Go

Re: manage a list

2007-02-26 Thread Michael Ekstrand
tutorial/book (available in their web site) describes how to use tree models and views. If you're using the C API, the following is a good tutorial: http://scentric.net/tutorial/ - Michael -- Michael Ekstrand Research Assistant, Scalable Computing Laboratory Goanna, compute clus

Re: libglade frustration redux

2007-02-19 Thread Michael Ekstrand
operty in the GTK world you want. It has made me noticably more productive when trying to work on GTK stuff. - Michael -- Michael Ekstrand Research Assistant, Scalable Computing Laboratory Goanna, compute cluster and InfiniBand network monitor tool: http://www.scl.ameslab.gov/Projects/Monitor/

Re: gtk-app-devel-list Digest, Vol 34, Issue 25

2007-02-16 Thread Michael Ekstrand
My $0.02 on your idea... On Fri, 2007-02-16 at 14:37 -0200, Fabricio Rocha wrote: > I think that there could be an official GTK/Glade/Libglade wiki in > GTK.org, with everything we see in the GTK Tutorial and Reference > manuals as its base. And then those same manuals should be updated from >

Re: drawing moving shapes

2007-02-02 Thread Michael Ekstrand
if the mouse > stops, even though the polygon is being redrawn contently. Make sure you request a redraw every time the underlying state changes - check out gtk_widget_queue_draw. -- Michael Ekstrand Research Assistant, Scalable Computing Laboratory Goanna, compute cluster and InfiniBand netwo

Re: Information required

2007-01-05 Thread Michael Ekstrand
On Jan 5, 2007, at 4:15 AM, Sarath Potharaju wrote: > There is some thing called SegmentField() in QT and i am looking > for same > kind of thing in GTK, does any one has any idea about it, if yes > can you > please forward me the links or tutorials on it or any sample > program on it. What

Problem with spinbutton and dialog response via shortcut

2006-11-03 Thread Michael Ekstrand
I have a dialog with an entry and a spin button (to enter hostname and port), created with Glade. The code grabs the values of the entry and spin button when Gtk::Dialog::run returns Gtk::RESPONSE_OK. Most of the time this works just fine. The user can adjust with the mouse, type in the

Re: gui for trees

2006-10-23 Thread Michael Ekstrand
On Oct 22, 2006, at 1:13 AM, kiranc wrote: > Guy Rouillier-2 wrote: >> >> That being said, take a look at GtkTreeView. You may be able to >> utilize >> that to display the data in your red-black tree data structure. >> > > TreeView has a left-right display. I need a top-down display. Can i > mo

Re: using gtk in non-gtk apps

2006-09-20 Thread Michael Ekstrand
On Sep 20, 2006, at 10:46 AM, T wrote: > I haven't seen any documentation or discussion in whether gtk can work > with non-gtk widgets/windows in same application. Is this possible? I'm 99.5% sure that it isn't, at least not in any clean or reliable manner. Basically, you'd create a situation

Re: Question about Data Exchange

2006-08-30 Thread Michael Ekstrand
On Aug 29, 2006, at 12:51 AM, chao yeaj wrote: > Hello everyone >You know ,in an application > one widget may associated with one data member > >For example,there is a entry widget ,the user can write some data > into the entry widget;In the application, there must be a data > variable

HandleBox woes

2006-07-26 Thread Michael Ekstrand
I've got a toolbar that's in a handlebox. However, when I drag the toolbar to be floating, the window shrinks down and all the toolbar items are placed in a drop-down menu on the now-floating toolbar. I've tried marking my toolbar items as important, but that hasn't changed anything. Why