Re: Widget directory?

2001-02-27 Thread Dov Grobgeld
And please don't forget my imageviewer widget at: http://imagic.weizmann.ac.il/~dov/freesw/gtk/gtk-image-viewer/ 8-) The widget repository is a great idea, but it needs a system for adding entries in the repository. Currently there is not even a mailing address on that page. Regards,

Re: Widget directory?

2001-02-28 Thread Dov Grobgeld
Havoc Pennington wrote: > > Dov Grobgeld <[EMAIL PROTECTED]> writes: > > And please don't forget my imageviewer widget at: > > > > http://imagic.weizmann.ac.il/~dov/freesw/gtk/gtk-image-viewer/ > > > > 8-) > > > > The widget r

gio, GSocketService, and connection hangup

2011-11-20 Thread Dov Grobgeld
I'm working on a jsonrpc server interface for glib and gio. I based my interaction with gio on the gio/tests/echo-server.c example and everything is working fine as long as the handler() - the function connected to by the "run" signal - is sending back the response to client. But I got stuck on ho

Re: gio, GSocketService, and connection hangup

2011-11-21 Thread Dov Grobgeld
connections arriving from a a non loop-back host. Dov On Sun, Nov 20, 2011 at 20:45, Dov Grobgeld wrote: > I'm working on a jsonrpc server interface for glib and gio. I based my > interaction with gio on the gio/tests/echo-server.c example and everything > is working fine as long

Re: future of development for the desktop

2012-05-25 Thread Dov Grobgeld
There is nothing in the article that sais that you cannot use another toolchain to compile programs for Windows 8, like gcc, but I'm skeptical whether that will still be possible. I'm used to compiling my free gtk+ software for windows XP, and Windows7 with a cross compiler under Linux. Will that b

Ported the dovtk-lasso example to gtk3

2013-05-03 Thread Dov Grobgeld
W ​ith a few years delay, I finally got around to porting the dovtk-lasso example to gtk3. It is available from: ​https://github.com/dov/dovtk-lasso/tree/gtk3 ​The included test-dovtk-lasso program draws some graphics and then allows creating and moving a semi-transparent ​caliper measuring tool

Setting styles in Gtk 3.0

2013-10-10 Thread Dov Grobgeld
Hi, Has something changed with the setting of styles in Gtk3, or is there some environment setting that inhibits the setting of the style? Consider the following python program: #!/usr/bin/python from gi.repository import Gtk Gtk.rc_parse_string(""" style "normal" { font_name ="serif 30" }

Re: Setting styles in Gtk 3.0

2013-10-10 Thread Dov Grobgeld
hange the properties, e.g. based on some external event. ​Regards, Dov ​ On Thu, Oct 10, 2013 at 4:16 PM, Paul Davis wrote: > > > > On Thu, Oct 10, 2013 at 4:05 AM, Dov Grobgeld wrote: > >> Hi, >> >> Has something changed with the setting of styles in Gtk3,

Re: Setting styles in Gtk 3.0

2013-10-10 Thread Dov Grobgeld
Actually I wanted to use this for changing the rendering of a specific widget based on certain events, and not for theming. E.g. if you want to create a quick and dirty simulation of a traffic light without using images or cairo. You can have e.g. three EventBoxes for the three traffic lights and t

Re: GLib Library License

2016-07-19 Thread Dov Grobgeld
GLib is licensed under LGPL which allows linking with non-LGPL code. But you still have to provide access for the end user to update the LGPL code that your application uses. In theory this means either providing your proprietary code as object files or in practice, linking to the LGPL code dynamic

Re: GLib Library License

2016-07-24 Thread Dov Grobgeld
Here is a blog entry discussing the problem of using glib on android that might be relevant: http://blog.xebia.com/the-lgpl-on-android/ On Sun, Jul 24, 2016 at 9:48 AM, pelzflorian (Florian Pelz) < pelzflor...@pelzflorian.de> wrote: > On 07/24/2016 08:26 AM, pelzflorian (Florian Pelz) wrote:

Re: GLib Library License

2016-07-25 Thread Dov Grobgeld
As is explained in the article, a package rebuilt by the user will not be signed with the same digital key as the original play store distributed package. Due to the isolation of packages by android, this user built package will not have access the same areas on the file system as the original pack

Re: GLib Library License

