Please finally apply this libsigc++ patch

2009-12-23 Thread Krzysztof Kosiński
://bugzilla.gnome.org/show_bug.cgi?id=586436 https://bugzilla.gnome.org/show_bug.cgi?id=343967 It is really a pain not to have this working for Inkscape, and I do not want to fork yet another library just to apply a trivial patch to it. Regards, Krzysztof Kosiński -- View this message in context: http

Re: Thoughts on mm-common and gmmproc

2010-01-07 Thread Krzysztof Kosiński
2010/1/7 Murray Cumming murr...@murrayc.com: gmmproc's use of perl and m4 (and how those parts are interdependent) makes it very hard to add new features or to fix problems. Agree 100%. I tried to add a feature to _WRAP_VFUNC that would make wrapping GIO stream vfuncs easier (related to this

Re: headers question

2010-01-11 Thread Krzysztof Kosiński
2010/1/11 Murray Cumming murr...@murrayc.com:   And does either pattern make a difference in the speed with which the executable file is executed? No, if anything it would affect the size of your executable, though that's unlikely. No, I am sure that what headers you include cannot affect

Re: Why these critical errors ?

2010-01-19 Thread Krzysztof Kosiński
instance will be initialized the first time it is accessed. Gtk::Foo get_static_gtk_foo() { static Gtk::Foo foo(1, 2, 3); return foo; } Regards, Krzysztof Kosiński ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman

Re: data in signal association. (user_data on GTK+)

2010-01-20 Thread Krzysztof Kosiński
), test); Regards, Krzysztof Kosiński ___ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: data in signal association. (user_data on GTK+)

2010-01-22 Thread Krzysztof Kosiński
W dniu 21 stycznia 2010 11:40 użytkownik Murray Cumming murr...@murrayc.com napisał: tmp_item-signal_activate().connect(sigc::mem_fun(*this, App::cb_menu_click), test); I think you are missing a sigc::bind() there. http://libsigc.sourceforge.net/libsigc2/docs/manual/html/ch04.html Oops,

Re: Is it possible to get a Gtk::MenuToolButton in the Toolbar by using the UIManager?

2010-01-23 Thread Krzysztof Kosiński
2010/1/22 Adrián Ortega elfus...@gmail.com: I also tried this: ui toolbar name='MyToolBar'    menu action=NewMenu'      toolitem action='New'/    /menu /toolbar /ui That didn't work though. I think it should be the other way around. I didn't test it though. toolbar

Re: Glib::IOChannel in sockets... (2)

2010-01-29 Thread Krzysztof Kosiński
2010/1/29 Jonathon Jongsma jonat...@quotidian.org: But nearly every function in gio has an overload for when exceptions are disabled, so... Maybe glibmm 3.0 should just require exceptions and remove the no-exception mode? Is the exception handling overhead large enough to warrant maintaining

Re: void or bool (GIOmm new definitions)

2010-02-05 Thread Krzysztof Kosiński
2010/2/5 Glus Xof gtg...@gmail.com: I started to look over these new definitions: http://datsystems.dnsalias.com/doc/glibmm-2.4/docs/reference/html/classGio_1_1Socket.html And I'd like only to ask you if those methods (like bind, listen, connect...) will really return void... or bool

Re: Generic - Menu Class

2010-02-13 Thread Krzysztof Kosiński
2010/2/13 ArbolOne arbol...@gmail.com: I need a generic menu bar and widget-bar because my application will have many windows and all of the windows will have the same menu, is there a way to create generic menues? Look at Gtk::UIManager, it can create menus for you from a simple XML

Re: copying sigc::signals

2010-03-05 Thread Krzysztof Kosiński
2010/3/5 Chris Vine ch...@cvine.freeserve.co.uk: It is probably better simply to disallow copying of signals, rather than do shallow copies resulting in the curious effects you mention. Yes - under no circumstances should signals be copyable. This is what Boost did. By the way, is using

Re: Gtk::Main::iteration();

