Re: glib-mkenums in glib 2

2013-02-20 Thread Bernhard Schuster
I would like to see that information - even if I have no instant use for it - but I am pretty sure it will help a lot of people digging for information. Best Bernhard 2013/2/19 John Emmas john...@tiscali.co.uk: On 4 Jan 2013, at 10:49, Matthew Brush wrote: From the last few messages on this

Re: GtkAppChooser custom command patch

2013-04-11 Thread Bernhard Schuster
I did not look at your implementation, but the screenshots look very promising - in fact I think that is a highly desirable feature and your implementation is (imho) how it should be done! 2013/4/8 tarn...@tarnyko.net Hi folks, Could someone please review the following patch/suggestion :

Re: GtkAppChooser custom command patch

2013-04-11 Thread Bernhard Schuster
, Bernhard Schuster schuster.bernh...@googlemail.com wrote: There will always be the case that some application will not do it properly. Instead of annoying the end-user, give him/her the option to fix it him/herself. It is not that it would hurt, it's rather a salvation for the daily highcups

Re: Abuse of 'const' ?

2013-04-11 Thread Bernhard Schuster
const is left binding unless there is nothing to the left - then it binds to the right. 2013/4/8 John Emmas john...@tiscali.co.uk On 08/04/2013 14:09, Ryan Lortie wrote: A 'const gchar **' is (in this case) an array of 'const gchar *' (ie: const string pointers). It is the strings that

Re: Filechooser bug day/weekend/week/month idea

2013-06-07 Thread Bernhard Schuster
I probably can not be on location nor did I ever before look into gtkfilechooser - but there are definitly things I'd like to fix. Bernhard On Tue, Jun 4, 2013 at 11:58 AM, Matthias Clasen matthias.cla...@gmail.com wrote: On Mon, Jun 3, 2013 at 6:02 PM, Timothy Arceri t_arc...@yahoo.com.au

Re: waf - was New GObject Introspection tutorial

2013-06-17 Thread Bernhard Schuster
Disclaimer - I am familiar with waf, not so much with autotools. Waf targeting the direct inclusion into a project looks awkward at the beginning, but is an advantage actually. Mainly because that can prevent buildfailures based on non-backwards compatible changes in the buildsystem.

gdbus function call on interface NULL does not work

2013-08-25 Thread Bernhard Schuster
I created a demo which shows that remote method calls on interface NULL do not work with `g_dbus_connection_register_object`. According to http://dbus.freedesktop.org/doc/api/html/group__DBusMessage.html#ga6c8a4c5d350c1962b11300cc4dd0c2e2the spec says that this is explicitly allowed for method

Call for review

2013-08-25 Thread Bernhard Schuster
Could somebody please review https://bugzilla.gnome.org/show_bug.cgi?id=706675 I'd be happy to adjust the patches if needed. Best Bernhard ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

Re: gdbus function call on interface NULL does not work

2013-08-27 Thread Bernhard Schuster
/show_bug.cgi?id=706675 ) if there is a chance of inclusion. Best Bernhard Schuster 2013/8/27 Simon McVittie simon.mcvit...@collabora.co.uk On 22/08/13 14:54, Bernhard Schuster wrote: I created a demo which shows that remote method calls on interface NULL do not work

Re: g_dbus_node_info_new_for_xml() and XML namespaces

2013-09-18 Thread Bernhard Schuster
Wouldn't a function g_markup_collect_attributes_ignore_unknown() be a viable solution as well? On Mon, Sep 16, 2013 at 2:45 PM, Joseph Artsimovich joseph.artsimov...@youview.com wrote: Hello, In DBus introspection XML files we write by hand, we use XML namespaces to put in various

Re: g_dbus_node_info_new_for_xml() and XML namespaces

2013-09-18 Thread Bernhard Schuster
, Bernhard Schuster wrote: Wouldn't a function g_markup_collect_attributes_ignore_unknown() be a viable solution as well? I found a bug report that covers this issue: https://bugzilla.gnome.org/show_bug.cgi?id=665634 It actually contains a proposed patch, introducing

Re: Removal of icons in buttons/menus

2013-10-13 Thread Bernhard Schuster
Are there anywhere records of the discussion(s) on that topic? I think it would clarify things once in a while (especially for those not being present in irc 24/7). On Wed, Oct 9, 2013 at 4:45 PM, Matthias Clasen matthias.cla...@gmail.com wrote: Hi Olivier, thanks for your feedback. You