2016-07-26 Thread Dov Grobgeld
ense or if > you install license keys to validate against, like Docs to Go use a second > apk Docs to Go Premium Key to enable paid legitimate applications to run. > > El 26 jul. 2016 12:35 a. m., "Dov Grobgeld" > escribió: > >> As is explained in the article,

double_buffered and scrolled_window

2018-04-07 Thread Dov Grobgeld
Hi all, After lots of years I finally got around to porting my widget GtkImageViewer to gtk3. After doing lots of reading of man pages, did I realize that i can turn off double buffering. I did it, and everything worked fine, except for one artefact. Once I turned it off, the scrolled bars of the

Re: Handling new image format

2003-03-31 Thread Dov Grobgeld
Hi Sylvain, It is not really necessary to add a new format to gtk in order to handle these images. What you can do is to use any library that you like to read the images from disk, and then you can easily convert these to 8-bit images on your own. (This way you are e.g. in full control of the cont

Re: logic problem

2003-03-31 Thread Dov Grobgeld
Check out the libgnomecanvas. It has a concept of a world coordinate system that is mapped to the widget, just like in your problem. On the canvas you can place various canvas items, among them rectangles, which is what you need for your problem. You can then change the zoom factor in callbacks. R

Re: logic problem

2003-04-01 Thread Dov Grobgeld
On Tue, Apr 01, 2003 at 05:42:26AM -0600, Billy Patton wrote: > Only problem is, no gnome on a solaris 7 box. I have to compile gtk and > install in my directory. No, you just have to compile libgnomecanvas2 (and its few dependencies) and install it. Dov _

Re: Arabic and Hebrew languages support

2004-04-17 Thread Dov Grobgeld
The support was introduced in version 2.0 which was the first version that used pango. Regards, Dov On Thu, Apr 15, 2004 at 12:25:21PM +0300, [EMAIL PROTECTED] wrote: > > > > > Hello all, > > Does somebody know from what version (1.x or 2.x), gtk+ supports > bi-directional text entry for ar

Re: Pango usage

2004-04-20 Thread Dov Grobgeld
Hi Andras, Have a look at my program paps at: http://imagic.weizmann.ac.ail/~dov/freesw/paps It shows you how to call pango and freetype2 to extract the glyph outlines. In my case, I then turn them into postscript curves, but it should be trivial to change the output to any other format of yo

Re: Pango Use

2004-04-20 Thread Dov Grobgeld
Have a look at pangoft2topgm in the pango/examples directory. It shows you how to construct a pango layout and then convert it to a gray level image. You may then connect your code at this point and turn this image into a mask that you may write to the screen using normal gdk-functions. Note that i

Re: Pango Use

2004-04-20 Thread Dov Grobgeld
Ooops. You are quite right. How did I miss that... I guess I described how gdk_draw_layout() is implemented. Dov On Tue, Apr 20, 2004 at 05:10:32PM +0200, Sven Neumann wrote: > Hi, > > Dov Grobgeld <[EMAIL PROTECTED]> writes: > > > Have a look at pangoft2topgm in the

Re: Now it's fonts

2004-05-11 Thread Dov Grobgeld
Pango is using fontconfig. You can get a list of all fontconfig fonts by doing fc-list . You may also just run gedit or gimp and check its font dialog. Regards, Dov On Tue, May 11, 2004 at 02:18:54PM -0700, [EMAIL PROTECTED] wrote: > I've found A solution to my immediate font problem: > >fon

Re: Installing GTK+ on MSW - help!!

2004-05-11 Thread Dov Grobgeld
saved me a whole lot of time and effort. Thanks man!! > Look, just one more question, I am compiling using cygwin, would that be > ok with the binary package of GTK+ you're suggesting? > > TIA > > -----Original Message- > From: Dov Grobgeld [mailto:[EMAIL PROTEC

Re: Installing GTK+ on MSW - help!!

2004-05-11 Thread Dov Grobgeld
If you don't explicitely want to, you don't need to compile gtk in order to compile against it under Windows. You can just grab the precompiled gtk+-libraries from: http://www2.arnes.si/~sopjsimo/gimp/stable.html Get "Gtk+2 for Windows" as well as the Developer files at the bottom of the page

Re: Can't quit main loop

2004-12-29 Thread Dov Grobgeld
The whole idea of GUI programming is based on the "event driven" idea. This means that your application does not anymore go through a flow from the beginning to the end, but that you prepare your application by building your GUI and setting up event handlers, and then you hand over the control to t

Re: Why floating point for widget positions

2005-03-23 Thread Dov Grobgeld
In Gimp it is used for paintbrush drawing with subpixel positioning of the brush. The actual gray levels created are interpolated according to the gray levels of the paintbrush matrix and the subpixel location. (At least I guess that is how Gimp works. If not, then it is a waste of sub-pixel inform

Re: GTK+, CYGWIN, MSW and GCC flagas

2005-04-11 Thread Dov Grobgeld
Hello Jamiil, Writing the makefile with the proper flag for cygwin is a lot less text than the contents of your email ;-) : COPT = -mms-bitfields -mno-cygwin DEBUG = -g -Wall INCLUDE = `pkg-config --cflags gtk+-2.0` LDFLAGS = `pkg-config --libs gtk+-2.0` -mwindows CFLAGS = $(C

Re: antialiased drawing primitives (lines, arcs) possible ?

2005-04-14 Thread Dov Grobgeld
On Wed, Apr 13, 2005 at 09:47:05PM -0400, Paul Davis wrote: > >unfortunately the effect of reducing the "stair effect" is not that much > >bette > >r ;( > > the AA canvas draws curves as smoothly as anything i've ever seen. Then I guess you have never seen my program that creates a rendering at

Re: Data Plot Widget

2005-05-10 Thread Dov Grobgeld
gxgraph isn't a widget yet, but you may still find it useful. It is a port of the old xgraph program to gtk. See: http://imagic.weizmann.ac.il/~dov/freesw/gtk/gxgraph/ Regards, Dov On Tue, May 10, 2005 at 08:36:59AM -0400, Will Heyman wrote: > I need to plot 2d data. I searched the list and

Re: gtk themes

2005-05-11 Thread Dov Grobgeld
Just do: gtk_rc_parse_string("include \"/usr/share/themes/Bumblebee\"\n") and you will use the Bumblebee theme. Regards, Dov On Wed, May 11, 2005 at 07:41:52AM +0100, abhi rocks wrote: > hi > > Well i couldnt change my gtk theme using the .gtkrc > file in my home directory. Is there anyway

Re: Anti-Aliased 2D drawing

2005-05-16 Thread Dov Grobgeld
There is an example in the demos directory of the libgnomecanvas sources. You may also want to have a look at the documentation for the GGAD book, which, although for Gnome-1 still has some valid code for the gnome canvas. Look for the create_canvas_items() function at: http://developer.gnome.org

Re: PNG image creation without a physical display

2007-11-16 Thread Dov Grobgeld
The easiest solution to your problem is to use cairo, which provides the abstraction that you are asking for. When using cairo your drawing routines draw on a cairo surface, which may be any of different output devices, including a gdk-window or a png. Here's how you draw with cairo in gtk: stati

Re: Caret position of a GtkTextView

2008-04-26 Thread Dov Grobgeld
The insert position is a special mark called "insert". Just move it and you will move the insert position. Here's an example of how to move the insert position to the end of the buffer: void insert_to_end_of_buffer() { GtkTextIter iter_end; GtkTextBuffer *text_buffer = gtk_text_view_get_b

Re: gtk1.2 and gtk2.0

2008-04-30 Thread Dov Grobgeld
Gtk 1.2 and gtk-config that belong to it are long deprecated. Use gtk-2.* and pkg-config instead. Regards, Dov 2008/4/28 冯志胜 <[EMAIL PROTECTED]>: > I'm a newer to X-window. It's my first time to setup GUI for linux. i meet > problems: > > when i install some software, run configure script, erro

Re: Compiling under Windows using MSCV

2008-04-30 Thread Dov Grobgeld
Another option is to define the following function: #if WIN32 int __stdcall WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { char *argv[1]; argv[0] = "foo"; int argc = 0; return main(argc, argv); } #endif 2008/4/30 Carlo <[EMAIL PRO

Re: Setting an image as background in a GtkVbox

2008-05-10 Thread Dov Grobgeld
Note that a VBox doesn't get any expose events as it doesn't have any "drawable area" (I forgot the proper name for its classifaction). To get expose events pack the vbox into a GtkEventBox. You can then set the background of the GtkEventBox. Regards, Dov 2008/5/10 Donny Viszneki <[EMAIL PROTECTE

Re: Drawing with cairo

2008-05-18 Thread Dov Grobgeld
Saving the cairo context won't help you for performance of a plot with lots of point. What you may want to do if memory is more available than CPU is to cache the image that you draw on, and then just show the image next time you have an expose event. There might actually be some functionality in g

Re: RE: Scrolling a drawing area

2008-05-19 Thread Dov Grobgeld
2008/5/11 Lindley M French <[EMAIL PROTECTED]>: > [stuff deleted] > > Be warned: Due to the way resizing works in GTK+, it's impossible to do > "smooth zooming" where your scrolled window remains focused on the same part > of the image as you zoom. You can approximate it, but the zoom itself will

Re: RE: Scrolling a drawing area

2008-05-21 Thread Dov Grobgeld
t;[EMAIL PROTECTED]>: > > On Mon, 2008-05-19 at 11:39 +0300, Dov Grobgeld wrote: > > > > > > 2008/5/11 Lindley M French <[EMAIL PROTECTED]>: > > [stuff deleted] > > > > Be warned: Due to the way resizing works in GTK+, it's > >

Re: Am I to por an old GTK 12. software to "new" GTK?

2008-07-17 Thread Dov Grobgeld
The complexity of porting all depends on what widgets you have used. If you have not used any obsolete widgets (e.g. you have only used GtkDrawingArea, Buttons and Entry fields), then the porting is trivial. If you have used lots of GtkCList and GtkText widgets, then things are getting complicated.

Re: Development Question - Win32 - GtkFileChooserDialog

2008-07-17 Thread Dov Grobgeld
Still, there are deficiencies in the the GtkFileChooser under Windows that make it difficult to use. E.g. the lack of network drive browsing. For that reason among others Inkscape is moving to using native windows file browser under Windows (see: https://bugs.launchpad.net/inkscape/+bug/223126) . I

Re: How to set the font's size of the GtkLabel?

2008-08-28 Thread Dov Grobgeld
Hi Lazy (great name), The way to do it is to set the name of the label through: gtk_widget_set_name(label, "foo"); and then define a style for the name "foo", that includes a font specification: gtk_rc_parse_string("style \"foo\" {\n" "font = \"Seri

Re: How to set the font's size of the GtkLabel?

2008-08-28 Thread Dov Grobgeld
Hi Tomas, You are certainly right The style method is more suited when you want to change additional properties like background color, etc. I stand corrected. Regards, Dov 2008/8/28 Tomas Carnecky <[EMAIL PROTECTED]> > Dov Grobgeld wrote: > > Hi Lazy (great name), > > &g

Re: Multi-thread problem

2008-09-24 Thread Dov Grobgeld
2008/9/23 Chris Moller <[EMAIL PROTECTED]> sais: > > Accordingly, my GTK wrapper uses two threads, one that responds to user > interaction to pipe things to the utility, another that loops on a > blocking read of a pipe from the utility... Sorry, the fact that you are reading and writing asynchr

Announce: New version of GtkImageViewer widget - major rewrite

2008-10-08 Thread Dov Grobgeld
Hi all, I'm happy to announce a new version of the GtkImageViewer widget, version 0.9.0. This is a major rewrite (using gob2 actually) where the image annotation model has been changed so that the image is provided to the user of the widget before it is drawn to the screen. The result is flicker f

Re: Announce: New version of GtkImageViewer widget - major rewrite

2008-10-09 Thread Dov Grobgeld
08/10/8 zentara <[EMAIL PROTECTED]> > On Wed, 8 Oct 2008 11:20:15 +0200 > "Dov Grobgeld" <[EMAIL PROTECTED]> wrote: > > >See: http://giv.sourceforge.net/gtk-image-viewer/ > >Please let me know your comments! > >Dov > > Uh oh, I just did some de

Re: button to update graph when pressed

2008-10-25 Thread Dov Grobgeld
Hi Salvador, Something is not ok with your example, because in your example plotbox is a local variable that is left uninitialized. What you want to do is to pass a pointer to plotbox to the callback function, which may be done in a number of ways. One is to use the third parameter of the callback

Re: Opening a background window in a separate thread

2008-12-01 Thread Dov Grobgeld
There is no need for a thread at all. Just create the dialog window with GtkWidget *dialog = gtk_message_dialog_new() or similar and then do gtk_widget_show() on it. ֿIt indeed responds to events just like any other widget if you set them up properly with g_signal_connect(). Why do you think t

Re: Opening a background window in a separate thread

2008-12-01 Thread Dov Grobgeld
Hi Ian, The following change allows you to put the main window on top: g_signal_connect(G_OBJECT(dlgWin), "response", G_CALLBACK(dlgResponse), NULL); gtk_widget_show(dlgWin); > gtk_window_set_transient_for(GTK_WINDOW(dlgWin), NULL); } You can also create the dialog with NULL as its

Ignoring piled up key-press-events

2008-12-15 Thread Dov Grobgeld
I have a problem that I have been stuck on for a while. In my image viewer giv, I have a problem with a pileup of key-press-events. E.g. a space means load the next image. The problem is that I can't serve the keypress events at the full speed that they are generated, and gtk then piles them up. T

Re: How to use GtkImage

2008-12-18 Thread Dov Grobgeld
GtkImage won't help you for your application as it is really only for showing static images. To do what you want, you may as well use a drawing area and then whenever you receive an exposed or resize event, just redraw your vector data through cairo. You may also want to check out the tutorial for

Re: Application development using GTK and GLADE3

2008-12-18 Thread Dov Grobgeld
The way I solve this is by actually subclassing GtkWindow for each window and then add pointers to the rest of the widgets in that window. To achieve the window interdependencies I either pass around pointers to other window or even cleaner, create signals that I send from one window and listen to

Re: How to draw GtkImage in runtime?

2008-12-31 Thread Dov Grobgeld
Just use gtk_image_set_from_pixbuf() which allows you to set and/or update the pixbuf displayed by a GtkImage . Regards, Dov 2008/12/31 George Brink > I need to draw several tool buttons with colored circles and rectangles on > them. > I thought of doing something like: > -- > GtkToolIt

Re: Problems with simple examples

2009-01-03 Thread Dov Grobgeld
GnomeCanvas, though it should still work for existing applications, is considered obsolete today. There are currently several contenders about that desire to become the official GtkCanvas. There is a great overview about them at: http://live.gnome.org/ProjectRidley/CanvasOverview Personally I swi

Re: pixbuf rotation

2009-02-01 Thread Dov Grobgeld
No. You'll have to roll it on your own, or use some other image processing toolkit. Note that the fastest way to rotate is to do two shearing operations in the to dimensions. Regards, Dov 2009/2/1 Roei Azachi > Hi, > Is there a way to rotate a pixbuf not by a multiple of 90 degrees (using > gdk

Re: Mixing immediate drawing with drawing via expose events

2009-02-02 Thread Dov Grobgeld
It's not clear to me what you want to achieve, but you want to separate between a preparation step, where you transfer your data into a suitable for for direct drawing, and the actual drawing, which takes place in expose event. Consider e.g. my vector drawing program giv handles several hundred th

Re: events on a lot of triangles: [simplification of a previous post]

2009-02-08 Thread Dov Grobgeld
Here's another idea that I use in my program giv. Whenever I am painting an object on screen, I am painting the same object in an off-screen image with the same drawing commands but with "color" that is a combination of R,G,B that encode the index of the object. The important catch is that you have

Re: events on a lot of triangles: [simplification of a previous post]

2009-02-08 Thread Dov Grobgeld
Actually, the code is currently using agg to do the rendering, but the code to use cairo is there as well. It's just ifdef'd out, waiting for cairo to win a shoot-out against agg. :-) Regards, Dov 2009/2/8 Behdad Esfahbod > Dov Grobgeld wrote: > > Here's another idea

Can't find stock images under Windows

2009-02-08 Thread Dov Grobgeld
ut it didn't help. So what did I do wrong? Regards, Dov //== // main.c - Debug image paths. // // Dov Grobgeld // Mon Feb 9 09:13:28 2009 //-- #include

Re: Can't find stock images under Windows

2009-02-09 Thread Dov Grobgeld
*Dov is feeling stupid...* Thanks Tor. That explains it. It does ring a bell now, when you tell me. I connected it with a problem I had with reading images in Glade under windows, but I guess that is a different problem. I also should proof read my messages before I send them... Thanks again, Do

Re: events on a lot of triangles: [simplification of a previous post]

2009-02-09 Thread Dov Grobgeld
The problem with any general canvas solution is that it can only make limited assumptions about the scale and subdivision of the data. E.g. if you know that all your line segments are of certain max size, then you can use that knowledge to do a more efficient lookup. Look e.g. at Google Earth that

Re: quit dialog

2009-02-10 Thread Dov Grobgeld
Here are a few options. I'm sure there are more: - Use a DrawingArea and draw everything on your own in the expose callback. - Use a canvas widget, e.g. GooCanvas. - SubClass a GtkWidget and draw everything in the expose signal. - Pack everything normally without the icon, and then

Re: capturing button events on other widgets

2009-02-18 Thread Dov Grobgeld
Are you talking about another process or other windows in the same process? In the latter case it is trivial (let me know if you think it isn't). In the first case, you will have to create some interprocess communication. Regards, Dov 2009/2/18 nishit sharma > Hi All, > > This time i am facing

Re: cairo_surface_t to pixbuf

2009-02-22 Thread Dov Grobgeld
You can also create a cairo surface of the pixbuf through cairo_image_surface_create_for_data() like this: int img_width = gdk_pixbuf_get_width(pixbuf); int img_height = gdk_pixbuf_get_height(pixbuf); cairo_surface_t *surface = cairo_image_surface_create_for_data(gdk_pixbuf_get_pixels(p

Re: Rendering text with an outline

2009-03-05 Thread Dov Grobgeld
n one color, and then its outline in another color. Regards, Dov //== // An example of how to create a Outline label. // // Dov Grobgeld // Thursday 2009-03-05 20:31 // This example is in the public d

Re: Rendering text with an outline

2009-03-05 Thread Dov Grobgeld
I cleaned up my example a bit and put it in GnomeLive. See: http://live.gnome.org/OutlineLabel Regards, Dov 2009/3/5 Dov Grobgeld > Here's my solution in Vala. It creates a custom widget that inherits from > GtkLabel and thus receives its label. The neat thing about this approach i

Re:

2009-03-05 Thread Dov Grobgeld
Hi Rani, All of gtk fully supports Unicode through utf8 encoding. So if you just encode your text messages in utf8 that will then be displayed. Of course you also need to install the appropriate fonts, but that is not directly related to gtk. Regards, Dov 2009/3/6 rani rajaram > Hi all, > How

Re: Rendering text with an outline

2009-03-07 Thread Dov Grobgeld
text. See: http://live.gnome.org/PangoLayoutLineBbox Thus it does not make sense to create a binding for just one of them. Regards, Dov 2009/3/7 Chris Vine > On Fri, 06 Mar 2009 12:14:53 +0100 > Christian Schaubschlaeger wrote: > > Dov Grobgeld schrieb: > > > I cleaned up

Re: Designing a 'console' with GtkTextViewer

2009-03-07 Thread Dov Grobgeld
Two applications that do something very similar based on the GtkTextView widget are: - GemTcl by myself (see http://gemshell.sf.net) - The Python console in Gimp. You need to overload lots of bindings to get it to behave as a terminal. Just look at the source to get the idea. Regards, Dov

Re: Rendering text with an outline

2009-03-10 Thread Dov Grobgeld
be in the same color but what I get is > black in the middle and gray edges > when I draw the 2 colors one over the other - I get smudged font, looks > line the white background emerges through the black foreground > > I tried calling cairo_set_line_join with all options but I am prob

Re: The right direction

2009-03-23 Thread Dov Grobgeld
Hi Yoshua, Yes, gtk is indeed cross platform. It uses glib that creates abstractions for lots of os stuff. Regarding compilation on Windows you are encouraged to use the mingw compiler for gtk+ development. It is also possible to use a cross compiler under Linux that generates windows code, so yo

GtkStyle extendable?

2009-03-28 Thread Dov Grobgeld
While playing around with pango, cairo and librsvg, I started thinking about how to wrap the result into a GtkLabel and how to set its properties. I then wondered whether GtkStyle is extendable? I.e. if I create a widget derived from GtkLabel called SvgLabel that has a property called Filter that d

Re: GtkImageViewer

2009-04-11 Thread Dov Grobgeld
Hello Eduardo, Thanks for the feedback. Regarding the drawing of polygons, I have had the same problem and the solution I made is outside the GtkImageViewer. Please download my program giv at giv.sf.net and have a look at the the pair of files giv_backstore.[ch] that provide a way of quickly stor

Re: GtkImageViewer

2009-04-12 Thread Dov Grobgeld
testing under XP. > > So, if you have a pixbuf on a widget (whatever the widget may be), and you > make a cairo_surfacet_t from that pixbuf, when you draw with cairo to the > surface, you alway lose the color and get a line or arc with strange > effects. > > That´s what I would l

Doing right-click on some widgets doesn't work

2009-05-21 Thread Dov Grobgeld
licked. But the behaviour that the button-press-event is blocked stops me from doing that.) Attached my sample program. Thanks! Dov //== // why-no-event.c - Why is there no event from the option button. // // Dov Grobgeld

Having an event box pass unhandled events to its child

2009-05-23 Thread Dov Grobgeld
In my last email, that unfortunately no one answered, I asked how to get right click to work on any widget. Since I didn't find a solution to that I thought to do a work around by putting the widget I want to add right-click to into an event box. So I packed my widget into an event box and figured

Re: Having an event box pass unhandled events to its child

2009-05-24 Thread Dov Grobgeld
er. Is there no "strace" like system in gobject that makes it possible to dump all signals that are being sent in a program? That might help me figuring out what is going wrong. Regards, Dov 2009/5/24 Chris Vine > On Sun, 24 May 2009 09:24:19 +0300 > Dov Grobgeld wrote: > >

Re: Having an event box pass unhandled events to its child

2009-05-24 Thread Dov Grobgeld
button-press-event is never called for the file chooser button. I thought I understood signals in gtk by now. But this one beats me... Dov 2009/5/25 Chris Vine > On Sun, 24 May 2009 22:18:23 +0300 > Dov Grobgeld wrote: > > Thanks for trying to help. Unfortunately neither >

Re: Having an event box pass unhandled events to its child

2009-05-25 Thread Dov Grobgeld
GTK_CONTAINER. Thanks again, Dov 2009/5/26 Chris Vine > On Mon, 25 May 2009 06:46:34 +0300 > Dov Grobgeld wrote: > > > I did. See my message to the list from 21 May 2009 20:04 with the > > subject "Doing right click on some widgets doesn't work". That

Re: Having an event box pass unhandled events to its child

2009-05-25 Thread Dov Grobgeld
et > the same print for both buttons: > > "cb_button_press_event > Got right mouse button!" > > Regards, > Jonathan > > On Mon, May 25, 2009 at 6:46 AM, Dov Grobgeld wrote: > >> I did. See my message to the list from 21 May 2009 20:04 with the subject >

Re: help on graphics context colors not honored? (newbie)

2009-05-25 Thread Dov Grobgeld
Use cairo instead. Basically you create a an expose event handler, in which you create a cairo context from the GdkWindow and then you draw on it. I couldn't find a good tutorial example, but there is plenty of code showing how to do it. E.g. look for view_ocr_face_expose() at http://markmail.org/m

Re: Having an event box pass unhandled events to its child

2009-05-26 Thread Dov Grobgeld
gh as gtk_widget_set_parent. But this button does not appear in gtk_container_get_children(). Sigh. Gtk does have transparency issues... Any ideas? Regards, Dov 2009/5/26 Dov Grobgeld > Thanks! Now this is obvious. I should have thought of that. All that is > needed is to look at the gtkfilechooserbutton.

Re: How to enable animation in GTK 2 application ?

2009-06-06 Thread Dov Grobgeld
For most animations the function that you need is g_timeout_add() that makes the main loop of gtk/glib call a function of your choice after a certain interval (the animation step). By returning true from this function, the function will be called again after the same interval. Depending on what kin

Re: root object in Glib/Gtk etc

2009-06-10 Thread Dov Grobgeld
Yes, that is right. There are still structures used in Gtk/Glib that are not objects though. The descending from GObject makes lots of interesting things possible: - Signals - RTI (as you correctly noted) - Inheritance - Properties - Gobject Introspection (gir) - Vala - Gob2

FileChooser dialog positioning on parent in Win32 bug?

2009-07-01 Thread Dov Grobgeld
This seems like a bug in Windows, but I wanted to hear if there some easy work around before I open a bug in bugzilla. The following code: GtkWidget *dialog = gtk_dialog_new_with_buttons("Title", GTK_WINDOW (parent_window), GTK_DIALOG_DE

Re: g_spawn_async in win32

2009-07-01 Thread Dov Grobgeld
One way of communicating from the worker thread back to the gui thread is to use g_idle_add(), which will call the requested function in the gui thread. Regards, Dov 2009/6/29 Vivien Malerba > > > 2009/6/29 r > >> Hi, >> >> I have a gtk program doing now and then a calculation taking a few sec

mutex problems on Windows

2009-07-06 Thread Dov Grobgeld
I'm having a problem with GMutex under Windows that don't lock. The behaviour is definitely different from that under Linux. The system is composed of to threads. A gui thread G and a worker thread W. The ping pong between the threads via a mutex j->M should work as follows. j is a job data struct

Re: mutex problems on Windows

2009-07-07 Thread Dov Grobgeld
ite complex I have to admit. Is there a simpler way to solve the same problem (query/response)? Regards, Dov 2009/7/7 Chris Vine > > On Mon, 6 Jul 2009 17:13:07 +0300 > Dov Grobgeld wrote: > > > I'm having a problem with GMutex under Windows that don't lock. The >

Re: mutex problems on Windows

2009-07-07 Thread Dov Grobgeld
ex (file pqlxPNG.c, line 28; file systemPDF.c, >line 74) >- (another static mutex, named myMutex, is used for other reasons, >ignore this one) > > the question, of course, is will this work under windows? not sure, my > code is only run under linux systems and it works fine

Re: mutex problems on Windows

2009-07-07 Thread Dov Grobgeld
I would be interested to see how you would amend your 1-direction solution so that it also supports stopping. Thanks! Dov 2009/7/8 Terrence Cole > On Tue, 2009-07-07 at 10:56 +0300, Dov Grobgeld wrote: > > Thanks a lot for the help.! I have now solved the problem by > > introducing a GCond

Re: GTK+ on windows

2009-10-13 Thread Dov Grobgeld
I have created several cross-platform gtk programs, and while it took a while to get right the first time, my development is now so trustworthy that I can do all my development under Linux and then once it works, just generate a windows installer and I know that it will just work. I am using mingw

Re: command prompt appearance

2009-10-27 Thread Dov Grobgeld
To erase the window you just need to add a linker flag. With gcc/mingw or cygwin simply add the flag -mwindows. In Visual Studio you have to add the flag /SUBSYSTEM:Windows . Regards, Dov On Tue, Oct 27, 2009 at 09:16, robi wrote: > Hello to everyone! > > I am creating application on Windows an

Re: get text under cursor

2009-11-23 Thread Dov Grobgeld
That is not a gtk question. You better check with a firefox related forum. Regards, Dov On Tue, Nov 24, 2009 at 06:16, Ken Perl wrote: > Hello, > > What's the API of GTK to get the text under the cursor when mouse > moves over and stay on a word on a webpage of firefox? > > -- > perl -e 'print

Self destructing dialog question

2009-11-24 Thread Dov Grobgeld
I have a small problem that's been bothering me for a while and I have yet to find an elegant solution to it. The problem is related to the notification of the destruction of a dialog window. Assume I have a program with a widget MyApp that has a member called my_dialog that is created to catch it

Re: Self destructing dialog question

2009-11-25 Thread Dov Grobgeld
Wed, Nov 25, 2009 at 08:41:58AM +0200, Dov Grobgeld wrote: > > Assume I have a program with a widget MyApp that has a member called > > my_dialog that is created to catch its destruction as follows: > > > > if (!priv->my_dialog) { > > priv->my_dialog = my

Re: Distribution

2009-12-09 Thread Dov Grobgeld
Regarding distribution from "your resources", it may not be clear what it means in case you are using a site like sourceforge to make your download available. What if your distribution site disappears within three years of someone acquiring your program? Your email might also disappear. Or your pos

GtkToolItem custom widget - hybrid of GtkRadioToolButton and GtkMenuToolButton

2009-12-26 Thread Dov Grobgeld
Hello, I'm working on a space challenged device (Nokia N900) and in order to save space I would like to create a hybrid of a GtkToolbar (that will be shown at the bottom of the screen, and hidden when not in use) with the following properties: - There should be several GtkRadioToolButton group

Re: Can't stop button from expanding

2009-12-27 Thread Dov Grobgeld
Create a hbox that you insert in the hierarchy between the page and the button. When resizing the hbox will be resized, but not the button that is inside it: : /* Notebook Page */ GtkWidget *page; page = gtk_vbox_new(FALSE,0); GtkWidget *hbox = gtk_h

What are eggs?

2010-01-01 Thread Dov Grobgeld
While trying to make a up a family for a new widget, I got reminded of seeing the term "egg" over the years in relation to gtk, but I never really understood what it means, who came up with the concept, and how it is "supposed" to be used? My guess is that it is related to real eggs that are abidi

Re: simple compass widget available

2010-01-09 Thread Dov Grobgeld
A small note on the lack of a gtk repository. I think that gtk is heavily loosing out on not having a repository of widgets. The last few years I have written a lot of gtk code and since several years, I am wrapping everything into widgets. Were there a repository I would probably have uploaded a o

  1   2   >