Re: Polar drawing widget, gearwheel drawing

2014-06-22 Thread Arne Pagel
Dear all, thanks a lot for all your comments, I played a little bit with cario and it works out quit well: http://www.pagelnet.de/tmp/pinion.png Looks much better then my trails with gtkextra and the polar plot. Since most examples I found where based on GTK3 I moved also to GTK3 for this test.

Polar drawing widget, gearwheel drawing

2014-06-20 Thread Arne Pagel
dear all, I have some Gtk Applications (in C) and now I want to add a functionality for displaying kind of gearwheels with different number oft teeth. Basically this should be an visual support for parameter editing, maybe as a wizard. The gearwheels doesn't have to be very fancy, but I need to

Re: widget to represent dial/speedometer kind of object

2013-12-10 Thread Arne Pagel
A while ago I used the Guages from the Megatunix Project: http://sourceforge.net/projects/megatunix/ On 10.12.2013 10:30, Mahesh Chaudhari wrote: > Hi list , > > is there any widget available to represent meter/dial/speedometer kind of > object, needle of which rotates dynamically with magni

gtk_tree_model_get end of Line marker

2012-10-07 Thread Arne Pagel
Dear all, because of my lazy programming style I sometimes forget or overwirte the comma before the -1 end of line marker for the gtk_tree_model_get or gtk_tree_store_set function. This error can usually not be detected by the c-compilers, so that I had to spend some really unnecessary time to

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-07 Thread Arne Pagel
Just notice the GTK is not thread Safe, you might get in trouble if you make unsynchronized gtk_... calls from different processes. I just found one Page with some hints at this: http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/gtk-thread-awareness In my case I followed the ru

Re: Gtk_Tree_View, drawing speed

2012-09-27 Thread Arne Pagel
Hello Vlad, an update frequency about 400Hz is absolutely not necessary, and I agree that no human could follow that. My Target is 100ms. This gives an acceptable picture, even if I use later progress bars for visualization. You will defenitliy notice a difference between 100ms and 33ms. If I u

Re: gtk_tree_view/store, best way to select all nodes of a branch

2012-09-26 Thread Arne Pagel
mfh; int *ind; ind = gtk_tree_path_get_indices (path); gtmfh.func = func; gtmfh.index = *ind; gtmfh.user_data = user_data; gtk_tree_model_foreach (model,foreach_indices,>mfh); } Am 12.09.2012 10:54, schrieb David Nečas: On Wed, Sep 12, 2012 at 10:40:11AM +0200, Arne Pagel wrote:

Re: Gtk_Tree_View, drawing speed

2012-09-26 Thread Arne Pagel
ests per second is not the design goal of the program. But later I want to have many structured objects in the treeview with an acceptable update rate and not 100% CPU load. regards Arne Am 26.09.2012 10:51, schrieb jcup...@gmail.com: On 26 September 2012 07:09, Arne Pagel wrote: Do yo

Gtk_Tree_View, drawing speed

2012-09-25 Thread Arne Pagel
Dear all, as you might remember from my questions before, I have an application where I use a tree-view to display some data from an external hardware. At the moment the Data are fetched, displayed and the data for the next row in the tree view are fetched. For example, if I have 12 Objects in

Re: Synchronization of gtk_tree_store add/remove events

2012-09-19 Thread Arne Pagel
> Anyway, I think GtkTreeRowReference is what you need – a thing that > points to a specific row that may not exist anymore and it had a method > to tell whether the row still exists. Thanks, I didn't know this functions, I will try it. > Did you mean deletes instead of deselects here? The rest

Synchronization of gtk_tree_store add/remove events

2012-09-19 Thread Arne Pagel
Dear all, I have an application where I use a tree-view to display some data from an external hardware. Different Objects can be added or removed to the treestore, each existing object in the treestore has a specific id which is used to get data over some communication interface. It can easily

Re: gtk_tree_view/store, best way to select all nodes of a branch

2012-09-19 Thread Arne Pagel
Thanks, for this hint Arne ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk_tree_view/store, best way to select all nodes of a branch

2012-09-12 Thread Arne Pagel
My current simple solution is as follows: I use the gtk_tree_model_foreach() function and pass some user data with the current major number of the tree-path. Inside the foreach-function I use gtk_tree_path_to_string, where I check if the first number is identical to the user data. This works, b

gtk_tree_view/store, best way to select all nodes of a branch

2012-09-10 Thread Arne Pagel
Dear all, I am currently searing for the best method to perform an action on one nodes of a branch in a treestore. At the moment the user just selectes one row of my treeview, so I have to determine if this node is part of a branch and then selecting all other nodes of the branch. I found som