static compliation glib/gio with gnutls

2013-10-24 Thread Bernhard Schuster
After statically linking my program (which is using the GTlsConnection being implemented in glib-networking) I always get the TLS support is not availiable from glib/gio/gdummytlsbackend.c as soon as I try to create the GTlsCertificate. So my question is, how to deal with g_io_module when

static compilition - include gio modules statically

2013-11-14 Thread Bernhard Schuster
Is this possible (read: implemented with gio modules)? I need this for gtlsbackend to be statically put into my binary (which uses glib-networking). The --enable-static --disable configure flags does not change that behaviour (still got the dlopen calls in the final binary) Thanks in

Re: static compilition - include gio modules statically

2013-11-15 Thread Bernhard Schuster
When I had a brief look into the code that was my impression, just wanted to sure I am not mistaken or just missed something. Thanks! Bernhard On Fri, Nov 15, 2013 at 4:54 PM, Dan Winship d...@gnome.org wrote: On 11/14/2013 03:53 PM, Bernhard Schuster wrote: Is this possible (read

Static gio module inclusion - bug 684282

2013-12-03 Thread Bernhard Schuster
What is the status of Bug 684282 - is this still activly pursued? https://bugzilla.gnome.org/show_bug.cgi?id=684282 ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: Hello

2014-03-12 Thread Bernhard Schuster
Don't hesitate to ask if you have trouble getting particular things working and make sure you have a look at the GObject concept and features ( https://developer.gnome.org/gobject/unstable/ ). Best Bernhard On Wed, Mar 12, 2014 at 1:40 PM, shondhi singhal shondhi.sing...@gmail.com wrote:

Re: GtkFileChooserWidget

2014-03-24 Thread Bernhard Schuster
My problem is: in the testsuit there are several test for the gtkfilechooser, but they were deleted from the Makefile.am (I suppose because they where using gtkfilechooserdefault.h and this file no longer exists) Is there anyone else working on this right now? Do I leave the test like that or

Re: A Gtk's build system ?

2014-08-05 Thread Bernhard Schuster
If this ever happens, I hope for waf to get some traction, it is way faster and has the power of py and also prevents all the version incompatibility issues on different host machines as one can ship the waf with the repository itself (or as a git submodule). Not to mention that it is very

Re: A Gtk's build system ?

2014-08-07 Thread Bernhard Schuster
On Thu, Aug 7, 2014 at 10:46 AM, Matthias Clasen matthias.cla...@gmail.com wrote: On Thu, Aug 7, 2014 at 10:16 AM, Alberto Ruiz ar...@gnome.org wrote: However, building Gtk+ is not trivial and I am sure waf is going to require some fixing before it can support a full build, if people want

Re: A Gtk's build system ?

2014-08-07 Thread Bernhard Schuster
Waf is actually pretty good at building stuff for non-Linux platforms (for example, it transparently supports MSVC without the need of VS project files). I'd bet that it may have some issues building for Linux on non popular architectures or weird/old UNIX flavors as it doesn't do the sort

Re: A Gtk's build system ?

2014-08-07 Thread Bernhard Schuster
snip [...] Also, FWIW patterns can generally be used just fine in Autotools -- but again, please, don't use them. Autotools can't correctly use patterns / wildcards, because it requires manually re-running automake whenever a file is added or deleted.

Re: Removing global variables

2014-11-26 Thread Bernhard Schuster
VST like plugins - elaborate please. I am sure one can handle pretty much anything using g_main_context fun, but please provide more information on what you want to achieve exactly. Best Bernhard On Nov 26, 2014 2:42 PM, Alexandre Bique bique.alexan...@gmail.com wrote: On Wed, Nov 26, 2014 at

GtkNotebook with action on click of special tab

2011-04-19 Thread Bernhard Schuster
Hi I am trying to achieve the effect of new tab openening if one tab gets selected. Unfortunaltly the doc is very sparse on that: http://developer.gnome.org/gtk/stable/GtkNotebook.html as of using the select-page signal. Can anyone give me a hint how to use it properly with a g_signal_connect

Re: GtkNotebook with action on click of special tab

2011-04-20 Thread Bernhard Schuster
2011/4/20 Tristan Van Berkom t...@gnome.org On Wed, Apr 20, 2011 at 8:34 AM, Bernhard Schuster schuster.bernh...@googlemail.com wrote: Hi I am trying to achieve the effect of new tab openening if one tab gets selected. Unfortunaltly the doc is very sparse on that: http

Re: Compile time GTK+ 3 version check

2011-04-24 Thread Bernhard Schuster
2011/4/24 David Nečas y...@physics.muni.cz On Sun, Apr 24, 2011 at 11:11:58AM +0900, Tristan Van Berkom wrote: Anyway, with a good VCS you should be able to easily maintain an old GTK+2 branch of your project and easily backport the fixes which apply from your new GTK+3 branch back into

Re: GtkNotebook with action on click of special tab

2011-04-26 Thread Bernhard Schuster
Now I am adding a a new page on the switch-page signal. It works well so far BUT I got a focus problem. No matter if I try to focus it via gtk_notebook_set_current_page instantly after adding the page, or in a function glued to the signal page-added, the clicked tab will show up. So is there any

Re: GtkNotebook with action on click of special tab

2011-04-26 Thread Bernhard Schuster
2011/4/27 Bill Czermak czer...@netspace.net.au: Hi Bernhard Checked my code and last updated my notebook handling source last November.  Probably written 6 months earlier, and changes were to restructure the way I was using GTK, rather than change the notebook handling area.  So I might have

Re: GtkNotebook with action on click of special tab

2011-04-27 Thread Bernhard Schuster
Easiest way is to check it out yourself: g...@gitorious.org:tinygecko/devel.git Its not big and a simple make does it all for you :) dependencies are gtksourceview and gtk+2.0 Thank you for your time, I already implemented pretty much of what you said, I am just struggling about this focus issue.

