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,

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: 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

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: 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,

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: 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: 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: 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: 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: 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

[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

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

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

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: 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: 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

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: 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);

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: 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: 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: 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: 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: 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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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,

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: 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.

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: 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

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: 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 ___

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: 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: 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: 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-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: 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-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

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