Re: when we can delete a class derived from Gtk::Window or others

2022-02-19 Thread Klaus Rudolph via gtkmm-list
Thanks for investigation! So I simply will do it this way :-) Thanks for your work! Klaus Am 19.02.22 um 12:42 schrieb Kjell Ahlstedt via gtkmm-list: Den 2022-02-18 kl. 18:55, skrev Klaus via gtkmm-list: I tested you example and it works whenever the user closes the windows

Re: when we can delete a class derived from Gtk::Window or others

2022-02-18 Thread Klaus via gtkmm-list
is not the problem. The question to answer is only for the current window and delete. All interactions in the example code are not in focus here. Thanks Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm

when we can delete a class derived from Gtk::Window or others

2022-02-17 Thread Klaus Rudolph via gtkmm-list
I want to create some windows on demand with "new". If the user closes the window, when I can call delete on that class derived from Gtk::Dialog or Gtk::Window? Example: #include #include #include class ExampleWindow : public Gtk::Dialog { protected: Gtk::Box m_VBox;

Re: Why cursor keys are not longer reported in key press events

2020-03-28 Thread Klaus
t it looks that the default handler has changed behavior. Or had I myself programmed some unlucky side effects? :-) Thanks for your detailed answer/link list! Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailma

Re: Why cursor keys are not longer reported in key press events

2020-03-27 Thread Klaus
lers. OK, can workaround by simply overriding all the window handlers... Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Why cursor keys are not longer reported in key press events

2020-03-27 Thread Klaus Rudolph
Hi all, I use the cursor keys like GDK_KEY_Left etc in key press event. After recent update on fedora non of the cursor keys are reported anymore. I do not get a callback on the event handler for the cursor keys. All other key events are reported as before. Bug or feature? Regards Klaus

Re: goocanvasmm and gtkmm4

2020-03-06 Thread Klaus
! Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

goocanvasmm and gtkmm4

2020-03-04 Thread Klaus Rudolph
I see in the mailing list that gtkmm4 is coming... :-) Will goocanvasmm-2 also work with upcoming gtkmm4? Maybe is there a new release like goocanvasmm-3? Can anyone test if it still compiles within gtkmm4. Regards Klaus ___ gtkmm-list mailing list

Re: Unable to set background color for button

2020-03-04 Thread Klaus Rudolph
ch "gotcha" :-) For today I can continue my simply button job :-) Thanks a lot for your patience! Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Unable to set background color for button

2020-03-04 Thread Klaus Rudolph
like "background-image" or " background-color:" or something. Maybe there is some other page which documents the "style class .text-button". But that page is not linked nor I can find it. Sorry again! But I want to be able to find the information my self :-)

Re: Unable to set background color for button

2020-03-04 Thread Klaus Rudolph
ll? Sorry for the total stupid question, but I am running in the dark as I did not find any relevant docs in the moment. And I am not alone! There are a lot questions on stackoverflow which also did not get working answers only by changing the image, which feels wrong to me. Rega

Re: Unable to set background color for button

2020-03-04 Thread Klaus Rudolph
I tried now the following, but it still doesn't work: int main(int argc, char *argv[]) { auto app = Gtk::Application::create(argc, argv, "org.gtkmm.example"); Gtk::Window window; Gtk::Button button("Some text"); window.add(button); Gdk::RGBA color;

Re: Unable to set background color for button