docking GTK3

2012-04-23 Thread Arne Pagel
Hello, I read about some possibilities to add docking capability to gtk using gdl. (http://www.micahcarrick.com/gdl-docking-gtk.html) Is there any build in solution available or planned within GTK3? regards Arne ___ gtk-app-devel-list mailing list

Re: Simple Html-View widget

2011-09-11 Thread Arne Pagel
You mean using a label instead of a text view then? Or can I use gtk_label_set_markup() together with a text-buffer? A label can use Pango-Markup language, but I didn't find a way to make a newline using a markup. When parsing xml, all line-ends are ignored. regards, Arne Am 11.09.2011 13:4

Simple Html-View widget,

2011-09-09 Thread Arne Pagel
Hello, in my application I store some Text data in xml files. Some nodes are displayed via a gtk-label or an gtk-entry, others are displayed via a gtk text-view. Now I want to extend the text-view (and storage) with the capability to handle some formated text. I just need things like bold text

Re: Export GTK-Plot to PNG, without showing

2010-12-08 Thread Arne Pagel
GtkOffscreenWindow solved my problem http://library.gnome.org/devel/gtk/stable/GtkOffscreenWindow.html regards Arne ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Export GTK-Plot to PNG, without showing

2010-12-04 Thread Arne Pagel
Hello, I have an application which uses GTK-Plot in following manner: canvas = gtk_plot_canvas_new() my_plot = gtk_plot_new_with_size() child = gtk_plot_canvas_plot_new(my_plot) gtk_plot_canvas_put_child(canvas,child) however, I can capture the visible plot with gdk_pixbuf_get_from_drawable fr

Re: GDK-Pixbuf question, creating and reading private data-chunk for png

2010-12-03 Thread Arne Pagel
Thank you for your answer, with your hints I found two links from which I build the function below which works for me so far: http://zarb.org/~gc/html/libpng.html http://rawstudio.org/svn/rawstudio/trunk/plugins/output-pngfile/output-pngfile.c /** This function hopefully does something li

GDK-Pixbuf question, creating and reading private data-chunk for png

2010-12-02 Thread Arne Pagel
Hello, I am using gdk_pixbuf_save to store a gdk_drawable into a PNG File. Now I want to add a private data-chunk to PNG to store some additional Information. Is it possible to add a private data-chunk with GDK functions? If not, what do you think would be the best way to create this file? U

Re: gtk_main_quit() causes sigfault (win32)

2010-11-16 Thread Arne Pagel
valgrind I will look if I get this running on win32. But much simpler: I didn't notice before that there where some glib warnings, when I activate the win32 Taskbar entry of my program: GLib-WARNING **: g_main_context_prepare() called recursively from within a source's check() or prepare()

gtk_main_quit() causes sigfault (win32)

2010-11-15 Thread Arne Pagel
Hello, I have an gtk-application running on a win32 System, the application uses gtkbuilder and normal gtk-widgets. The application causes a sigfault when gtk_main_quit() is called, but just when the application is terminated over the windows taskbar-> right mouse-click on application-icon ->

Re: Creating own stock image library

2010-10-27 Thread Arne Pagel
Dov Grobgeld schrieb: > I use gdk-pixbuf-csource in my build system to generate c-files from my icons that I then insert into the source list of programs. Thank you for this hint, I integrated it into my build process and it works fine for me now. I wrote a small tool to make a c-file form a g

Creating own stock image library

2010-10-10 Thread Arne Pagel
Hello, I created some special icons for my application. Now I want to reduce the files needed by the application, and therefore I want to compile the needed images in the binary output. What would be the best way to do that? How is this done with the gtk-stock-images? regards Arne __

Re: Re: Colored Statusbar, ugly grip under win32

2010-08-30 Thread Arne Pagel
Hello, I made some further checks, and now I can say, the resize grip gets ugly between 2.18 and 2.20 on windows system. resize grip OK: http://www.pagelnet.de/scope/scope_lin.png gettext-runtime-0.17-1 gettext-runtime-dev-0.17-1 glib_2.22.4-1_win32 glib-dev_2.22.4-1_win32 pkg-config_0.23-3_win3

Re: Colored Statusbar, ugly grip under win32

2010-08-26 Thread Arne Pagel
Tor Lillqvist schrieb: Version on win32 (ugli resize grip): And the versions with the non-ugly resize grip? 2.18.3, is result from pkg-config --modversion gtk+-2.0 don't know how I get more detailed information on Linux System Do you know the appropriate libraries for the resize grip under w

Re: Colored Statusbar, ugly grip under win32

2010-08-25 Thread Arne Pagel
Ok, Version on my linux box: pkg-config --modversion gtk+-2.0 2.18.3 Version on win32 (ugli resize grip): gtk+-bundle_2.20.0-20100406_win32/components.list gettext-runtime-0.17-1 gettext-runtime-dev-0.17-1 glib_2.24.0-2_win32 glib-dev_2.24.0-2_win32 pkg-config_0.23-3_win32 pkg-config-dev_0.23-3_

Colored Statusbar, ugly grip under win32

2010-08-23 Thread Arne Pagel
Hallo I have an Application which uses an GtkStatusBar with resize grip. I wanted to change the background color of the resize grip, so I put the Statusbar into an eventbox. Since the new 2.20 Win32 Bundle, the Resize Grip locks ugly with modified background color, have a look at following scr

Re: Treeview, different Cell-render per row

2010-07-10 Thread Arne Pagel
Tadej Borovšak schrieb: Hi. My other Idea was to make a new column for the GtkCellRendererToggle, and just show it when needed. Is it possible to hide a one of the renderer? This is how I would do this. Just add one gboolean column to your data store and connect it to cell renderer's "visible

Treeview, different Cell-render per row

2010-07-06 Thread Arne Pagel
Hallo, I have a simple treeview, with three columns, all with GtkCellRendererText. Now I want, in some special row's, a GtkCellRendererToggle, is this possible? Do I have to write a custom renderer, in which I call the RendererText or the RendererToggle? My other Idea was to make a new column

Treeview, start editing with any Key, not just Enter or space

2010-07-06 Thread Arne Pagel
Hello, I have a simple treeview, with three columns, all with GtkCellRendererText. I want to start editing a cell by pressing any key (expect arrow key's), not just enter, space or double click. I want the same behavior which is known form spreadsheet applications. I found a solution which wo

Not receving Signals from gtkhsclae

2009-03-17 Thread Arne Pagel
Hello, In my application (win32) I want to use a gtkhscale. I created the application with glade: True True 90 0 100 1 10 10 False and connected the Signal glade_xml_signal_connect (xml, "on_hscale1_value_changed",G_CALLBACK (on_hscale1_value_changed)); But i never receive the S

Centering gtk-status-bar-label

2009-01-20 Thread Arne Pagel
Sorry, forgot Subject, Hello, I use a gtk-status-bar where i want to center the label. Following code worked: gtk_misc_set_alignment(GTK_MISC(GTK_STATUSBAR(gui.statusbar)->label),0.5,0.5); But since I updated to the new gtk-download-bundle (for win32) I get following error-messages: (config.e

Re: GtkFileChooser and filter example

2009-01-20 Thread Arne Pagel
GtkWidget * dlg; GtkFileFilter * ff, * ffa; int ret; char * name; dlg = gtk_file_chooser_dialog_new("Select File",GTK_WINDOW(gui.window),GTK_FILE_CHOOSER_ACTION_OPEN,GTK_STOCK_CANCEL,GTK_RESPONSE_CANCEL,GTK_STOCK_OPEN,GTK_RESPONSE_ACCEPT,NULL); ff = gtk_file_filter_new(); gtk_fil

[no subject]

2009-01-20 Thread Arne Pagel
Hello, I use a gtk-status-bar where i want to center the label. Following code worked: gtk_misc_set_alignment(GTK_MISC(GTK_STATUSBAR(gui.statusbar)->label),0.5,0.5); But since I updated to the new gtk-download-bundle (for win32) I get following error-messages: (config.exe:5612): GLib-GObject-WARN

Suggestion, adding a valid glibconfig.h to win32 download bundle

2009-01-16 Thread arne pagel
Hello, I had a problem with glib because of my idea of fixing a missing glibconfig.h in my mingw-environment :-) (see mingw-users list "Compiler Basics..." when interested) As far as i see the only "correct" way of getting a vaild glib-config.h is building the glibs, right? But why providing

Re: gtk_file_chooser_hangs (win32 libgdk-win32-2.0-0.dll)

2009-01-16 Thread Arne Pagel
Hello, Yes, ther are some strange removable devices with size 0. They are there since i am constraind to use this machine with a operatingsystem i don't really like. I tryed to romove these strange devices, but i dont know how. But even if, the file-chooser should not hang. Is this a known bug?

gtk_file_chooser_hangs (win32 libgdk-win32-2.0-0.dll)

2009-01-15 Thread arne . pagel
Hello, i updated my mingw with the new All-in-one bundle on gtk download page. Now i have the problem, that the gtk_file_chooser is not working anymore in my application under win32. I get just a sandglass-curser over it. I get no warning or errormessage on the console. When I am taking older dll