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.
So the reset of the applications have to follow now, but its anyway time...


regards
  Arne

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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 draw a arbitrary 
number of teeth, and I
need to adjust the angular position of this. So far I don't need any mouse 
interaction on the
produced graphic, but this request might come.

Point is that I don't want to spend a lot of time in this feature, so I am 
searching for the easiest
solution, especially since I never did some pure graphic programming like this, 
just a little bit 2D
plotting with get-extra and normal Widget usage.

I thought best for this round thing would be an polar drawing mode.
I know that GtkExtra has a polar Plotting capability, but it might be not the 
right solution for my
purpose.


Any Suggestion for me?

thanks
  Arne




___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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 magnitude of input values 
 
 
 one widget i found is Gtkdial , but it has support from gtk+-2.18 onwards and 
 i am having gtk+-2.10.0 
 
 
 
 HELP 
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
 

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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
fix this typo.

Now I defined a makro for this, and in the case I forget the comma again at 
least I get a compiler error:

#define TREE_MODEL_EOL (int)-1

gtk_tree_model_get(model,iter,STUFF,stuff,TREE_MODEL_EOL);

I think something like this would be integrated officially and also the all the 
examples would be updated,
at lot of headache of many people could be avoided.

--
 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, 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 use numerical values, and even if you can not read the last number, you 
have some Information, you see that there is a fast change.
The other thing is that I have build in the possibilitiy for a Binary Display 
where I currently use a Toggle Button. In the Future my plan
is to change to a LED like view, where you also can notice very short events.

Anyway, to achieve 100ms, the maximum possible update Frequency should by 
higher.

At the moment I have just on Object with 12 Elements in my TreeView,
but later I want to have more Objects with more Elements in the view, with the 
current approach I would already touch the boarder.

Also I want to reduce the CPU load for this process.
Well, an WebVideo with 30 fps and an much more changing pixels requires less 
CPU load.

A feature I plan is also to give the possibility to log Data to a file, but if 
the visualization causes high CPU load,
and therewith high jitter, the quility of this log will be bad

One other thing is, I already know that a fast Display is possible, like if I 
just use 1 Element Objects.
Optically there is not so much difference, so what is causing the delay.

Did you ever see the Mega-Tunix Project?
http://sourceforge.net/projects/megatunix/
They mad some very cool gauges which I used a few years ago, with also more 
then 10Hz,
and acceptable CPU Load, even on a weak Industrial PC

regards
  Arne



Am 27.09.2012 13:27, schrieb Vlad Volodin:

Hello Arne,

Is it really necessary to refresh updates 400 times per second? To be
honest, me as a human will not notice all these changes. What do you
think about doing updates once or two times per second? (like all task
managers do) E.g. you can collect all values that come from the
hardware and display the average value only.

Kind regards,
Vlad


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Gtk_Tree_View, drawing speed

2012-09-26 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 my Treeview 12 times different data are 
fetched from the external hardware and displayed.
In that case I can see that I get a request rate about 400 requests per second.

But this is just If I use flat objects. If I use Objects which have childs in 
the treeview, then the Update rate goes rapidly down.
For example I have a structured object that also fetches Data and displays them 
on 12 rows, the update rate is going down to below 100.
But in fact the effective number updated rows has not changed compared to that 
case where I have 12 Single Objects.
If I collapse some child's in the tree view, I can see the update rate 
increasing.
To give you an better understanding how this application looks like, you can 
find a screenshot here http://www.pagelnet.de/uctools/a7.html.

I followed this issue down to that point that I can definitely say that the 
gtk_tree_store_set() function causes the delays.

My assumption is, that if a row has children, some recursive things are done, 
maybe every time I update one item the whole hierarchy gets updated etc.
To accelerate the speed again, I see following options (of course just if my 
assumption is somehow correct)