Re: GtkNotebook with action on click of special tab

2011-05-03 Thread Bernhard Schuster
In the end it was as easy as replacing g_signal_connect with g_signal_connect_after Regards Bernhard ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: multiple tree views

2011-05-03 Thread Bernhard Schuster
2011/5/3 Pavol Klačanský pa...@klacansky.com: V Nedeľa, 1. máj 2011 o 15:59 +0200, Colomban Wendling napísal(a): Hi, Le 01/05/2011 15:03, Pavol Klačanský a écrit : Hi, I need in my about 5 and more treeviews. I created one using glade, but I don't know how can I use it multiple times, gtk

Re: how to create login progressbar

2011-06-20 Thread Bernhard Schuster
my app connect database, it show login dialog first, after connected, it distory the login dialog and come in main loop, show main window. i want add a progressbar in login dialog, but at that time it doesn't in main loop , how can i refresh the progressbar by using timeout function? I'd

Re: Help with closing a notebook page (GTK2)

2011-07-03 Thread Bernhard Schuster
Did it within a pet project of mine and works pretty well,, it's GPL just in case you'd like to have a ook at real code: https://gitorious.org/tinygecko Regards Bernhard ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: g_win32_get_package_installation_directory_of_module()

2011-07-11 Thread Bernhard Schuster
http://www.gnu.org/s/hello/manual/libc/System-Calls.html I don't know if this helps, but maybe it is avail there, if not just use regular system call sh/bash cmd to get the directory (given your program can access a shell) Regards drahnr ___

Aliasing / Blurring

2011-07-19 Thread Bernhard Schuster
I am in the position to write an application which needs to be able to identify single pixels of a picture. Currently my implementation (based on Gtk+ 3.x) uses GtkDrawingArea with a cairo surface. Regards Bernhard ___ gtk-app-devel-list mailing list

Re: gtk-app-devel-list Digest, Vol 87, Issue 18

2011-07-24 Thread Bernhard Schuster
use gist.com, it's way more readable and does not spam the mailinglist that much... Read up g_signal_handler_block/unblock, that should be what you need to in order to block signals at specifc point of time. Regards Bernhard ___ gtk-app-devel-list

Re: gtk-app-devel-list Digest, Vol 87, Issue 18

2011-07-24 Thread Bernhard Schuster
I am sorry, wrong link, meant this one: https://gist.github.com/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: rebuilding widget

