Re: gtkmm and save/restore window positions

2006-10-07 Thread Frank Naumann
Hello! > Does anyone can tell me how to save and restore window positions with > gtkmm 2.4. I use Gtk::Window::get_position() and Gtk::Window::move() and this works fine for me (under Unix and WIN32). Regards, Frank ___ gtk-list mailing list gtk-list

Re: Threads, sockets and windows

2006-08-08 Thread Frank Naumann
Hello! >> Under Window you can use select(). For myself I've written for Win32 a >> poll() function that internally use select() (so the code remains clean >> and portable). > (Whoops. I should have pressed reply to all. Sorry for the > inconvenience, Frank.) No problem. > The Windows select() f

Re: Threads, sockets and windows

2006-08-08 Thread Frank Naumann
Hello! > But on windows there is no poll() function. Of course I can use > g_async_queue, but doing so I can't poll queue and network socket > simultaneously. Under Window you can use select(). For myself I've written for Win32 a poll() function that internally use select() (so the code remains

gtk+-2.10.0 segfault of gtk-demo/Printing

2006-07-19 Thread Frank Naumann
Hello! Today I tried out the new gtk+-2.10 (under NetBSD 3.0 stable, uptodate glib, atk, cairo, cups). I wonder that stable gtk+-2.10 depends on unstable pango 1.13 (at least configure told me so). Ok, after installing pango 1.13.3 gtk+ compiled and installed fine and I first started gtk-demo

Re: Vertically-expanded GtkEntry

2006-05-24 Thread Frank Naumann
Hello! - | | Some | | GtkEntry | Big| | | Widget | - At the moment, the GtkEntry just centers itself vertically, regardless of what packing options I use, without changing its size. I guess that smart_n would like either - the GtkE

Re: Usability of the GTK+ 2 file open dialog

2006-03-08 Thread Frank Naumann
Hello! No, that's not right. Every 'normal' windows user will complain if an application don't use the system fileselector today. Sorry, but using the native file selector is the expected behaviour. Sorry, but this is BS. Stop pretending all MS Windows apps use the very same file open dialog,

Re: Usability of the GTK+ 2 file open dialog

2006-03-07 Thread Frank Naumann
Hello! I recall similar arguments about Java swing. They argued that having a consistent UI for one application across all platforms was more important than have an app that acted in a consistent way with apps on any given platform. I think most people would now agree that the latter is more im

Re: Disable mnemonics in UIManager

2006-02-02 Thread Frank Naumann
Hello! It's possible to disable the automatic mnemonic conversion in the UIManager/Action? Otherwise it's not possible to put text with an undersocre into the menu. I searched in the gtkmm and gtk documentation but don't found anything related to the mnemonic conversion in UIManager/Action. I'

Re: Disable mnemonics in UIManager

2006-02-02 Thread Frank Naumann
Hello! It's possible to disable the automatic mnemonic conversion in the UIManager/Action? Otherwise it's not possible to put text with an undersocre into the menu. I searched in the gtkmm and gtk documentation but don't found anything related to the mnemonic conversion in UIManager/Action. I'

Re: Cannot make pango-1.10.2

2006-01-31 Thread Frank Naumann
Hello! cairosimple.o(.text+0x1f4): In function `main': /home/sakari/amule/pango-1.10.2/examples/cairosimple.c:82: undefined reference to `cairo_surface_write_to_png' collect2: ld returned 1 exit status [...] Would anyone know what is wrong? Cairo must be configured and compiled with png supp

Re: GTK+ 2 speed

2005-07-28 Thread Frank Naumann
Hello! Our expectation and experience is that GTK+ performs decently for even complex applications on hardware from the last 5 years or so. Except the WIN32 port. The WIN32 port is noticeable slower than the X11 port on the same hardware. Regards, Frank

Re: How to create a scrolled text window with GTK 2.x?

2004-06-21 Thread Frank Naumann
Hello! In gtkmm I use: info_display->insert(info_display->end(), msg); /* scroll to the end */ info_display->move_mark(info_display->get_insert(), info_display->end()); textView.scroll_to_mark(info_display->get_insert(), 0.0); With info_display as Glib::RefPtr and te

Re: How to create a scrolled text window with GTK 2.x?

2004-06-21 Thread Frank Naumann
Hello! Textview has native scrolling, so use: gtk_container_add( GTK_CONTAINER( scrolledTextWindow ), textWindow ); This will scroll when you type - I'm not sure what happens, if you add text via the gtk_text_buffer_* funtions. That felt promising because it indeed scrolled to the end when text wa

gtk+ 2.4 CellRenderer activate changes

2004-06-16 Thread Frank Naumann
Hello! I'm using gtk+ 2.2 for my development and just trying out gtk+ 2.4. I'm using a TreeView and use a self written CellRenderer (derived from the GtkCellRenderer). One thing I implemented is a context sensitive popup menu (on a right mouse click) that is handled by the CellRenderer activate