1.)
To implement a kind of shadow storage, und just if the data are different to 
perform the actual gtk_tree_store_set() operation.
But I would not prefer this method, it is either not so easy to implement nor 
is it solving the root cause.

2.)
To find a way, to synchronize the invoked cell renderes, so that I just make 
one drawing update after I set the last Item.
For example, I can try to use just one tree_store_set operation per hierarchy 
(now i have one tree_store_set operation per row),
but also for this I have to create a kind of shadow memory.

3.)
Implement a own cell-renderer, which can do above things.

Do you see any other option?

regards
  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, drawing speed

2012-09-26 Thread Arne Pagel

Thank you for this hint,

I tried it and indeed I notice a speedup, but just factor ~1,3.
There must be something more.

I removed all columns expect the Value column, and now I notice a speedup 
factor of ~3, if I remove just one column, is see a speedup factor of ~2.
Now I am sure that there is some processing on cells where the corresponding 
data in the treestore are not touched.
If I remove columns on the first treeview which is using the same tree-store I 
see no effect.

What is interesting that I now notice also a speedup of my single elements 
objects, there now I can achieve an update rate of 570 requests per second.

- -

I just noticed that I can't compare the single element objects and structured 
objects in that way I did before,
but anyway, with the column removing I see some potential for speeding up 
everything.

Of course the given value of 570 requests 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 Pagela...@pagelnet.de  wrote:

Do you see any other option?


Have you tried setting the fixed-height hint on the treeview?

By default treeview supports variable-height rows. This is great, of
course, but there is a performance penalty: whenever the model
changes, the view has to rescan the model and recalculate all the
heights. If all your rows are the same height, and they might be from
looking at your screenshot, you can set the fixed-height hint and get
treeview to just sample a single row.

http://developer.gnome.org/gtk3/stable/GtkTreeView.html#gtk-tree-view-set-fixed-height-mode

John



___
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-26 Thread Arne Pagel

I played around with the gtk_tree_selection_select_range functions, but as far 
as I have seen this is not working for collapsed elements.
Also I found the handling very difficult for my purpose, and the operation can 
be distorted by other mouse movements.

I implemented this now by using the gtk_tree_model_foreach function, probably 
not the most efficient method, but at least a working one:

gtk_tree_model_foreach_hierarchy (GtkTreeModel *model,
  GtkTreeModelForeachFunc func,
  GtkTreePath * path,
  gpointer user_data)

The gtk_tree_model_foreach_hierarchy executes the GtkTreeModelForeachFunc func 
in a parent-child hierarchy for the parent and each child.
The parameter treepath has to point to one element in the desired hierarchy.


-- code --

typedef struct
{
  GtkTreeModelForeachFunc func;
  int index;
  gpointer user_data;
}t_gtmfh;

gboolean foreach_indices (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter 
*iter, gpointer user_data)
{
  int ret = 0;
  t_gtmfh * gtmfh;
  int * ind;

  gtmfh = user_data;
  ind = gtk_tree_path_get_indices (path);

  if (*ind == gtmfh-index)
  {
gtmfh-func(model, path, iter, gtmfh-user_data);
  }
  else if (*ind  gtmfh-index)
  {
ret = 1;
  }

  return ret;
}


void gtk_tree_model_foreach_hierarchy (GtkTreeModel *model, 
GtkTreeModelForeachFunc func,GtkTreePath * path,gpointer user_data)
{
  t_gtmfh gtmfh;
  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,gtmfh);
}




Am 12.09.2012 10:54, schrieb David Nečas:

On Wed, Sep 12, 2012 at 10:40:11AM +0200, Arne Pagel wrote:

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, but I have to use a lot of string functions.
Is there a smarter way to do that with less overhead?


Use gtk_tree_selection_select_range().

You already have the start path, so, how to get the end path?  Use
gtk_tree_model_iter_n_children() and gtk_tree_model_iter_nth_child()
recursively to always move to the last child in the branch.  If your
tree is only two-level (as it seems to be) you do not even need to
recurse.

