Re: gtkmm 3.4.0 (gtk 3.4.2) multithread app graphic deterioration

2012-07-09 Thread Paul Davis
47 -0400 > Paul Davis wrote: >> the simplest solution is actually to use the GDK idle handler. >> whenever you receive data that requires some sort of redraw, you queue >> up an idle callback that will call someWidget.queue_draw() and then >> returns false (so that it is n

Re: gtkmm 3.4.0 (gtk 3.4.2) multithread app graphic deterioration

2012-07-08 Thread Paul Davis
the simplest solution is actually to use the GDK idle handler. whenever you receive data that requires some sort of redraw, you queue up an idle callback that will call someWidget.queue_draw() and then returns false (so that it is not called again). i tend to do this with C (g_idle_add()) rather th

Re: ANNOUNCE: gtkmm 2.91.5.1

2010-12-06 Thread Paul Davis
On Thu, Dec 2, 2010 at 8:56 AM, Murray Cumming wrote: > *** gtkmm 2.91: I notice that the docs at gtkmm.org seem to be for the very latest version. Would it not be better to do what GTK does and have "stable" and "unstable" branches of the docs? No official release version of GTK supports "draw"

Re: Custom widget children not shown

2010-12-06 Thread Paul Davis
On Sun, Dec 5, 2010 at 8:49 AM, Kees Kling wrote: > Hi, > > 2 weeks ago I wrote a mail about custom widgets, but till now nobody reacted > on it , so I try again > > I want to make a custom widget which has several  standard  widgets as > child,  like  butoons labels, etc. First I did it on the st

Re: Custom widget and propagate on_expose_event

2010-12-06 Thread Paul Davis
On Sun, Nov 28, 2010 at 4:28 AM, Kees Kling wrote: > Hi, > > I'm writing a sort of custom defined widget, which consists of several > standard widgets. > > It is derived from  Gtk::Frame and has a Gtk::VBox . In the VBox I  placed > some buttons, labels and a drawing  area. So far everything works

Re: Gtk::Style usage help needed

2010-10-29 Thread Paul Davis
On Fri, Oct 29, 2010 at 2:08 PM, siagogam wrote: > > Ok, I'll try to explain what I want to do, so you can tell me if I'm doing it > the way is supposed to be done. > > As you said, I want to modify how widgets are drawn (by using cairo inside > the style virtual functions), and I have no intentio

Re: Gtk::Style usage help needed

2010-10-29 Thread Paul Davis
On Fri, Oct 29, 2010 at 3:40 AM, siagogam wrote: > > Yes I've already tried in my test example the Gtk::Style::create() and works > fine, but what I want to do is overload the style drawing functions in order > to perform some changes in the way some widgets are drawn. I can not do that > using th

Re: signal_realize

2010-10-28 Thread Paul Davis
On Thu, Oct 28, 2010 at 3:04 PM, Mr.Cashe wrote: > 29.10.2010 01:19, Kees Kling пишет: > May be it would be better to override virtual method on_realize()? > > void screenManager::on_realize() { >     Window::on_realize(); > do what you want > } that, or add ", false)" to the connect c

Re: How to make filefilter's patterns case insensitive?

2010-08-30 Thread Paul Davis
On Thu, Aug 26, 2010 at 6:34 PM, phan wrote: > Hello, > > Let's say, that I need to provide a Gtk::FileFilter to > Gtk::FileChooserDialog, that will show all files with extension .abc, but > also .ABC and .aBc etc., and I cannot provide filefilter with mime-type. Is > there any simple way to ma

Re: Window Border Customization

2010-08-30 Thread Paul Davis
On Thu, Aug 26, 2010 at 10:11 PM, Samuel Peterson wrote: > I have been searching for a while and for the life of me, I can not figure > out how to customize the window borders. For example, I would like to be > able to go as far as google goes with their web browser and GTK... but I > guess I am n

Re: Is there any cross-platform solution for global key binding?

2010-08-12 Thread Paul Davis
On Sun, Aug 8, 2010 at 9:23 PM, Tao Wang wrote: > Any help on this? Thanks. its not in the scope of GTK and therefore not in the scope of gtkmm. there is no cross-platform method of doing this, and even the semantics of it are very different on different platforms. --p __

Re: gtkmm 3.0 and libsigc++

2010-07-29 Thread Paul Davis
2010/7/29 Murray Cumming : > On Thu, 2010-07-29 at 08:37 -0400, Paul Davis wrote: >> >> but to stress again: the key decision was to just leave sigc++ alone >> in connection with gtkmm, which was easy for us since we already use >> the "no GUI code in another thread

Re: gtkmm 3.0 and libsigc++

2010-07-29 Thread Paul Davis
2010/7/29 Chris Vine : > On Thu, 29 Jul 2010 01:45:04 +0100 > Chris Vine wrote: > [snip] >> But, as I say, it is the thread safety of remote trackable objects >> which seems to me to be the more pressing point. > > The gory details of my conclusions when I last looked at this are > coming back to

Re: undefined reference to symbol 'operator new(unsigned int)@@GLIBCXX_3.4'

2010-06-09 Thread Paul Davis
On Wed, Jun 9, 2010 at 2:47 AM, Piscium wrote: > I have an embryonic project with a few C and C++ files that compiled, linked > and run well under Fedora 12. > I upgraded to Fedora 13 and now get link errors as below. trivially caused by linking with gcc rather than g++ .. is this an issue?

Re: gtkmm 3.0: Removing ListHandle, SListHandle, etc

2010-05-18 Thread Paul Davis
On Tue, May 18, 2010 at 3:41 PM, Murray Cumming wrote: > > Also, should we use std::list or std::vector? I suspect that std::vector > would be more useful. > i generally prefer lists but this is one case where i think that vector is just fine. ___ gtkm

Re: explicit signal connection vs. overriding function

2010-05-10 Thread Paul Davis
2010/5/10 José Alburquerque > > One difference from connecting versus deriving is that with connecting, > it is possible to use connect_notify() instead of connect() which allows > controlling whether the handler will be called before or after the > default signal handler: > > > http://library.gn

Re: Catching the arrow keys

2010-04-22 Thread Paul Davis
On Thu, Apr 22, 2010 at 6:37 AM, jody wrote: > But when my Window is running, only the Escape key is caught, but none > of the arrow keys. > Am i missing something, or isn't it possible? also, the simple approach is to just add: default: printf ("Key pressed was: %d\n", ev->key);

Re: Catching the arrow keys

2010-04-22 Thread Paul Davis
On Thu, Apr 22, 2010 at 6:37 AM, jody wrote: > But when my Window is running, only the Escape key is caught, but none > of the arrow keys. wild guess: try looking for GDK_rightarrow as well. see gdk/gdkkeysyms.h for the full list. ___ gtkmm-list mailin

Re: Call for vetoes: Setting the global C++ locale in Gtk::Main

2010-04-06 Thread Paul Davis
On Tue, Apr 6, 2010 at 5:23 AM, Daniel Elstner wrote: > Hi, > > Am Dienstag, den 06.04.2010, 13:01 +0400 schrieb Alexander Shaduri: > >> Just checked it on FreeBSD 6.something, it is indeed an instance >> of std::runtime_error. Your patch should work fine. Daniel - checked on OS X too - it throws

Re: Call for vetoes: Setting the global C++ locale in Gtk::Main

2010-04-05 Thread Paul Davis
On Mon, Apr 5, 2010 at 5:21 PM, Daniel Elstner wrote: > Hi, > > Am Montag, den 05.04.2010, 22:50 +0200 schrieb michi7x7: > >> "terminate called after throwing an instance of 'std::runtime_error' >>     what():  locale::facet::_S_create_c_locale name not valid" >> >> it throws a std::runtime_error

Re: Call for vetoes: Setting the global C++ locale in Gtk::Main

2010-04-04 Thread Paul Davis
On Tue, Mar 30, 2010 at 1:18 PM, Daniel Elstner wrote: > Hi, > > the attached patch is currently being considered for application to > gtkmm, both stable and unstable.  Since it changes user-visible > behavior, it is possible that it may break some odd piece of code out > there. > > If it breaks y

Re: gtkmm 3.0.

2010-03-28 Thread Paul Davis
On Sun, Mar 28, 2010 at 9:07 AM, Chris Vine wrote: > On Thu, 25 Mar 2010 23:20:28 + > Chris Vine wrote: >> On Thu, 25 Mar 2010 23:45:24 +0100 >> Murray Cumming wrote: >> > Also, I understand the previous examples that check before >> > dereferencing, but I'm concerned that any part of my cod

Re: gtkmm 3.0.

2010-03-26 Thread Paul Davis
2010/3/26 Chris Vine : > I agree that the libsigc++ model is unsound in a multi-threaded > environment, but while gtkmm depends on libsigc++ I think it would be > desirable to deal with the most egregious problem with it, which is > that only one thread can safely construct slots representing ANY

Re: gtkmm 3.0.

2010-03-26 Thread Paul Davis
2010/3/25 Krzysztof Kosiński : > I think sigc::trackable should have protected virtual functions for > its slot management operations, so that gtkmm can override them to > implement thread safety using GMutex; this would avoid adding a > dependency on Glib or Boost to libsigc++. i think its worth

Re: gtkmm 3.0.

2010-03-25 Thread Paul Davis
On Thu, Mar 25, 2010 at 10:08 AM, Chris Vine wrote: > On Thu, 25 Mar 2010 13:13:32 + > Chris Vine wrote: >> But WeakPtr could be made thread safe in the way I have mentioned, >> because from from glib-2.8 the GObject reference count is thread safe: >> but I doubt it is worth it (and doing so

Re: Last chance for API fixes

2010-03-11 Thread Paul Davis
On Thu, Mar 11, 2010 at 2:53 AM, Murray Cumming wrote: > Was there anything particular that you needed to do with Activatable? set_use_action_appearance() i'm using the C API for now, its fine. ___ gtkmm-list mailing list gtkmm-list@gnome.org http://ma

Re: Last chance for API fixes

2010-03-10 Thread Paul Davis
On Wed, Mar 10, 2010 at 6:42 AM, Murray Cumming wrote: > Soon we'll have to do the x.y.0 releases of glibmm, gtkmm, and friends > again: > http://live.gnome.org/TwoPointTwentynine/ > > So this is your last chance to check for problems with new API: > http://library.gnome.org/devel/gtkmm/unstable/s

conceptual error in wrapping of GSource?

2009-12-09 Thread Paul Davis
Source::Source() does this: g_source_set_callback( gobject_, callback_func, new SourceCallbackData(this), // our persistant callback data object &SourceCallbackData::destroy_notify_callback); this means that when g_source_destroy_internal() is called as a main context is torn

Re: Login-session-wide accelerators?

2009-11-20 Thread Paul Davis
On Mon, Oct 19, 2009 at 7:39 AM, Fatman_UK wrote: > > Hi all! Gtkmm newbie here. > > Apologies if this has been posted already. Searched but didn't find it. I > looked at AccelMaps in the online Doxygen pages, but got confused. > > My program starts at login and runs in the background. There is a

Re: A signal for a ComboBoxText

2009-11-19 Thread Paul Davis
On Tue, Nov 17, 2009 at 3:26 PM, Glus Xof wrote: > Hello everybody, > > I wrote a Gtk::ComboBoxText (that preferably should remain inside a > class method scope) that should drive something each time when an > active element changes. I was trying this doing, > > Gtk::ComboBoxText m_comboboxtext; >

Re: Intltoolize doesn't create po/Makefile.in ...

2009-08-12 Thread Paul Davis
On Wed, Aug 12, 2009 at 12:51 PM, Sever P A wrote: > Thanks again, Daniel, > > I tried to insert your autogen.sh script into my project but... > doesn't work !, and also, I don't know what must change... > > Could you or anyone else give me some more help ? My only comment would be to stop using a

Re: why on_configure_event() is never called here ?

2009-08-06 Thread Paul Davis
On Thu, Aug 6, 2009 at 8:47 AM, Renato Merli wrote: > class myCtn : public Gtk::Fixed > { > >    public: >        Gtk::Button btn; >        int x, y; > >     bool on_configure_event (GdkEventConfigure *e) only top level windows receive configure events.

Re: STL container with Gtk::ListStore without copying?

2009-04-29 Thread Paul Davis
On Wed, Apr 29, 2009 at 4:01 AM, Germán Diago wrote: > Anyway, I would like to know if there's at least a way to show data > from a container > avoiding copies, even if it's not a general method for stl containers. > Is this too much work? if you store pointer-to-object in the TreeModel, then on

Re: Still can't get to insert object into Tree Model

2009-04-23 Thread Paul Davis
On Thu, Apr 23, 2009 at 8:01 AM, Juanpablo S wrote: > > I cannot get to insert or retrieve objects from a Tree Model. You're storing pointers to the objects in the TreeModel, yes? If not, why not? ___ gtkmm-list mailing list gtkmm-list@gnome.org http://

Re: configure event in children

2009-04-21 Thread Paul Davis
On Mon, Apr 20, 2009 at 10:11 PM, Andreas Bauer wrote: > On Mon, Apr 20, 2009 at 04:10:46PM +0200, Krzesimir Nowak wrote: > >> Then why signal_configure_event is part of Gtk::Widget instead of >> Gtk::Window? Or rather: why "configure-event" is part of GtkWidget >> instead of GtkWindow? But I supp

Re: When using Glib::RefPtr<> and when Pointer?

2009-04-20 Thread Paul Davis
On Mon, Apr 20, 2009 at 5:13 PM, Andreas Volz wrote: > Hello, > > I'm a little confused about the Glib::RefPtr<> usage in gtkmm. > > For some returns are used smart pointers and for some normal pointers. > e.g.: > > Gtk::ComboBox: > Glib::RefPtr         get_model () > > but > > Gtk::Bin: > Widget*

Re: configure event in children

2009-04-20 Thread Paul Davis
On Mon, Apr 20, 2009 at 5:38 AM, Andreas Bauer wrote: > > Many thanks for your reply.  Unfortunately, it doesn't make a > difference how I connect.  And to be honest, I would not have expected > it to either.  As far as I understand, the difference between connect > and connect_notify is merely th

Re: Dragging a TreeViewItem painted with custom CellRenderer

2009-04-10 Thread Paul Davis
On Fri, Apr 10, 2009 at 8:50 AM, Paul Davis wrote: > > Its probably true that Gtk::Style's draw methods should probably take > Glib::RefPtr not Glib::RefPtr. I wasn't finished. ... However, that represents an issue in the C API which also requires a GdkWindow. It probably

Re: Dragging a TreeViewItem painted with custom CellRenderer

2009-04-10 Thread Paul Davis
On Fri, Apr 10, 2009 at 4:26 AM, Dirk Vanden Boer wrote: > > But isn't there an api call missing in Gtk::Style of Gtkmm that > accepts a Gdk::Pixmap in stead of Gdk::Window, because painting the > text on a pixmap using the widget style is possible using the c api. > > gtk_paint_layout (widget.get

Re: DND in TreeView

2009-03-30 Thread Paul Davis
On Sat, Mar 28, 2009 at 11:08 PM, Deng Xiyue wrote: > > > OTOH, the docs is not quite clear about how to handle DND in TreeView, > and I supposed such operation is quite common which merits an example. > The existing DND examples in TreeView is about how to use TreeView as a > general DND source o

Re: [glibmm] Byte order macros from GLib missing in glibmm

2009-03-05 Thread Paul Davis
On Thu, Mar 5, 2009 at 7:39 AM, Tomasz Jankowski wrote: > Hello! > > I'm new to gtkmm/glibmm, but I don' understand why glibmm desn't cover > whole glib API. I'm unable to find byte order macros provided by glib. Why > you haven't implemented them? why would glibmm reimplement byte order macros

Re: GTKmm beginner

2009-02-21 Thread Paul Davis
On Sat, Feb 21, 2009 at 6:50 AM, kovariadam wrote: > > This solution brings another error. > >std::list m_Tabs; > >QueryTab *d_tab = new QueryTab(); >for(std::list::iterator i_Tabs = m_Tabs.begin(); i_Tabs > != > m_Tabs.end(); i_Tabs++) >{ >m_Tabs.p

Re: GTKmm beginner

2009-02-21 Thread Paul Davis
This is going to lead to disaster. You should not be putting instances of Gtk::HBox or any derived widgets into an STL container, only pointers to them. Widgets are not copyable in the way that many other kinds of objects are. Adding copy constructors will make the semantics of your code very hard

Re: GTKmm beginner

2009-02-20 Thread Paul Davis
On Fri, Feb 20, 2009 at 9:16 AM, kovariadam wrote: > > Hello, > I want to make a custom widget containing several standard widgets to use > it > as a tab for notebook. > I figured out i need to subclass Gtk::Container or Gtk::Bin and put my > controls inside. Gtk::Container and Gtk::Bin are abs

Re: Some feedback about using gtkmm in real projects.

2009-02-12 Thread Paul Davis
On Thu, Feb 12, 2009 at 3:34 PM, Germán Diago wrote: > 1.- One of the things I think gets a lot in the way of the programmer > in gtkmm is the difference between > objects that use Glib::RefPtr and objects that don't. I think this is > an implementation detail and it should > not make any differe

Re: drawingarea on a dialog can't receive button_press signal

2009-01-29 Thread Paul Davis
On Thu, 2009-01-29 at 13:45 +0800, breadbread1984 wrote: > I find that a drawing area on a dialog can't process signal > button_press, button_release and motion_notify which is necessary for > my application. Is there any solution to this problem? Gtk::Widget::add_events() __

Re: bells and whistle in Gtkmm

2008-12-07 Thread Paul Davis
On Sun, 2008-12-07 at 12:35 -0500, Jam wrote: > You have been told that the explanation is obscured. > For a beginner, like me, throwing around obscure, unfinished and/or > incoherent code is not only a futile endeavour, but most importantly > useless. What is lacking is your understanding of (1)

Re: Drawing in one timer

2008-12-06 Thread Paul Davis
On Sat, 2008-12-06 at 23:53 +0800, BC Zhu wrote: > When i drawing something in one timer, error occoured. > glibmm:error: Unhandled exception(type std::exception) in signal handler. > I used following code to reproduce the error. > I am wondering about the reason of this error.Could someone help me

Re: FileChooserDialog

2008-11-27 Thread Paul Davis
On Thu, 2008-11-27 at 17:43 +0100, Murray Cumming wrote: > Please stop just replying to me off list. Use your reply-to-all feature. > > So, from your reply below, can I assume that this is not a standard > Linux distribution, but a self-built one? Murray, I believe its win32 from the package list

Re: Custom widget draw

2008-11-05 Thread Paul Davis
On Sat, 2008-11-01 at 11:04 +0300, Yuriy Rusinov wrote: > Hello ! > > > > > Hi, > > > > I didn'n clearly understand what you mean. Do you call show_all() or show() > > on > > added widgets? How are you doing your drawing? > > > OK, here is my expose event slot a GtkFrame has no window of its own

Re: Disabling localisation for an app

2008-10-16 Thread Paul Davis
On Thu, 2008-10-16 at 22:07 +0200, Søren Hauberg wrote: > 2008/10/16 klaus triendl <[EMAIL PROTECTED]>: > > Søren Hauberg schrieb: > >> Thanks. I didn't know the 'setlocale' function, which was the one I > >> needed. I've just added a 'setlocale (LC_ALL, "C");' to my code, as I > >> don't want any

Re: Disabling localisation for an app

2008-10-16 Thread Paul Davis
On Thu, 2008-10-16 at 14:21 +0200, Søren Hauberg wrote: > Hi, > I'm working on a GUI in a fairly large project, that (amongst other > things) write numeric data to a file that gnuplot will read. What this > boils down to is that I need > > printf ("%f", 1.7); > > to give me "1.7". However,

Re: gtkmm and gtk-osx

2008-10-09 Thread Paul Davis
On Thu, 2008-10-09 at 17:05 +0200, Murray Cumming wrote: > > its not in the list. again, its not a bug. GTK has no concept of a "top > > menu" and so its not possible to represent this functionality with the > > GTK API (at present). > > So it's an enhancement bug. If it's not in bugzilla then it

Re: gtkmm and gtk-osx

2008-10-09 Thread Paul Davis
On Thu, 2008-10-09 at 16:33 +0200, Murray Cumming wrote: > > but consider that on gtk/osx, DnD within certain widgets (e.g. the > > treeview) is still totally broken. > > Is that covered by the two drag bugs in the list above? 501588 is the closest. its a really deep change in how DnD works that

Re: gtkmm and gtk-osx

2008-10-09 Thread Paul Davis
On Thu, 2008-10-09 at 16:03 +0200, Murray Cumming wrote: > On Thu, 2008-10-09 at 15:04 +0200, Paul Davis wrote: > > On Thu, 2008-10-09 at 15:02 +0200, Murray Cumming wrote: > > > On Thu, 2008-10-09 at 05:54 -0700, Chris Share wrote: > > > [snip] > > > > first

Re: gtkmm and gtk-osx

2008-10-09 Thread Paul Davis
On Thu, 2008-10-09 at 15:02 +0200, Murray Cumming wrote: > On Thu, 2008-10-09 at 05:54 -0700, Chris Share wrote: > [snip] > > first thing to realize: you *must* build gtk-osx from source, along with > > the whole GTK dependency stack. jhbuild makes this pretty easy, most of > > the time. > [snip] >

Re: gtkmm and gtk-osx

2008-10-09 Thread Paul Davis
On Thu, 2008-10-09 at 02:51 -0700, Chris Share wrote: > So the next question is, how do I point gtkmm at gtk-osx rather than gtk+ > (which is the default)? > > Is this done by setting #include to the gtk-osx version of the > header? > > I'm using pkg-config in the build so I guess I need to ch

Re: gtkmm and gtk-osx

2008-10-08 Thread Paul Davis
On Wed, 2008-10-08 at 22:31 -0700, Chris Share wrote: > I'm currently learning to use gtkmm on Mac OS X. > > At the moment, the apps I've created use X11. > > I was wondering whether it is possible to use gtkmm with the Mac native > version of gtk+ (available at as a fr

Re: memory management with glibmm & giomm

2008-10-08 Thread Paul Davis
On Wed, 2008-10-08 at 17:15 +0200, nico wrote: > Hi everybody, > > Here is a program that list recursively files from a given directory. > As I understood, Glib unref() my 3 variables at the end of the bloc {}, > so I don't have to care about that. > But when It run this program, after 2 minutes

Re: Access to raw pointer in Glib::RefPtr

2008-10-04 Thread Paul Davis
On Sat, 2008-10-04 at 12:20 +0200, Germán Diago wrote: > Hello, I want to return a T & from Glib::RefPtr. How can I do it? I > didn't find a way to do it. You don't want do to that. Revise your plans :) --p ___ gtkmm-list mailing list gtkmm-list@gno

Re: Static compilation of an application

2008-09-30 Thread Paul Davis
On Tue, 2008-09-30 at 11:47 -0300, Paulo Flabiano Smorigo wrote: > Hi everybody, > > I don't know if I'm zoning out but it's possible to compile a gtkmm > based application that don't need the gtkmm libraries, like a static > compilation? strictly speaking, its not impossible. practically speaki

Re: GtkButton inside a GtkEventBox : how to receive mouse events on both?

2008-09-29 Thread Paul Davis
On Mon, 2008-09-29 at 17:56 +0200, Yannick Barbeaux wrote: > I am writing a graphic library that encapsulates Gtkmm and > I want to be able to catch any mouse click (with any mouse button), on > all the widgets of this library > So as to make it as general as possible, I put my widgets in an > Ev

Re: How can I wrap a window in other window?

2008-09-29 Thread Paul Davis
On Mon, 2008-09-29 at 12:22 +0530, Mohammed Rashid wrote: > Hi All, > > I have to wrap a ggv window which opens postscrip in a gtkmm window. > Now it is opening as a separate window. > > I am hoping to read soon. read the documentation on GtkPlug and GtkSocket. make sure you read the GTK documen

Re: how to show button stock item without text?

2008-09-14 Thread Paul Davis
On Sun, 2008-09-14 at 23:14 +0200, Germán Diago wrote: > Sorry, I didn't express myself clearly. I've got a Gtk::Button, and if > I put a Gtk::BuiltinStockID as a parameter, > it appears the text and the image. I want to show just the image, > without the text. Is there a simple way? > Or maybe I h

Re: recompute window size after hiding/removing widget

2008-09-12 Thread Paul Davis
On Fri, 2008-09-12 at 13:52 +0200, Murray Cumming wrote: > On Fri, 2008-09-12 at 11:55 +0200, Paul Davis wrote: > [snip] > > the relevant function is: gtk_window_set_policy() and i believe > > that if you set auto-shrink to true, you will get the behaviour you > > want. &g

Re: recompute window size after hiding/removing widget

2008-09-12 Thread Paul Davis
On Fri, 2008-09-12 at 10:25 +0200, Yannick Barbeaux wrote: > Hello, > the answer to this question might be very obvious but I cannot find > any clue in the (poor) online documentation : some of us have compared it to the docs on other equivalent libraries and don't find it that poor. it would be e

Re: MPlayer embed in a part of the application window

2008-08-11 Thread Paul Davis
On Mon, 2008-08-11 at 17:03 -0300, Paulo Flabiano Smorigo wrote: > Hello, > > Ok, I understood... Now I have another doubt. > Which is the best for my purpose, eventbox or drawing area? Or both > works fine? they both work. the only difference is really which events they are setup to receive by

Re: MPlayer embed in a part of the application window

2008-08-08 Thread Paul Davis
On Fri, 2008-08-08 at 15:11 -0300, Paulo Flabiano Smorigo wrote: > Hi All, > > José, I manage to run mplayer with the -wid option but the movie > appears in the whole window. I want to put in a frame or some widget > container... create a drawing area or event box, and use its GdkWindow as the w

Re: How you can make Attachable Windows? Attachable ->" Dockable"

2008-08-05 Thread Paul Davis
On Tue, 2008-08-05 at 10:33 -0500, John Hobbs wrote: > Try to avoid the double post Dimitri :-) > > Not sure 100% what you are looking for, but with Gtk::Notebook you can > put the notebooks in groups and tabs can be interchanged between > notebooks. Is that similar to what you are looking for?

Re: How to use get_window() function?

2008-08-04 Thread Paul Davis
On Mon, 2008-08-04 at 14:19 -0300, Paulo Flabiano Smorigo wrote: > Hi everyone, > > I'm trying to use the get_window() function to get the window id of my > gtkmm app but the function returns null. > This is the function that I'm using: > > int wid; > Glib::RefPtr wid = get_window(); > wid = GDK

Re: Changing color of a Gtk::Entry

2008-07-20 Thread Paul Davis
On Sun, 2008-07-20 at 21:23 +0200, Johannes Bauer wrote: > Hello list, > > I've searched about how to change the color of an Gtk::Entry, but > haven't found anything - I want it to appear greyed out, so it is > immediately visible that nothing can be entered (it's disabled) entry->set_sensiti

Re: round button in gtkmm

2008-07-15 Thread Paul Davis
On Tue, 2008-07-15 at 19:29 +0200, Simon Fuhrmann wrote: > I'm pretty sure you can't _simply_ create a round GTK button that > behaves just like any other button. However what you can try is to > implement your own widget (might be too hard for beginners) or just use > an image, catch mouse events

Re: sanity check: deriving from Gtk::Range

2008-07-10 Thread Paul Davis
On Thu, 2008-07-10 at 11:52 -0500, Joaquim Schmidlap wrote: > Thanks to all for the replies, lots of good stuff to chew on. One > question: > > On Jul 9, 2008, at 9:26 PM, Paul Davis wrote: > > > > control/view components of an MVC system typically use a HAVE-A > &g

Re: sanity check: deriving from Gtk::Range

2008-07-10 Thread Paul Davis
On Wed, 2008-07-09 at 20:35 -0600, Chris Wilson wrote: > A brief scan using google turns up a GTK and a PHP-GTK dial widget, my reading of the question was that there is a language issue here. i had the impression that GtkDial is a "knob". the OP was trying to find a "standard speedometer sort of

Re: sanity check: deriving from Gtk::Range

2008-07-09 Thread Paul Davis
On Wed, 2008-07-09 at 21:05 -0500, Joaquim Schmidlap wrote: > I need to create a Dial type widget, the standard speedometer sort of > thing. I looked around for something open source that would work but > came up dry, so I'm resigned to building my own. > > It seems like the right thing to do

Re: Howto change a cursor for Gtk::Window ?

2008-06-11 Thread Paul Davis
On Wed, 2008-06-11 at 14:41 +0200, Karl Schmitt wrote: > Hi, > > I am fairly new to gtkmm and GTK+. > > I have trouble figuring out how to change > the gtkmm Window cursor (Gtk::Window) ... > > However, I found out that I can change > the cursor of a Gdk::Window using > a Gdk::Cursor object. I

Re: possible to speed up gcc?

2008-06-07 Thread Paul Davis
On Sat, 2008-06-07 at 00:01 -0700, Rich E wrote: > Hi, > > I've been experimenting with Gtkmm in combination with GtkGlextmm, and > while I like this approach over Gtk, I have already realized how much > more time I will have to spend compiling; I would say it is about 20 > times slower than Gtk.

Re: ReFreshing a Window

2008-05-13 Thread Paul Davis
On Tue, 2008-05-13 at 18:25 +0200, Dimitri Holz wrote: > Dimitri Holz schrieb: > > I use a resize() - methode to change a size of my window, but I do it in > > a do-while-trails to see the change-effect: > > > > void MyWindow::change_size() > > { > > int x=100, y=100; > > do > >

Re: Arbitrary number of child windows

2008-05-12 Thread Paul Davis
On Mon, 2008-05-12 at 22:16 +0100, Chris Vine wrote: > On Mon, 2008-05-12 at 16:34 -0400, Paul Davis wrote: > > if you're in a signal handling call stack, i can't agree with this. you > > have no idea which, if any, members of a Glib::Object and all of its > >

Re: Arbitrary number of child windows

2008-05-12 Thread Paul Davis
On Mon, 2008-05-12 at 20:26 +0100, Chris Vine wrote: > > Handing it off to some other handler, such as an idle handler, does > exactly the same as 'delete this' but at some indeterminate time later. > It is better to do it directly and call 'delete this'. if you're in a signal handling call sta

Re: Arbitrary number of child windows

2008-05-10 Thread Paul Davis
On Fri, 2008-05-09 at 19:28 +0200, Holger Berndt wrote: > > Another possibility would be something along Qt's QObject::deleteLater() > function to not actually do a "delete this;" but schedule an object for > deletion in the event loop. That sounds more well-defined than a "delete > this", but I

Re: gtkmm guidelines?

2008-05-09 Thread Paul Davis
On Fri, 2008-05-09 at 20:56 +0200, Martin (OPENGeoMap) wrote: > IHMO, with this kind of guidelines i think readability is better and > we don´t get crazy with APIs we are using. the problem is that some people don't agree with you. neither C++ nor gtkmm seek to impose a development methodology o

Re: Storing a pointer in Gtk::SelectionData

2008-04-26 Thread Paul Davis
On Sat, 2008-04-26 at 18:29 +0200, Murray Cumming wrote: > On Sat, 2008-04-26 at 14:48 +0200, Johannes Schmid wrote: > > Hi! > > > > Probably a silly question, but how can I savely store a pointer to an > > object in a Gtk::SelectionData. I guess I have to use > > > > Gtk::SelectionData::set (in

Re: make does not work within the directories of examples

2008-04-16 Thread Paul Davis
Did you run the configure script? Ie: $ cd /path/to/gtkmm $ ./configure The configure script lives in the root directory. Automake and Autoconf work to generate the configure script. Running the configure script will generate the actual Makefiles for the entire project. Also, you won't b

Re: Gtk+ 3.0 and gtkmm-3.0

2008-04-08 Thread Paul Davis
On Tue, 2008-04-08 at 14:53 +0200, Germán Diago wrote: > > > I personally like that the RefPtr makes it very obvious when an > object > > is being shared. If the class does it itself then it's not obvious > when > > reading code like this > > > Something something2 = something; > > something2.se

Re: Gtk+ 3.0 and gtkmm-3.0

2008-04-08 Thread Paul Davis
On Tue, 2008-04-08 at 11:42 +0200, Murray Cumming wrote: > On Tue, 2008-04-08 at 11:24 +0200, Germán Diago wrote: > > > > 3.- It's VERY difficult to introspect signals, slots and in gtkmm, > > because they use libsigc++. And they can only > > be bound at compile time. Don't get me wrong. libsigc+

Re: Can't get Gdk::Window from Gtk::Window

2008-04-07 Thread Paul Davis
On Mon, 2008-04-07 at 18:32 +1000, Adam Nielsen wrote: > >> I'm stuck trying to figure out how to get a Gdk::Window from a > >> Gtk::Window. > > > > You should be able to use Gtk::Widget::get_window(). This will return > > NULL before the widget is realized, but after it is realized it should

Re: how to use get_geometry correctlly

2008-03-25 Thread Paul Davis
On Tue, 2008-03-25 at 10:43 +0800, chennanbang wrote: > > > On Tue, Mar 25, 2008 at 9:27 AM, Paul Davis > <[EMAIL PROTECTED]> wrote: > > > > you can't do this until the widget has been realized, because > before

Re: disabling widgets and colors.

2008-03-25 Thread Paul Davis
On Tue, 2008-03-25 at 12:27 +0100, Joaquim Duran wrote: > Dear all, > > Currently, a customer is asking to show pop ups in transparent mode in a > non-composite X11 environment. > > I've done some testing: I've places to containers in overlapped > positions in a Fixed container. To avoid the f

Re: Building Glibmm 2.14.2 against Glib 2.16.1

2008-03-24 Thread Paul Davis
On Mon, 2008-03-24 at 20:42 -0500, Jonathon Jongsma wrote: > Yes, this is unfortunate and was caused by glib maintainers moving > some functions to a different header. We complained that this was a > form of API breakage, but they said that the only API that they > guarantee is that you should al

Re: how to use get_geometry correctlly

2008-03-24 Thread Paul Davis
On Tue, 2008-03-25 at 09:08 +0800, chennanbang陳南邦 wrote: > Hi, all, > > I inherit Gtk::Button, and wonna change the position of my widget > internally. > And I use following steps to achieve this, but segmentation fault. > Please correct me, thanks! > > /* in my widget */ > int x, y, tmp=0; > ge

Re: parent in heirarchy should get the clicks...

2008-03-21 Thread Paul Davis
On Thu, 2008-03-20 at 16:08 -0700, rob wrote: > I have a heirarchy of widgets: > > RadioButton > AspectFrame >OpenGL video<- homebrew opengl widget. > > I have noticed that the RadioButton gets clicks when I click anywhere > inside the radio button but outside the OpenGL video.

bug in libgnomecanvas

2008-03-17 Thread Paul Davis
i'd file this in bugzilla, but i can't seem to find a sensible component for it. the bug is pretty simple, caused by a misunderstanding of what reserve() does. it was revealed by compiling with _GLIBCXX_DEBUG (as described here: http://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html) Ind

Re: Static builds

2008-03-16 Thread Paul Davis
On Sun, 2008-03-16 at 20:10 +0100, Sebastian wrote: > 1)I'll have to carry around >the program itself for all the operating systems used > + the libs for all the operating systems used there will be essentially no more code than if you do a static link, except of course that you will g

Re: Static builds

2008-03-16 Thread Paul Davis
On Sun, 2008-03-16 at 17:35 +0100, Sebastian Rose wrote: > Will static builds be supported some time in the future again? > > I don't know when this happend, but two or three years ago it was > possible to build static apps using Gtk+/gtkmm/WxGtk, which is now not > possible anymore. GTK+ reli

Re: inserting ColorButton in CellRenderer ....

2008-03-14 Thread Paul Davis
On Fri, 2008-03-14 at 10:43 -0400, Roberto Alejandro Espí Muñoz wrote: > Ok I saw it .. What I don't understand is why do you have to paint the > widget from scratch?? and check if it is active, or toggled to paint > that particular behaviour?? isn't there a simpler way to just add it > to the cel

Re: gtkmm : program without a main window

2008-03-13 Thread Paul Davis
On Thu, 2008-03-13 at 06:54 +0100, Helfer Thomas wrote: > gtkmm seems to require a call to Gtk::Main::run. > > I am coding a little gnuplot-like program. The main interface will be << > text based >> using readline. My (probably very basic) question is how > to make a call to Gtk::Main::run and s

Re: synchronize widgets without redundant signals

2008-03-10 Thread Paul Davis
On Sun, 2008-03-09 at 19:48 -0400, JLM wrote: > I am working on an application that will have multiple widgets that > display the same value in different ways. For example I could have a > scroll bar that represents a numeric value, and an entry that also > represents the same value. That way the

RE: Glib::ustring

2008-03-06 Thread Paul Davis
On Wed, 2008-03-05 at 21:06 -0600, Jorge Luis Vidales Valladares wrote: > This is in the class > > int CSerial::SendData( const char *buffer, int size ) > { > > if( !m_bOpened || m_hIDComDev == NULL ) return( 0 ); > > DWORD dwBytesWritten = 0; this is totally off-topic, but you wil

Re: Get current action in ActionGroup

2008-03-05 Thread Paul Davis
On Fri, 2008-02-29 at 01:56 +0300, Vasiliy G Tolstov wrote: > Hello! > > I'm having some code like this > > > m_refActionGroup->add(Gtk::Action::create("Users",Gtk::StockID("users_stock")),sigc::mem_fun(*this, > &Window::on_action_users)); > > m_refActionGroup->add(Gtk::Action::create("Groups

  1   2   3   4   5   6   7   >