2011-08-04 Thread Bernhard Schuster
Regards Bernhard Schuster ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to achieve functionality of GTK_WINDOW_POPUP but with keyboard input

2011-08-30 Thread Bernhard Schuster
2011/8/30 Andrew Wood a@me.com: How can I achieve the same 'screen invasion' effect (i.e covers everything including the Gnome Panels and prevents other windows being brought to the front with Alt-Tab) that GTK_WINDOW_POPUP has but also allow keyboard input to the widgets in the window.

GtkBuilder bugs

2011-09-03 Thread Bernhard Schuster
I am using a gtk-builder file for my application, which uses a Grid widget for layouting. When I run the application, I read this: Gtk-WARNING **: Unknown property: GtkGrid.n-rows and the grid is not shown (nor its contents) Thanks for any tips Regards Bernhard Schuster

Re: GtkBuilder bugs

2011-09-05 Thread Bernhard Schuster
2011/9/5 Tristan Van Berkom t...@gnome.org: On Mon, Sep 5, 2011 at 12:43 PM, Michal Suchanek hramr...@centrum.cz wrote: On 5 September 2011 11:29, Tristan Van Berkom t...@gnome.org wrote: On Mon, Sep 5, 2011 at 10:49 AM, Michal Suchanek hramr...@centrum.cz wrote: On 4 September 2011 12:32,

Re: Extend IconView clickable area

2011-09-10 Thread Bernhard Schuster
2011/9/10 Jonas H. jo...@lophus.org: On 09/03/2011 01:56 PM, Jonas H. wrote: On 08/26/2011 09:12 PM, Jonas H. wrote: Hello list, how can I extend the clickable area of a text column in a one-columned IconView (whose item width is greater than the text itself)? Illustration:

Re: GList empty after iteration?

2011-09-12 Thread Bernhard Schuster
2011/9/12 Craig craigbakal...@verizon.net: Hi All, I am confused about GList. My application is parsing a file and creating midi data with it. I am using GList to store the midi data.  I have created a GtkListStore to view the parsed data (to insure I am parsing the data properly).  So,

Re: drag'n'drop sample application

2011-09-13 Thread Bernhard Schuster
2011/9/13 John Emmas john...@tiscali.co.uk: On 11 Sep 2011, at 19:24, John Emmas wrote: src/gtk+-2.20.0/tests/testtreeview.c src/gtk+-2.20.0/prop-editor.c [...] I know there aren't many people here who use gtk-win32 but if anyone does (and can spare a few minutes) could you try

Re: multiple filters in GtkFileChooser

2011-09-13 Thread Bernhard Schuster
Can you supply a minimal example where it fails? That would help to find the culprit. I am atm at gtk 2.24.6 so if you can post that I give it a run... Regards Bernhard ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: multiple filters in GtkFileChooser

2011-09-13 Thread Bernhard Schuster
2011/9/13 Allin Cottrell cottr...@wfu.edu: On Tue, 13 Sep 2011, Bernhard Schuster wrote: Can you supply a minimal example where it fails? That would help to find the culprit. I am atm at gtk 2.24.6 so if you can post that I give it a run... Thanks! I'm attaching a minimal case. Allin

Re: multiple filters in GtkFileChooser

2011-09-14 Thread Bernhard Schuster
2011/9/14 Allin Cottrell cottr...@wfu.edu: On Tue, 13 Sep 2011, Allin Cottrell wrote: I have found the relevant difference between gtk 2.24.5 and 2.24.6, which has the effect -- on my system at least -- that the filter selection combo box is not displayed correctly in the gtk file chooser

Re: Keybindings

2011-10-18 Thread Bernhard Schuster
I think this is what you want, though I am not 100% sure: http://developer.gnome.org/gtk3/stable/gtk3-Keyboard-Accelerators.html ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK mailing list

2011-11-14 Thread Bernhard Schuster
traffic could also mean that pretty much is covered by tutorials, and the docs are pretty good also. Regards Bernhard Schuster ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Need help with window-state-event

2011-11-20 Thread Bernhard Schuster
2011/11/20 Dipesh Sudershan d1p3shn0...@gmail.com: GdkEventWindowState According to this: http://developer.gnome.org/gdk/stable/gdk-Event-Structures.html#GdkWindowState and http://developer.gnome.org/gdk/stable/gdk-Event-Structures.html#GdkEventWindowState It is as easy as: if