Regards,

Yeti




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


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 happen, the the user deselects an object in the treestore while 
this communication is ongoing.
This means that my treepath or iter which I rembered befor is not valid anymore 
after the communication has finished (*1).

To avoid access to not existing memory (*2) I currently use 
gtk_tree_store_iter_is_valid, but the documentation recommends to no use this 
function.
Even I didn't notice any increase of cpu load or timing influence, I want to 
follow this recommendation.

Of course I can think about implementing a selfmade locking mechanism, but 
every alternative I considered so far
which is under all circumstances is not inconvenient for the user requires a 
queue to store the add / deselect events.
For my feeling this is to much overhead for just this function, does anyone see 
an other alternative?
Maybe there is existing some g_lib stuff for this?

In my current implementation it would be very good, if 
gtk_tree_model_filter_convert_iter_to_child_iter would have a return value.
It already produces an gtk_warning if the iter could not be converted so why no 
return value?

*1 (the communication itself is handled in a functions called from g_idle_add, 
so no thread issue etc.)
*2 (my application can crash at gtk_tree_model_get, if the iter is not valid)

ps:
One other Idea I just had while writing this is to add a boolean column to the 
treestore where I mark columns which should be removed.
This I can handle in my communication callback function, together with a column 
visible flag this will not be noticeable.
I allready have 18 columns in the treestore, this would be the 19th, no problem 
or?


Well, If there is no other Idea, thanks for listening.


regards
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, but I have to use a lot of string functions.
Is there a smarter way to do that with less overhead?

regards
  Arne
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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 some functions which might be helpfull for that, like

gtk_tree_selection_select_range ()
gtk_tree_selection_selected_foreach ()

But so far I didn't find any function which helps me to do what I want.
I always come to the point where I have either to walk through my treestore 
manually by iter_next etc.
or I have to write some code which examines the gtktreepath string.

It would be good, if I can use wildcards on the treepath, eg:
0
1
2:0
2:1:0
2:1:1
3:0:0
now I want to select 2:* or 2*



I am just wondering if there is no better support for this, because I think to 
perform actions on all childs is a common use case.
For example if you look to a file browser and it's copy function, it copies the 
current node and in case this node is a directory entry
all child nodes also have to be copied.

Do you have any hint for me?

regards
 Arne



___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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, linefeed, maybe headers and colors.
Since I don't want to create a own text storage format and I am using already xml for text storing 
html would be nearby.


Is there some Gtk-Widget like the textview/buffer which can render simple HTML 
Tags?
If not, what is your recommendation for my problem.

regards
  Arne
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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 from the canvas and convert it to a 
PNG-Image.


But now I want to export the plot without showing it before.
The Plot should be just created for this export with some special options and 
is destroyed afterwards.

I am a little bit confused about canvas, gtk-plot-canvas, pixbufs, pixmaps, drawables, what is shown 
and when something is rendered.


Can I create a gdk-pixbuf and using the gtk-plot functions to draw directly 
into it?

I read something about gdk-pixmap, but I don't know how I can tell the gtk-plot functions to uses 
this as canvas.


Any other Ideas?

regards
  Arne
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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 like gdk_pixbuf_save but with option to 
add some private Data