2010-03-15 Thread Krzysztof Kosiński
2010/3/14 Adam Chyla [PL] adam.ch...@gmail.com: Could you give me a simple example? See attached file. This is a simple program that uses only async calls to zero the contents of a file. Compile with: g++ gio-zero.cpp -o gio-zero `pkg-config --cflags --libs giomm-2.4 gthread-2.0` This example

Re: Gtk::Main::iteration();

2010-03-15 Thread Krzysztof Kosiński
W dniu 16 marca 2010 00:22 użytkownik Krzysztof Kosiński tweenk...@gmail.com napisał: See attached file. This is a simple program that uses only async calls to zero the contents of a file. Compile with: g++ gio-zero.cpp -o gio-zero `pkg-config --cflags --libs giomm-2.4 gthread-2.0

Re: [Cluttermm] Use of Glib::RefPtrT vs. Gtkmm

2010-03-15 Thread Krzysztof Kosiński
2010/3/15 Murray Cumming murr...@murrayc.com: But we have to struggle in Clutter with that mess: Glib::RefPtrClutter::Actor actor = new Clutter::Actor::create(); I don't like it much either, really. I like that the use of the smartpointer makes the memory management obvious. I would like to

Re: render custo ttf font with pangomm

2010-03-17 Thread Krzysztof Kosiński
2010/3/17 Carlo Ascani carlo.r...@gmail.com: Is it possible to rendere a custom ttf file as a font in cairomm ? What do you mean by custom TTF file? There's Cairo user font API which lets you draw your own fonts. http://www.cairographics.org/manual/cairo-user-font.html Regards, Krzysztof

Re: gtkmm 3.0.

2010-03-25 Thread Krzysztof Kosiński
2010/3/25 Chris Vine ch...@cvine.freeserve.co.uk: On Thu, 25 Mar 2010 09:46:08 +0100 Murray Cumming murr...@murrayc.com wrote: I'm sorry for not taking the time to consider this discussion fully right now, but I do want to revisit it properly for gtkmm 3. I hope to have time later. Right now,

Re: gtkmm and C++0x

2010-04-02 Thread Krzysztof Kosiński
2010/3/30 Chris Vine ch...@cvine.freeserve.co.uk: You shouldn't need to change anything. Glib::RefPtr is only used by gtkmm as far as I am aware in return values and as function arguments. You should be able to use the auto keyword now with any gtkmm function returning a RefPtr, with gcc-4.3

Re: Glib::Thread

2010-06-08 Thread Krzysztof Kosiński
2010/6/8 Adam Chyla [PL] adam.ch...@gmail.com: Hi. I'm trying to run my program with one thread. Only window is not responding, theards still works. I don;t known what is wrong. I think the problem is that you are trying to modify the label from a different thread than the one that created

gtkmm 3.0 and libsigc++

2010-07-26 Thread Krzysztof Kosiński
Hello gtkmm 3.0 is the only chance we have in near future to fix two really bad issues in libsigc++: 1. sigc::trackable is not threadsafe. 2. https://bugzilla.gnome.org/show_bug.cgi?id=167714 They significantly affect the usefulness of the C++ bindings. Regards, Krzysztof

Re: gtkmm 3.0 and libsigc++

2010-07-27 Thread Krzysztof Kosiński
W dniu 27 lipca 2010 11:01 użytkownik Murray Cumming murr...@murrayc.com napisał: 1. sigc::trackable is not threadsafe. A patch for this could make a break far more likely. I wouldn't want to do 2 breaks. The easiest way to fix this is to allow sigc++ to depend on Glib when it's present at

Re: gtkmm 3.0 and libsigc++

2010-07-28 Thread Krzysztof Kosiński
W dniu 29 lipca 2010 00:33 użytkownik Chris Vine ch...@cvine.freeserve.co.uk napisał: As far as I recall, signals do not know about sigc::trackable.  However, slot generation in sigc::mem_fun() and helpers does have to, for two reasons. I was referring to the fact that signal_base is derived

Re: failed to start because libglib-2.0.0.dll was not found

2010-07-29 Thread Krzysztof Kosiński
2010/7/30 ArbolOne arbol...@gmail.com: Specs ~ WinXP64 Code::Blocks 10.05 MinGW GCC-4.4.1 I get this error message after compiling a small application This application has failed to start because libglib-2.0.0.dll was not found. Re-install the application my fix this problem Why do

Re: failed to start because libglib-2.0.0.dll was not found

2010-08-04 Thread Krzysztof Kosiński
2010/7/30 ArbolOne arbol...@gmail.com: Thank you Krzysztof for your prompt response. I follow your advice and added the ..gtkmm\bin directory to the %PATH%, however, I now get another error message that is even more confusing, the message reads: The procedure entry point g_assertion_message

Re: Do Gtkmm 2.22 have problems on windows?

2010-11-06 Thread Krzysztof Kosiński
2010/11/4 Guillaume Brocker guillaume.broc...@digital-trainers.com: Hi ! I'm doing the trasition from gtkmm 2.16 to 2.22 and I encountred a problem wit the recent file manager. Here is what I get on the console : Gtk-WARNING **: Could not find the icon 'gtk-file'. The 'hicolor' theme was

Re: adding a window into a widget

2010-12-03 Thread Krzysztof Kosiński
2010/12/3 Kees Kling ckl...@upcmail.nl: Sorry, but I don't know anything about ogr3d yet, but I started to work on a similar thing. I also want a window in which  I can draw, but then with the Cairo::context. In the tutorial is a chapter about custom widgets, which is the way I try to do it.

Re: Strange Error with Glib::ustring

2010-12-19 Thread Krzysztof Kosiński
2010/12/19 Gtk MailingList gtkmailinglistgree...@googlemail.com: In this little program i try to replace all spaces in the string with \ . Because if you use a space character in a path on the command line it doesn't work. You must always use /home/user/some\ directory/second\ directory

Re: Strange Error with Glib::ustring

2010-12-19 Thread Krzysztof Kosiński
W dniu 19 grudnia 2010 21:33 użytkownik Greesce gtkmailinglistgree...@googlemail.com napisał: Thank you for the fast and professional help. And thank you for the tips. I'm going to take a look at Glib::spawn_async and i  should implement a while loop. You don't need to escape spaces when

Re: Signal dispatching slowed down after upgrade

2011-02-14 Thread Krzysztof Kosiński
2011/2/14 BALLABIO GERARDO gerardo.balla...@esterni.gruppo.mps.it: Hi all, in the last weekend I upgraded my computer to the new stable version of Debian (version 6.0.0, released a few days ago). After the upgrade, a gtkmm program of mine has become less responsive to the point of being

Re: Can gtkmm be used in a plugin of a normal plain gtk application, i.e. with an existing separate gtk main loop?

2011-02-16 Thread Krzysztof Kosiński
2011/2/16 Christian Stimming christ...@cstimming.de: My question is whether gtkmm can be used in this context. Can the Gtk::Main initialization done in a way that hooks gtkmm's expected main loop to a pre-existing other conventional-gtk main loop? The API of Gtk::Main obviously doesn't offer

Re: Do you want a faster gmmproc?

2011-04-04 Thread Krzysztof Kosiński
2011/4/4 Krzesimir Nowak qdl...@gmail.com: Yeah, reading defs and xml files everytime is the bottleneck, but current implementation also makes it possible run several gmmprocs concurrently (by make -j4). To get the best of both worlds, there could be an extra program which reads the XML files

Re: How I can change the translation from the program?

2011-08-01 Thread Krzysztof Kosiński
2011/8/1 MysteriousMan . yahya...@hotmail.com: Hi there I have done translate  my program for two languages (EN , AR) . And I have add button to switch between those languages How I can implement this ? (change the language from the program) In Inkscape this is done by storing a preference

Re: How I can change the translation from the program?

2011-08-02 Thread Krzysztof Kosiński
2011/8/2 MysteriousMan . yahya...@hotmail.com: I have add the following setenv(LANG, ar, TRUE); setenv (LANGUAGE, ar, TRUE); The program is in english , and Ar.po exist on po folder But the language didn't change even if I restart the program 10 times That's not everything: 1. You need to

Creating toolbar menubuttons via UI Manager

2012-01-04 Thread Krzysztof Kosiński
Hello all I found a post that describes how to create toolbar menubuttons (GtkMenuToolButton) on toolbars with GTK's GtkUIManager. http://www.gtkforums.com/viewtopic.php?t=4215 The solution is rather messy and involves deriving a new GType from GtkAction and setting the toolbar_item_type member

Re: VS10 and gtkmm

2013-02-05 Thread Krzysztof Kosiński
2013/2/4 Doesnt Stop doesnts...@mail.com: Folowing the advice found in: https://live.gnome.org/gtkmm/MSWindows/UsingMSVC I created a small app to test gtkmm outside GCC, well, even with the help from the webpage above I get this error: 1-- Build started: Project: MyApp, Configuration:

Re:

2013-02-09 Thread Krzysztof Kosiński
2013/2/9 Doesnt Stop doesnts...@mail.com: g++.exe `pkg-config gtkmm-2.4 --cflags` `pkg-config gtkmm-2.4 --libs` -o dist/Debug/MinGW-Windows/welcome_1 build/Debug/MinGW-Windows/welcome.o This is wrong. The library flags should always come after the object files. The GCC linker will not

Re: Aw: Re: wy signal handler could not be override

2013-03-29 Thread Krzysztof Kosiński
2013/3/29 Yann Leydier y...@leydier.info In C++, declaring the method as virtual is needed if you want to override anything by polymorphism. In this case it isn't. The 'virtual' keyword is only required in the base class. In derived classes, if the function name matches a virtual function in a

Re: Various questions about Gtk::PlacesSidebar

2013-09-02 Thread Krzysztof Kosiński
2013/9/2 Kjell Ahlstedt kjell.ahlst...@bredband.net: Objects of classes that derive from Gtk::Object are not put in Glib::RefPtrs. I'm not sure why. I'm also a little confused by this but it probably has something to do with Gtk::manage(). Regards, Krzysztof

Re: Replacing Gtk::Action and Gtk::UIManager with Gio::Action and Gtk::Builder

2013-09-26 Thread Krzysztof Kosiński
2013/9/26 Murray Cumming murr...@murrayc.com: because we cannot yet break the ABI to add Gtk::Actionable as a base class for several classes: https://git.gnome.org/browse/gtkmm/commit/?id=3381c0aea10891a2dccc49b5e450fd497a3cb807 FWIW: From my perspective, it would be far more desirable to have

Re: std::auto_ptr deprecation warning in libstdc++ 5.1

2015-05-06 Thread Krzysztof Kosiński
2015-05-06 9:22 GMT+02:00 Murray Cumming murr...@murrayc.com: I do wonder when, if ever, we can consider the C++11 support in g++ to be official and stable, and no longer experimental. It would be nice to switch to C++11 completely for gtkmm some time soon. GCC 4.8.1 and later has full support

Re: C++11: Replacing unscoped enums with scoped enums

2015-08-13 Thread Krzysztof Kosiński
2015-08-13 10:56 GMT+02:00 Murray Cumming murr...@murrayc.com: C++11 lets us use this: enum class SomeEnum { VALUE_A, VALUE_B } instead of the old way: enum SomeEnum { SOME_ENUM_VALUE_A, SOME_ENUM_VALUE_B } So, you'd then use SomeEnum::VALUE_A instead of SOME_ENUM_VALUE_A.

Re: Using C++11

2015-08-06 Thread Krzysztof Kosiński
2015-08-03 14:59 GMT+02:00 Kalev Lember kalevlem...@gmail.com: How does this play with gtkmm 2.4? If glibmm now requires C++11, does it mean that gtkmm 2.4 and legacy apps that are still on gtkmm 2.4 need to be built with std=c++11 as well? My understanding is that using C++11 and the ABI

Re: C++11: Deprecate Glib::Regex for std::regex

2015-09-01 Thread Krzysztof Kosiński
std::regex only works correctly on UTF-8 strings if the system has an UTF-8 locale, and Windows does not have it. The standard C++ library is on Windows completely broken and unusable - for example, reading into a wifstream converts to ASCII if the locale is set to "C".