Re: Need help with window-state-event

2011-11-20 Thread Bernhard Schuster
Screw it, replace the | with an . Sorry screwed this up. Regards ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Need help with window-state-event

2011-11-20 Thread Bernhard Schuster
2011/11/20 Dipesh Sudershan d1p3shn0...@gmail.com: On Sun, 2011-11-20 at 11:55 +0100, Bernhard Schuster wrote: Screw it, replace the | with an . Sorry screwed this up. Regards This is working fine. But i still can't solve the problem i have. I have a gtkimage inside an eventbox

Re: Need help with window-state-event

2011-11-20 Thread Bernhard Schuster
Attach some output of your code please and offload big code pieces to pastie.org, susepaste.org or similar to keep this list readable. Regards Bernhard Schuster ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org

Re: Need help with window-state-event

2011-11-20 Thread Bernhard Schuster
2011/11/20 Dipesh Sudershan d1p3shn0...@gmail.com: On Sun, 2011-11-20 at 12:29 +0100, Bernhard Schuster wrote: 2011/11/20 Dipesh Sudershan d1p3shn0...@gmail.com: On Sun, 2011-11-20 at 11:55 +0100, Bernhard Schuster wrote: Screw it, replace the | with an . Sorry screwed this up. Regards

Re: Problem sending double with GDbus

2011-11-24 Thread Bernhard Schuster
Did you already report the problem to the related bugtracker? Did check if it works wit glibc? Regards Bernhard ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Embedding OpenGL into GTK apps

2011-11-30 Thread Bernhard Schuster
2011/11/30 Almási Dénes denes.alm...@gmail.com: Hi, I would need some clarification on embedding an opengl canvas into a GTK 3.0 application. Is it possible? And if so, how? This is a necessary component for my thesis at university. GtkGlExt (surprisingly - quite out of support) does not

gthreads and gobjects

2012-01-03 Thread Bernhard Schuster
Happy new year everyone! I need some info on gthread, and how it interacts with gobject based structures which get accessed by multiple threads at a time especially in the respect of deleting objects and signaling and such (I am aware of the basic locking/mutex/conditioning fun :) ) A tutorial

Re: An issue with Qt styling and/or threads?

2012-02-18 Thread Bernhard Schuster
(not a perfect solution, but the only I know of right now). Regards Bernhard Schuster 2012/2/17 James Tappin jtap...@gmail.com: I have a problem running a Gtk program when using the Qt style as supplied via gtk-qt-engine and kde-config-gtk-style. The program is a fairly heavy duty computation

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Bernhard Schuster
to set the proper library paths. If your application license is either GPL or LPGL you are also allowed to link statically (afaik), so you can deploy a gtk2 and a gtk3 version. Regards Bernhard Schuster ___ gtk-app-devel-list mailing list gtk-app-devel

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Bernhard Schuster
Edit ... so you can deploy a shared and statically linked application binary. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: memory lead while using Glib regexp

2012-03-05 Thread Bernhard Schuster
No it does, not I already cross-read it and it looks fine, did you give it a shot with valgrind? Regards Bernhard Schuster Am 5. März 2012 15:43 schrieb Olivier Sessink oliviersess...@gmail.com: On 03/02/2012 04:00 AM, Xi Yang wrote: Hi, everyone! I use Glib's regular expression

Re: GtkDrawingArea size

2012-03-07 Thread Bernhard Schuster
If you did not yet start implementing it, goocanvas might be another option to the bare stuff. goocanvas allows you to set a fixed paper size. Am 7. März 2012 19:44 schrieb Christopher Howard christopher.how...@frigidcode.com: On 03/06/2012 02:08 PM, Christopher Howard wrote: Hello again. So,

Re: Crediting beta testers?

2012-04-14 Thread Bernhard Schuster
File a request :) Am 13. April 2012 08:30 schrieb Christopher Howard christopher.how...@frigidcode.com: I've really appreciated how convenient the GtkAboutDialog class is and especially the gtk_show_about_dialog() function. The only thing that seems to be missing: There is a property for every

Re: change alternate treeview row color with css