2020-03-04 Thread Klaus
Thanks! Is there any example available to set the background color of a button with the StyleProvider? Am 04.03.20 um 18:51 schrieb Daniel Boles via gtkmm-list: yes they do: """ Deprecated: 3.16: This function is not useful in the context of CSS-based rendering. If you wish to change the

Unable to set background color for button

2020-03-04 Thread Klaus Rudolph
I want to change the background color of a Gtk::Button, but I simply can not do it :-( int main(int argc, char *argv[]) { auto app = Gtk::Application::create(argc, argv, "org.gtkmm.example"); Gtk::Window window; Gtk::Button button("Some text"); window.add(button);

Gtk::Window::fullscreen_on_monitor()

2020-02-22 Thread Klaus Rudolph
the value. The documentation https://developer.gnome.org/gtkmm/stable/classGdk_1_1Screen.html#details is quite unclear how to get an instance of that type. If I have multiple Xservers running or can use a remote X server, how to get the screen from that? Tha

how to get key press event in goocanvasmm

2020-02-14 Thread Klaus Rudolph
Is it possible to receive key press events in canvas? The following signal handler is not called inside goocanvas. It compiles fine but it is not called if a key is pressed. Exmaple: Glib::RefPtr root; class MyCanvas: public Goocanvas::Canvas { double scale = 1; bool

Re: Where to free dynamic allocated widgets, generated within signal handlers

2020-01-06 Thread Klaus
Am 04.01.20 um 12:26 schrieb Kjell Ahlstedt: Hi Kjell, I haven't tested, but I think you can override on_hide() and/or on_delete_event() and "delete this;" there. Which one is called might depend on how the window is hidden. on_hide() is called if the window is hidden by pressing a button that

Re: Where to free dynamic allocated widgets, generated within signal handlers

2020-01-04 Thread Klaus
dow) { delete window; } My question still is: Is it safe to delete the "own" window the the "own" signal handler and which signal handler is best to use for the call to delete. Is it either on_hide() or on_delete_event( GdkEventAny* ); Thanks! Klaus _

Re: Where to free dynamic allocated widgets, generated within signal handlers

2020-01-03 Thread Klaus Rudolph
in the sig handler for the delete event. Is that the safe way? Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Where to free dynamic allocated widgets, generated within signal handlers

2020-01-03 Thread Klaus Rudolph
I want to write an application which sometimes should create new top level windows by user interaction. As this, the user e.g. press a button and a new window should be opened. Later on, the user should be able to close that new top level window. Where I can safely "free" the resources of the

Re: printing content of goocanvasmm

2017-12-30 Thread Klaus Rudolph
ext before draw on it or if it is possible for the canvas to move. Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: printing content of goocanvasmm

2017-12-29 Thread Klaus
ing-plplot-in-gtk-drawingareas/ where you can send the contents of a Gtk::DrawingArea to either a file or a printer. I will take a look into! Thanks Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

printing content of goocanvasmm

2017-12-29 Thread Klaus Rudolph
the stuff for canvas looks very unlucky... Maybe there is some document to start reading with? The job sounds so simple: Print a canvas, but after looking in the printing example I am totally confused :-( Regards Klaus ___ gtkmm-list mailing list

Event if a widget becomes "realized" / was drawn

2017-12-26 Thread Klaus Rudolph
Is there an event which I can bind a signal handler to which fires if a widget becomes visible / "realized". I want to do some thing AFTER the widget is drawn. Thanks! ___ gtkmm-list mailing list gtkmm-list@gnome.org

Why button press event only reacts on double click?

2017-12-26 Thread Klaus Rudolph
The function "signal_button_press_event()" reacts only if I double click the button. Is it possible to react also on a single press event? #include #include #include class ExampleWindow: public Gtk::Window { Gtk::Button button; public: ExampleWindow(): button("Hallo") {

Get size of widget

2017-12-26 Thread Klaus Rudolph
I simply want to know which size a widget has. I need this info to set a ScrolledWindow to a maximum size if the size of the widget is bigger than the screen. But all functions I know give a constant value of 1. #include #include #include class ExampleWindow: public Gtk::Window {

Aw: Re: Tree View with Tree Model where sub items have their own columns / different structure

2017-09-12 Thread Klaus Rudolph
id not contain all columns for each row. Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Tree View with Tree Model where sub items have their own columns / different structure

2017-09-12 Thread Klaus Rudolph
ucture should be presented as: /dir1/subdir1/file1 /dir1/subdir1/file2 /dir1/subdir2/file3 /dir2/subdir3/file4 Should become: dir1 subdir1 file1 file2 subdir2 file3 dir2 subdir3 file4 Can you catch me? Regards

Tree View with Tree Model where sub items have their own columns / different structure

2017-09-12 Thread Klaus Rudolph
n in above example? Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Aw: Re: Re: Re: scroll a tree view to sepcific row

2017-08-16 Thread Klaus Rudolph
Hi Daniel, >  I guess you missed my other reply:   Yes, I missed it... sorry! > ... and thus its tree path is just "0". Got it to work! Perfect! Thanks very much for your help! Regards Klaus ___ gtkmm-list mailing list gtkmm-list

Aw: Re: Re: scroll a tree view to sepcific row

2017-08-16 Thread Klaus Rudolph
without manually coding the iterating loop over all the children? Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Aw: Re: scroll a tree view to sepcific row

2017-08-16 Thread Klaus Rudolph
nothing happens :-(   Regards  Klaus   Gesendet: Mittwoch, 16. August 2017 um 09:12 Uhr Von: "Daniel Boles" <dboles@gmail.com> An: gtkmm-list <gtkmm-list@gnome.org> Betreff: Re: scroll a tree view to sepcific row I meant get_path(TreeIter)

scroll a tree view to sepcific row

2017-08-16 Thread Klaus Rudolph
(m_Columns); m_TreeView.set_model(m_refTreeModel); and fill with: Gtk::TreeModel::Row row = *(m_refTreeModel->append()); row[m_Columns.m_col_id] = 1; And now I simply want to scroll to the 7. row and also want to set it selected. But how can I find the "path

how can I draw a arc with goocanvasmm

2017-01-23 Thread Klaus Rudolph
ist of points for a polyline? If so, is there an example anywhere? Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

when to call set_support_multidevice()

2016-06-18 Thread Klaus Rudolph
Hi all, I have a multi touch device and I have to call set_support_multidevice() for each window which should be aware of multidevices. But I can't do it at startup like: // will not work, no window here! win->get_window()->set_support_multidevice(); Gtk::Main::run(*win); So my idea is to

Receiving signals, modify and send again to the SAME handler

2016-06-18 Thread Klaus Rudolph
I have a signal handler which successfully receives signals. In this handler I want generate modified signals and send them to the object, so that the *same* handler will receive this new generated signals again. I have the following code fragments: win = new Gtk::Window; m_canvas = new

Aw: Re: combo box in dialog did not work, not mouse selctable, lots of Gdk-CRITICAL messages on console output

2015-02-18 Thread Klaus Rudolph
Gesendet: Mittwoch, 18. Februar 2015 um 20:02 Uhr Von: Jonas Platte jonaspla...@gmail.com An: Klaus Rudolph lts-rudo...@gmx.de Cc: gtkmm-list@gnome.org Betreff: Re: combo box in dialog did not work, not mouse selctable, lots of Gdk-CRITICAL messages on console output It might

Re: how to shrink a window

2015-02-18 Thread Klaus Rudolph
() on the main window do the job for me! Thanks a lot! Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

combo box in dialog did not work, not mouse selctable, lots of Gdk-CRITICAL messages on console output

2015-02-18 Thread Klaus Rudolph
Hi again, I tried to get a combo box to work in a dialog window. But the behavior is strange. The following things will not work: After the dialog window opens ( after pressing the do button in my example code ) you can open the combo box list with a mouse click. But it is not possible to

Aw: Re: how to shrink a window

2015-02-17 Thread Klaus Rudolph
); // no effect! return true; } Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

how to shrink a window

2015-02-17 Thread Klaus Rudolph
-set_size_request( 200,200); Gtk::Main::run(win); delete canvas; } Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: send a manual ceated signal to a window or widget

2015-01-07 Thread Klaus Rudolph
such problems in gtk. If reentrance is a known problem with gtk, is there any documentation which things should (not) be done? Thanks Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: send a manual ceated signal to a window or widget

2014-12-23 Thread Klaus Rudolph
Hi all, That's reasonable. In this case I've got the impression that Klaus is trying to implement a workaround for shortcomings in goocanvas. Goocanvas does not handle touch events properly, and Klaus wants to convert touch events to button press events. Klaus, correct me if I'm wrong

send a manual ceated signal to a window or widget

2014-12-15 Thread Klaus Rudolph
but also the context. is it something like window-emit??? ( event ); or must I fill the target window somewhere in the event and is there a app-send_event(event). Sorry, I can not find any example. Thanks Klaus ___ gtkmm-list mailing list gtkmm

Aw: Re: multitouch application

2014-12-12 Thread Klaus Rudolph
Thanks for your reply!   Yes, I found a lot information because I found many keywords to search for! Thanks!   Regards Klaus The only multitouch demo in gtkmm that I know of is the Gestures demo at https://git.gnome.org/browse/gtkmm/tree/demos/gtk-demo.   It's perhaps not exactly what you

Multitouch in goocanvasmm

2014-12-12 Thread Klaus Rudolph
events there from more then the first finger tipped on the touch. Maybe it is also a solution to enable multiple press/move/release events. But I have no idea how to do this. It would be nice if someone can point me to the information. Thanks Klaus

multitouch application

2014-12-11 Thread Klaus Rudolph
is working on my touch with my gtkmm application. But I can not see any multitouch event. A python multitouch is working well, so the basic kernel/x/drivers seems to work well. But I have no idea where to start with gtkmm. Thanks Klaus ___ gtkmm-list mailing

strange behaviour with goocanvas signal handler

2014-11-27 Thread Klaus Rudolph
Hi, I have to deal with a workaround for a bug https://bugzilla.gnome.org/show_bug.cgi?id=711709 But the behavior is quite strange! After pressing on the circle a dialog is shown (expected). If I press the ok button on the dialog, the whole window hangs on the mouse pointer! This is really

printing goocanvasmm

2014-08-29 Thread Klaus Rudolph
involved. Any documentation, any hints, maybe a demo program or sources of a program which uses goocanvasmm and do printing? Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

How to debug gtkmm application ( symbols from lib missing )

2014-08-28 Thread Klaus Rudolph
debug information also from gtkmm objects? Which CXXFLAGS/LDFLAGS are needed? Any additional requirements? Thanks Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Drawing a semi circle with goocanvasmm

2014-03-24 Thread Klaus Rudolph
Hi all, I simply want to draw a semi circle on a goocanvasmm. I though about two options: 1) Drawing a line with CAP_ROUND style. But I was not able to only draw one end with the round cap. :-( 2) Drawing a elipse and hide a half, but how? Any hint? Regards Klaus

How to switch of antialiasing for (all) items of a goocanvasmm

2014-01-03 Thread Klaus Rudolph
for goocanvasmm, give me a hint :-) Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

signals for goocanvas corrupted after using a dialog

2013-11-07 Thread Klaus Rudolph
program the signal handlers are sometimes never called and sometimes called on wrong areas and so on. A bit strange behavior. I hope someone can find the problem. Thanks Klaus #include gtkmm.h #include goocanvasmm.h #include sigc++/sigc++.h bool ShowDialog( const Glib::RefPtrGoocanvas::Item item

How to create a new toplevel window

2013-03-29 Thread Klaus Rudolph
I want a create a new toplevel window. So my application should have two open windows! I could only set one window to Gtk::Main::run(win). Can I get a simple example how to create a second window and add that window to the application? Thanks Klaus

Aw: Re: How to create a new toplevel window

2013-03-29 Thread Klaus Rudolph
. Thanks! Klaus     Unless I did not understand the question, it seems pretty easy: Gtk::Window w1, w2; // add widgets to the windows w1.show(); w2.show(); Gtk::Main::run(); ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org

wy signal handler could not be override

2013-03-29 Thread Klaus Rudolph
::ptr_fun(MyHandler4)); works. But this is not very handy :-( Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Aw: Re: wy signal handler could not be override

2013-03-29 Thread Klaus Rudolph
. But the handler is still *not* called. Can anyone try to reproduce the problem? Maybe this is simply a bug? Regards Klaus   ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Aw: Re: wy signal handler could not be override

2013-03-29 Thread Klaus Rudolph
box) goocanvas: 1.0.0-3fc17 How can I emit the signal my self? In my other answer some minutes ago I put my complete example. Maybe it is easier to start from this and run directly in the problem... Regards Klaus ___ gtkmm-list mailing list gtkmm

Aw: Re: wy signal handler could not be override

2013-03-29 Thread Klaus Rudolph
to read the examples in the beginners tutorial which are not working at all! Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

how to clip?

2013-02-22 Thread Klaus Rudolph
::create( false, inner_points); root-add_child( m_inner_line); Can give me someone a hint how to use them or where to find a documentation? Thanks Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm

canvas coordinate

2012-12-07 Thread Klaus Rudolph
to the left/top corner of a canvas. Any hints? Regards Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: sigc::mem_fun and Glib::RefPtr

2012-10-05 Thread klaus triendl
::slotvoid f = sigc::group(MyClass::on_button, sigc::group(std::shared_ptrMyClass::operator-, c)); f(); greetings, klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: sigc::mem_fun and Glib::RefPtr

2012-10-05 Thread klaus triendl
Am Fri, 05 Oct 2012 12:27:01 +0200 schrieb Florian Philipp li...@binarywings.net: Am 05.10.2012 11:32, schrieb klaus triendl: Yes, it's easier but all you do is to fetch the c-pointer from the RefPtr. But you loose the reference counting: if the variable 'c' goes out of scope you end up

Re: sigc::mem_fun and Glib::RefPtr

2012-10-04 Thread klaus triendl
to make the code more readable. greetings, klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: sigc::mem_fun and Glib::RefPtr

2012-10-04 Thread klaus triendl
Am Thu, 4 Oct 2012 22:07:16 +0200 schrieb klaus triendl kl...@triendl.eu: namespace sigc { // the partially specialized struct dereference_trait is essential, // otherwise sigc can't deduce the return type from expression *sigc::_1 template class T struct dereference_traitstd

Re: Error 0x000007b

2011-05-20 Thread klaus triendl
a DLL could not be loaded. I am using Gtkmm64 and I had never had a problem running the programs written in Gtkmm, does anybody else got this? What exactly does the event log tell? -- Klaus Triendl ___ gtkmm-list mailing list gtkmm-list@gnome.org http

AW: gobject floating reference count

2011-02-03 Thread klaus triendl
) { k = some_glib_method( ); } GVariant* someFunc() { return some_glib_method( ); } GVariant * ref; someFunc( ref ); someFunc( ref ); ref =someFunc( ); Greetings, Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http

Re: gtkmm 3.0 and libsigc++

2010-07-27 Thread klaus triendl
communication, which also allows for connecting to/disconnecting from signals in a threadsafe manner. Regards, Klaus Triendl ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

libgnomedb/libgdaui objects in libgdamm

2010-02-19 Thread Täger , Klaus
Is there a schedule for the integration of the libgdaui objects in libgdamm (or for the creation of a libgda-uimm project)? ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Force english locale on Win32

2009-06-07 Thread klaus triendl
::locale(C)); The c++ locale works independently from the c-runtime locale for iostreams, I don't know whether it affects gtkmm. Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Query whether a thread is running

2009-04-30 Thread klaus triendl
to it is no longer valid. Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Query whether a thread is running

2009-04-30 Thread klaus triendl
andras toth schrieb: Hi Klaus, Thanks for clarifying it. I need to know whether the thread is already running, because I use threads to fetch content from a server when the user clicks on a button. And if the button is clicked again whilst the previously started thread is not finished yet, I

Re: sigx synchronous requests?

2009-04-09 Thread klaus triendl
Milosz Derezynski schrieb: Thanks very much! You're welcome! I made a mistake in the request handler, you not only have to open a tunnel, but you also must *call* it: int mythread::sync_calc() { // sync request return sigx::open_sync_tunnel( sigc::mem_fun(this, mythread::on_calc)

Re: sigx synchronous requests?

2009-04-08 Thread klaus triendl
Milosz Derezynski schrieb: Hey everyone, and especially Klaus, I was wondering if there is a way to have synchronous (that is, achieved by proper internal locking) requests on sigx threadables? I have the problem that currently I have a threadable class but I need one specific synchronous

Re: Seg fault reading data from IOChannel

2009-02-03 Thread klaus triendl
'data' to the read() function. How big is 'data' passed to read_data()? Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Seg fault reading data from IOChannel

2009-02-03 Thread klaus triendl
Víctor M. Palacio Tárrega schrieb: You are absolutely right. buff remains from another workaround and should be eliminated. About data, should be defined as char foo[data_lenght]; where I use only 1 or 4 as data_lenght. Below are included the calls to read_data() function I'm using. I'm

Re: templating

2008-12-21 Thread klaus triendl
)) { // ... } }; Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Problem with Gtk::manage in Visual Studio 2008

2008-12-20 Thread klaus triendl
and msvcr90.dll. But if you have modules that link against their own static runtime and modules that use other dynamic runtimes (like msvcp80.dll and msvcr80.dll) those module-bound allocation/deallocation operations are important. Maybe a gtkmm developer can comment on this? Klaus

Re: Problem with Gtk::manage in Visual Studio 2008

2008-12-20 Thread klaus triendl
klaus triendl schrieb: To solve your problem use the dynamic runtime - Multi-threaded Debug for the Debug configuration or Multi-threaded Release for the Release configuration. Sorry, I've meant of course Multi-threaded Debug DLL/Multi-threaded Release DLL

Re: Problem with Gtk::manage in Visual Studio 2008

2008-12-20 Thread klaus triendl
Armin Burgmeier schrieb: On Sat, 2008-12-20 at 16:55 +0100, klaus triendl wrote: 1) gtkmm uses the dynamic runtime Did you follow the instruction on http://live.gnome.org/gtkmm/MSWindows to use the Multi-threaded Debug runtime, which is the static runtime? As far as I can tell

Re: accessing widgets from different threads

2008-12-13 Thread klaus triendl
a whole framework like sigx to handle the interthread communication. This is a rather generic answer for the sake of brevity, I'm afraid, but it should give you a clue how to achieve what you want Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org

Re: Gtkmm and thread's question?

2008-10-27 Thread klaus triendl
not access GUI stuff from another thread than the GUI-thread (which is normally the main thread)! Rather send a message from the 2nd thread to the main thread by using Glib::Dispatcher or the sigx++ library that gives you a whole framework for such tasks... Klaus

Re: Disabling localisation for an app

2008-10-16 Thread klaus triendl
to call additionally std::locale::global(C) to change the c++ locale to C on a global scale. Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Disabling localisation for an app

2008-10-16 Thread klaus triendl
Søren Hauberg schrieb: std::locale::global expects a std::locale and not a string, so the extra needed line is 'std::locale::global (std::locale (C));' Yes, you're right; sorry for that... Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http

Re: unresolved overloaded function signal

2008-10-03 Thread klaus triendl
- in your case the first argument type - sigc::mem_funint() - or by picking a function template for a specific number of arguments - in your case 0 arguments - sigc::mem_fun0() [or also sigc::mem_fun0()] - or even both - sigc::mem_fun1int() Klaus ___ gtkmm-list

Re: unresolved overloaded function signal

2008-09-16 Thread klaus triendl
me an unresolved overloaded function signal error. How can I fix this? By specifying the member function's argument type to mem_fun: button.signal_clicked().connect(sigc::bind(sigc::mem_funint(*this, Red::setNumber), 1)); Klaus Triendl ___ gtkmm-list

Re: Fix for bug http://backtrace.info/ticket/76

2008-08-29 Thread klaus triendl
Milosz Derezynski schrieb: Thanks! I'll look into the hardcoding. (I'm CC'ing the reply to Klaus and gtkmm-list.) 2008/8/23 Jacek Wolszczak [EMAIL PROTECTED] Hi add debian = SConscript('debian/SConscript') to SConstruct in sigx main folder. e.g. at line 370 Create

Re: How do I use Glib::spawn_async_with_pipes on Windows

2008-08-28 Thread klaus triendl
::nil, sigc::nil, sigc::nil, void**, int*, int*, int*) I didn't look at the documentation but by looking at the error the second argument can't probably be a string constant because Glib::ArrayHandle doesn't have a constructor taking a string constant. -- Klaus

Re: libsigc++ question

2008-08-25 Thread klaus triendl
://libsigc.sourceforge.net/libsigc2/docs/reference/html/classsigc_1_1slot__base.html#69042c2e2b0e5449fbf8203e862192a7) Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: [sigx] new git repository

2008-08-06 Thread klaus triendl
Milosz Derezynski schrieb: We (William Pitcock and me) just wanted to announce that we're about to package sigx for Debian! That's great news! Klaus: We're writing an autootooled buildsystem for that purpose. We wanted to ask you if you would consider to use the autotools-based buildsystem

Re: Multiple threads and drawing

2008-06-20 Thread klaus triendl
Germán Diago schrieb: 2008/6/18 klaus triendl [EMAIL PROTECTED]: One question remains though: is sharing a Glib::RefPtr between multiple threads threadsafe, given that only one thread at a time accesses the actual object? Or asked differently: is Glib::ObjectBase::reference() and Glib

Re: List etiquette (was Re: Multiple threads and drawing)

2008-06-19 Thread klaus triendl
% feasible either because I'm ending up with multiple accounts having the same description. Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Multiple threads and drawing

2008-06-18 Thread klaus triendl
the list. Your redraw() handler should update the Gtk::Table with the information found in this image list (after locking it of course). You could use a framework for interthread communication like sigx++, which is a good idea IMHO. Klaus ___ gtkmm-list

Re: Multiple threads and drawing

2008-06-18 Thread klaus triendl
::reference() and Glib::ObjectBase::unreference() threadsafe? To Germán: please reply to all if you reply to a message... Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

[sigx] new git repository

2008-05-09 Thread klaus triendl
include and the build script honoring the environment variables. Concerning the mailinglist: Murray, would it be ok to use sigc's mailinglist for now? I plan to ask the gnome staff but they require at least an official release of a project. -- Klaus

Re: Re: interthread communication library sigx++ (crossposting)

2008-05-03 Thread klaus triendl
appreciation! I will fix those things as soon as possible as I'm interested to have the library up and running, too. -- Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Re: Re: interthread communication library sigx++ (crossposting)

2008-05-03 Thread klaus triendl
On Sat, 2008-05-03 at 10:28 +0200, klaus triendl wrote: - There is no way to specify an own compiler with the build system; one fried of mine has problems building it with g++ 4.2.1, he's installed 4.3 but has no way to point the build to it I'll include this possibility

Re: [sigc] interthread communication library sigx++ (crossposting)

2008-05-03 Thread klaus triendl
, including glib.h is a viable solution. -- Klaus ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: interthread communication library sigx++ (crossposting)

2008-05-03 Thread klaus triendl
Jonathon Jongsma schrieb: On Sat, 2008-05-03 at 10:28 +0200, klaus triendl wrote: - A link to an SCM repository of sigx would be really nice I know, I'm missing a SCM, too. I'm thinking about sourceforge.net, berlios.de or google - do you have a good suggestion? Frankly, I would suggest

Re: interthread communication library sigx++ (crossposting)

2008-05-01 Thread klaus triendl
Andreas Rottmann for his work on libsigcx which I used before, giving me some ideas for sigx++. Would be nice to hear something from you, Andreas... To all: Sorry, I did the crossposting wrong (no follow-up), so I'm writing to both newsgroups... -- Klaus

  1   2   >