*/
void export_png_file(char* file_name,GdkPixbuf *pixbuf,char * private_data)
{
int i;


int width, height;
png_byte color_type;
png_byte bit_depth;

png_structp png_ptr;
png_infop info_ptr;
int number_of_passes;
png_bytep * row_pointers;
char * pix;
int rowstride;
FILE * fp;

  fp = fopen(file_name, wb);

  height = gdk_pixbuf_get_height (pixbuf);
  width = gdk_pixbuf_get_width (pixbuf);

  pix = gdk_pixbuf_get_pixels (pixbuf);
  bit_depth = gdk_pixbuf_get_bits_per_sample (pixbuf);
  color_type = gdk_pixbuf_get_has_alpha (pixbuf) ? PNG_COLOR_TYPE_RGB_ALPHA : 
PNG_COLOR_TYPE_RGB;
  rowstride= gdk_pixbuf_get_rowstride (pixbuf);

  png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);

  info_ptr = png_create_info_struct(png_ptr);

  png_init_io(png_ptr, fp);

  png_set_IHDR(png_ptr, info_ptr, width, height,
   bit_depth, color_type, PNG_INTERLACE_NONE,
   PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);

  png_write_info(png_ptr, info_ptr);

  row_pointers = g_malloc(sizeof(png_bytep*)*height);

  for( i = 0; i  height; i++)
  {
row_pointers[i] = (png_bytep)(pix + i * rowstride);
  }

  //if (n_channels == 4) png_set_filler(png_ptr, 0, PNG_FILLER_AFTER); // why?

  png_write_image(png_ptr, row_pointers);

  png_write_end(png_ptr, NULL);

  g_object_unref(pixbuf);

  fclose(fp);
}
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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?

Using libpng with png_set_unknown_chunks() ?

Is there any examplke of how I get GDK-IMAGE-DATA to libpng?

regards
  Arne








___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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() member.
GLib-WARNING **: g_main_context_check() called recursively from within a source's check() or 
prepare() member.


I will try a simple demo Program to verify if my code causes this.

regards
  Arne

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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


All other methods are working: (ALT+F4), close over application button, close over win32 frame, 
close over taskmanager.


In my application there is just one point where gtk_main_quit is called.
With GDB, I can see that inside of gtk_main_quit g_main_context_dispatch causes 
the error.

Any Idea?

regards
  Arne
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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 glade-file (as xml string for 
gtkbuilder).
Is there already a tool for this purpose?

regards
  Arne
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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_win32
pkg-config-dev_0.23-3_win32
atk_1.28.0-1_win32
atk-dev_1.28.0-1_win32
pango_1.26.2-1_win32
pango-dev_1.26.2-1_win32
cairo_1.8.8-4_win32
cairo-dev_1.8.8-4_win32
fontconfig_2.8.0-2_win32
fontconfig-dev_2.8.0-2_win32
expat_2.0.1-1_win32
expat-dev_2.0.1-1_win32
freetype_2.3.11-2_win32
freetype-dev_2.3.11-2_win32
libpng_1.4.0-1_win32
libpng-dev_1.4.0-1_win32
zlib-1.2.3
zlib-dev-1.2.3
gtk+_2.18.7-1_win32
gtk+-dev_2.18.7-1_win32 

rsize grip ugly:
http://www.pagelnet.de/scope/scope_win.png
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_win32
atk_1.30.0-1_win32
atk-dev_1.30.0-1_win32
pango_1.28.0-1_win32
pango-dev_1.28.0-1_win32
cairo_1.8.10-3_win32
cairo-dev_1.8.10-3_win32
fontconfig_2.8.0-2_win32
fontconfig-dev_2.8.0-2_win32
expat_2.0.1-1_win32
expat-dev_2.0.1-1_win32
freetype_2.3.12-1_win32
freetype-dev_2.3.12-1_win32
libpng_1.4.0-1_win32
libpng-dev_1.4.0-1_win32
zlib_1.2.4-1_win32
zlib-dev_1.2.4-1_win32
gtk+_2.20.0-1_win32
gtk+-dev_2.20.0-1_win32


I have the same application, on windows and linux system, 
I noticed that the resize grip on the windows system with the new Gtk 2.20 
Version 
looks different than on my linux system with 2.18.3.

Now I tested the application with the 2.18 release on the windows system, and 
the resize grip looks OK.

I did not spcified a theme.

regards
   Arne

- original Nachricht 