2013-02-06 Thread Bernhard Schuster
See example 26 http://developer.gnome.org/gtk3/unstable/GtkCssProvider.html 2013/1/25 Rudra Banerjee rudra.baner...@aol.co.uk: I tried to change alternate row color of TreeView using css as: GtkCssProvider *provider = gtk_css_provider_new (); gtk_css_provider_load_from_data (provider,

Re: a question about g_strconcat()

2013-02-28 Thread Bernhard Schuster
I answered that some time ago: http://stackoverflow.com/questions/11486704/c-sql-query-building-made-easy/11725655#11725655 On Thu, Feb 28, 2013 at 1:22 PM, Cifer Lee mantia...@gmail.com wrote: first, I will show some lines. [code] gchar *str_sample = g_strconcat(I have a, dream that, NULL);

Fixed origin zoom with goocanvas

2013-03-06 Thread Bernhard Schuster
I am trying to create zoomable goocanvas, which zooms towards the current pointer position instead of the center of the visible part of the goocanvas. Unfortunately my correction offset seems to be correct mathematically but does not work if I implement it. As the implementation spans some

Re: GTK+3 - A common event handler - possible?

2013-05-22 Thread Bernhard Schuster
On Wed, May 22, 2013 at 11:00 AM, Donn donn.in...@gmail.com wrote: On 22/05/2013 09:29, Bernhard Schuster wrote: In general factoring code is good (at least that's my opinion) - what you are trying to do is the reverse and will give you one very big function, hardly readable. I take your

Re: GTK+3 - A common event handler - Gone OT into cairo and draw territory

2013-05-27 Thread Bernhard Schuster
On Thu, May 23, 2013 at 1:50 PM, Donn donn.in...@gmail.com wrote: Thanks for your thoughts, I have pushed my luck and replied :) On 22/05/2013 17:18, Bernhard Schuster wrote: If you compose your stuff of polygons (which I am pretty sure you do), there is pretty neat math to check if your

Re: ComboBox

2013-06-27 Thread Bernhard Schuster
https://developer.gnome.org/gtk2/2.24/GtkComboBox.html I am not aware of the changes between 2.0 (which the tutorial targets) and 2.24, but you should try to replace it with the API above. Not sure though, I educated guess needs more information (i.e. your includes, sourcecode - preferably

Re: ComboBox

2013-06-27 Thread Bernhard Schuster
gtk-2.24 is still current in CentOS/RedHat Enterprise/Scientific Linux and static linking might be not allowed due to license restrictions. On Thu, Jun 27, 2013 at 6:09 PM, Rudra Banerjee rudra.baner...@aol.co.uk wrote: gtk+2 itself is old, and if there is no other reason, you should (since

Re: updating labels when a key is stroked

2013-08-09 Thread Bernhard Schuster
Keep asking, sometimes the response delay is actually a good thing :) A side note: depending on what version of gtk you are using, signals may change (i.e. gtk2 expose_event, gtk3 draw) so keep an eye open when following tutorials. Best Bernhard On Fri, Aug 9, 2013 at 12:14 PM, Eric

gdbus - register handler/object on interface NULL

2013-08-21 Thread Bernhard Schuster
I have to deal with a closed source server being based on qt + dbus. I try to connect to it via gdbus,glib. The connection works as follows: A mehod/object called message_handler has to be registered to the bus /exported. I call a remote method named send_data, afterwards the service/server calls

Re: gdbus - register handler/object on interface NULL

2013-08-21 Thread Bernhard Schuster
, Bernhard Schuster schuster.bernh...@googlemail.com wrote: I have to deal with a closed source server being based on qt + dbus. I try to connect to it via gdbus,glib. The connection works as follows: A mehod/object called message_handler has to be registered to the bus /exported. I call a remote

[no subject]

2013-10-17 Thread Bernhard Schuster
How to implement a tls/ssl based client with a server side cert? The documentation on that topic is not helpful/confusing (thus posting to both lists). ** (democlient:405): WARNING **: 1 Error 1 - Error performing TLS handshake: An unexpected TLS packet was received. Can somebody please have a

Re: Valgrind is grinding my gears

2013-11-06 Thread Bernhard Schuster
No, as soon as you use GObject derived types (or call g_types_init/gtk_init) the class structures for all your gobject derived classes will be created _once_. This unevitable, but nothing to worry about (same for GThread and friends), just be aware of their existance (and/or suppress them in

Re: Valgrind is grinding my gears

2013-11-06 Thread Bernhard Schuster
Setting the env var G_SLICE=always-malloc helps a lot (at least from my experience). Also have a look at https://wiki.gnome.org/Valgrind for more stuff like suppression files for various applications, maybe you can derive your own from one of those. If you want to really want get into the

Re: Valgrind is grinding my gears

2013-11-16 Thread Bernhard Schuster
, it might need a bit of updating. On 5 November 2013 21:01, David Buchan pdbuc...@yahoo.com wrote: Aaaah. I see. Thanks guys. From: Bernhard Schuster schuster.bernh...@gmail.com To: David Buchan pdbuc...@yahoo.com Cc: David Nečas y...@physics.muni.cz

Re: GTK Socket and reparenting

2013-11-27 Thread Bernhard Schuster
Did you try to add an additional reference to your widget? (i.e. explicitly call g_object_ref (your_widget) ) On Tue, Nov 26, 2013 at 3:18 PM, Michal Fizek fizek.mic...@centrum.cz wrote: Actually Gtk.Socket is usable, but the window, that is plugged into the socket gets destroyed(like if

Re: Still confused on new thread starting idle functions to update UI.

2013-12-12 Thread Bernhard Schuster
The observed bad behavior is that sometimes messages don't appear at all, or appear twice in my textview. It's quite unpredictable. Sounds like a race condition. I spawn a thread from the main program - and from now on I don't talk about main - and this new thread prepares messages in a

Re: Using OpenGL with GTK

2014-02-20 Thread Bernhard Schuster
cogl,clutter,gtkdrawingarea should work - depending on what you want ranging from a framework to convenience rappers to just a gl context. gtkglext is a different story, it renders the whole widget via OpenGL not only the content of a specific widget. Also see

Re: How to locate the 'Gtk-WARNING' line number

2014-02-20 Thread Bernhard Schuster
G_DEBUG=fatal_warnings gdb --args foo.binary arg1 arg2 in gdb, it will crash at some point and if you compiled your program with -g or -ggdb the `backtrace` command will give you some meaningful information For more see: https://developer.gnome.org/glib/stable/glib-running.html

Re: GnomeDateEdit emits no signal on editing entry

2014-02-24 Thread Bernhard Schuster
Can you provide a complete minimal compileable example? Did you open a bugreport? Best Bernhard On Fri, Feb 21, 2014 at 5:59 AM, John Coppens j...@jcoppens.com wrote: Hi guys gals, This may be common knowledge, but I didn't find any reference. When editing the date manually (without the

Re: Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Bernhard Schuster
On Mon, Mar 3, 2014 at 5:26 PM, Richard Shann rich...@rshann.plus.com wrote: On Mon, 2014-03-03 at 16:49 +0100, Stefan Salewski wrote: On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote: I have constructed the following minimal example, Yes indeed,

Custom Gtk3 Widget - scroll_event

2014-04-01 Thread Bernhard Schuster
hey! I am trying to derive a custom widget from GtkWidget. (Yet another approach to plot data, I got some special fancy requirements). So I thought I could just overwrite the scroll_event handler/function-pointer and get hold of all scroll events on that widget. But it does not work as

Re: Custom Gtk3 Widget - scroll_event

2014-05-09 Thread Bernhard Schuster
On vri, mei 9, 2014 at 7:18 , Joël Krähemann j...@weedlight.ch wrote: Do you use a GtkScrolledWindow to pack the entire widget? As I know this is the only way to get scrolled-event out of gtk because it has a viewport. No I don't. But I figured out that using GtkDrawingArea instead

Re: GTK threads and socket operations

2014-11-26 Thread Bernhard Schuster
You modify your label from a thread that is not the main/ui thread. Gtk+ is not threadsafe (few exceptions). Use g_idle_add/ g_timeout_add/ and friends (those are threadsafe) to implicitly serialize your ui modifications into the gtk mainloop. Do not use GDK_THREADS_ENTER/LEAVE foo unless you are

Re: vte widget improvement idea

2015-07-25 Thread Bernhard Schuster
The most sane thing would probably to treat the whole content of the paste as single command which implicitly means ignoring newlines or escaping them. The user can then ack the whole array of commands by a single enter key press. I find the idea in general pretty good. On Thu, Jun 11, 2015,