Betreff: Re: Colored Statusbar, ugly grip under win32
Gesendet: Do, 26. Aug 2010
Von: Tor Lillqvistt...@iki.fi

 Wait a minute, now I am confused. I thought you said that the look of
 the resize grip had changed between two GTK+ versions on Windows? Can
 you specify these two exact versions, that you used on Windows, or
 not?
 
 Did you use the same theme (or no theme at all) with both GTK+ versions?
 
 --tml
 

--- original Nachricht Ende 

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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 win32?
Then I could try to switch to the older version to provide more detailed 
information.

regards
  Arne



--tml
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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_win32
atk_1.30.0-1_win32
atk-dev_1.30.0-1_win32
pango_1.28.0-1_win32
pango-dev_1.28.0-1_win32
cairo_1.8.10-3_win32
cairo-dev_1.8.10-3_win32
fontconfig_2.8.0-2_win32
fontconfig-dev_2.8.0-2_win32
expat_2.0.1-1_win32
expat-dev_2.0.1-1_win32
freetype_2.3.12-1_win32
freetype-dev_2.3.12-1_win32
libpng_1.4.0-1_win32
libpng-dev_1.4.0-1_win32
zlib_1.2.4-1_win32
zlib-dev_1.2.4-1_win32
gtk+_2.20.0-1_win32
gtk+-dev_2.20.0-1_win32



regards
  Arne
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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 screenshots, comparing same project under win (gtk 2.20) and linux (gtk older):


http://www.pagelnet.de/scope/scope_win.png
http://www.pagelnet.de/scope/scope_lin.png

Has someone an idea what I can do here, or where I can report this?

regards
 Arne


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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

Tadej


Hello, thank you for your answer,

The first part is easy, but I don't know how I should connect it to
the visible property. Do you know an example project where this is done?

Regards
   Arne


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

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 works with single instead of double click, but not a solution with just 
pressing key's.


Is there an easy way to do this?

regards
  Arne

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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 for the GtkCellRendererToggle, and just 
show it when needed.
Is it possible to hide a one of the renderer?


regards
Arne







___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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:

widget class=GtkHScale id=hscale1
  property name=visibleTrue/property
  property name=can_focusTrue/property
  property name=adjustment90 0 100 1 10 10/property
  property name=restrict_to_fill_levelFalse/property
  signal name=value_changed handler=on_hscale1_value_changed/
/widget

and connected the Signal

glade_xml_signal_connect (xml, on_hscale1_value_changed,G_CALLBACK 
(on_hscale1_value_changed)); 

But i never receive the Signal!
The rest of the application works fine, I use a lot of Signals and callbacks, i 
googled and tried and check, but without success.

Can someone give me a hint?


regards
  Arne

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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_file_filter_set_name(ff,txt);
  gtk_file_filter_add_pattern(ff,*.txt);
  gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dlg),ff);
  
  ffa = gtk_file_filter_new();
  gtk_file_filter_set_name(ffa,all);
  gtk_file_filter_add_pattern(ffa,*);
  gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dlg),ffa);
  
  ret = gtk_dialog_run(GTK_DIALOG(dlg));

-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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.exe:5612): GLib-GObject-WARNING **: invalid cast from `GtkFrame' to 
`GtkMisc'
(config.exe:5612): Gtk-CRITICAL **: gtk_misc_set_alignment: 
assertion`GTK_IS_MISC (misc)' failed
 
Has somone an idea what could be wrong?

regards
  Arne
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[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-WARNING **: invalid cast from `GtkFrame' to 
`GtkMisc'
(config.exe:5612): Gtk-CRITICAL **: gtk_misc_set_alignment: assertion 
`GTK_IS_MISC (misc)' failed

Has somone an Idea what could be wrong?

regards
  Arne
-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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?
Can i help to debug?

regards 
  Arne
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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's (libgdk-win32-2.0-0.dll and 
libgtk-win32-2.0-0.dll) 
from August 26, everything works fine.
With the new one from January 8 I have the problem.

An idea what could be the problem?

regards
  Arne
-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list