Re: Treeviews: changing the color of column headers

2015-06-13 Thread Stefan Salewski
On Sat, 2015-06-13 at 20:43 +0200, Stefan Salewski wrote: On Tue, 2015-06-09 at 08:54 +0200, Juan L. Freniche wrote: I am trying to change the color of the column headers of a treeview, with no sucess at all. It is funny that currently many people try to change default colors of GTK

Re: How to style a GtkLabel with CSS

2015-06-12 Thread Stefan Salewski
On Fri, 2015-06-12 at 16:50 +, Gulshan Singh wrote: I need some help with this question: https://stackoverflow.com/questions/30791670/how-to-style-a-gtklabel-with-css A commentor mentioned that I should attach the provider directly to the GtkLabel instead of the window, and that worked,

Re: How to style a GtkLabel with CSS

2015-06-12 Thread Stefan Salewski
On Fri, 2015-06-12 at 23:13 +, Gulshan Singh wrote: I actually asked in #gtk+ on Freenode, but didn't get any response. I asked again on the GNOME server, and I got an answer that worked: https://stackoverflow.com/questions/30791670/how-to-style-a-gtklabel-with-css/30813433#30813433 That

Re: Outdated win32 bundle

2015-06-10 Thread Stefan Salewski
On Mon, 2015-06-08 at 19:22 +0100, Emmanuele Bassi wrote: I plan starting with 3.16, but got no response so far regarding my request to access the build system. Likely because you're using gtk-list@, which nobody in the GTK team follows (except, I think, me). Interesting info -- indeed I

Re: Gtk::Window resize grip replacement

2015-05-15 Thread Stefan Salewski
On Thu, 2015-05-14 at 20:48 +0100, Emmanuele Bassi wrote: Client-side decorated windows when running under a compositor have 5 pixels around the border Interesting. I wonder if these pixel design works well with ultra-HD and 4k displays? I am going to buy a 27 or 28 inch display with 3840*2048

Re: A simple choice dialog won't work...

2015-05-07 Thread Stefan Salewski
On Thu, 2015-05-07 at 13:02 +0100, Richard Shann wrote: From https://developer.gnome.org/gtk3/stable/GtkDialog.html GTK_RESPONSE_REJECT Generic response id, not used by GTK+ dialogs GTK_RESPONSE_ACCEPT Generic response id, not used by GTK+ dialogs Maybe try GTK_RESPONSE_OK and

Re: A simple choice dialog won't work...

2015-05-07 Thread Stefan Salewski
On Thu, 2015-05-07 at 16:02 +0100, Richard Shann wrote: After experimenting with a different bit of code, I think I've found the cause of the problem: doing the widget destroy by responding to the response signal seems to be ruining the return value. That is interesting. Indeed I had a

Re: Help spinbuttons, Paulo Silva

2015-04-09 Thread Stefan Salewski
On Thu, 2015-04-09 at 23:17 +0930, Roger Matthews wrote: Hi Paulo, or anybody else interested in helping, I've read chapter 2 of Foundations of GTK+ Development concerning signals and callback functions as suggested (see below) but am still getting this error: Hello, I think you used wrong

GTK3 bindings for Nim language available

2015-03-30 Thread Stefan Salewski
We have some basic Nim GTK3 bindings available now, see https://github.com/StefanSalewski?tab=repositories Of course this note is only for smart people interested in Nim language (http://nim-lang.org/) and GTK3 development. The bindings are not really high level -- there is no Nim

Re: gtk_widget_queue_draw_area much slower in gtk3 than gtk3

2015-03-30 Thread Stefan Salewski
On Sun, 2015-03-29 at 22:16 -0700, dmg wrote: Hi there, I am one of the developers of xournal. Hello, if I understand correctly, your problem is, that shapes drawn on screen are not smooth. I can remember a related thread, see

Re: gtk_widget_queue_draw_area much slower in gtk3 than gtk3

2015-03-30 Thread Stefan Salewski
On Mon, 2015-03-30 at 13:22 +0100, Emmanuele Bassi wrote: * use the event history for the devices you're interested in * disable motion event compression on the GdkWindow that you're using to detect events, and build up the positions you will then draw Other painting applications opted for

Re: Gtk::BuilderError Invalid object type GtkSourceView

2015-03-18 Thread Stefan Salewski
On Wed, 2015-03-18 at 20:39 -0400, Scott Talbert wrote: Basically, GTK assumes that its libraries are loaded into the global symbol namespace. I'm guessing that Nim is probably loading them into a local namespace (RTLD_LOCAL) and thus when GtkBuilder tries to load GtkSourceView, it can't

Re: Gtk::BuilderError Invalid object type GtkSourceView

2015-03-18 Thread Stefan Salewski
explanation for the observed behavior. I will see if I can specify RTLD_GLOBAL -- but maybe there are disadvantages involved, so manually registering the GObject which do not belong to the GTK core before asking the builder to process the xml file may be sufficient. Best regards, Stefan Salewski

Gtk::BuilderError Invalid object type GtkSourceView

2015-03-18 Thread Stefan Salewski
Hello, in the last months I was working on GTK3 bindings for the Nim programming language (http://nim-lang.org/). Now that they are nearly complete (https://github.com/StefanSalewski?tab=repositories) I tried to make some example code. One is the gtksourceview test-completion.c example, currently

gdk_pixbuf_new_from_file_utf8 -- where it is defined?

2015-01-02 Thread Stefan Salewski
I am working on GTK3 wrappers/bindings for Nim language. For gdk-pixbuf-2.31.2 there seems to exist a function gdk_pixbuf_new_from_file_utf8 which is called in gdk-pixbuf-io.c: retval = gdk_pixbuf_new_from_file_utf8 (utf8_filename, error); and referenced in gdk-pixbuf-core.h: #define

Re: gdk_pixbuf_new_from_file_utf8 -- where it is defined?

2015-01-02 Thread Stefan Salewski
On Fri, 2015-01-02 at 16:29 -0800, Jasper St. Pierre wrote: On Fri, Jan 2, 2015 at 4:16 PM, Stefan Salewski m...@ssalewski.de wrote: I am working on GTK3 wrappers/bindings for Nim language. You sort of answered your own question here :) Think about what happens when this #define

GtkSourceView -- is scrolling to exact position working finally for latest GTK3?

2014-11-27 Thread Stefan Salewski
I would like to port the Aporia Nim-(rod) editor from GTK2 to GTK3 -- have already done large part of latest necessary wrappers involved, as glib, cairo, gdk, gtk... (nim-cairo is already at github because I got some requests to put the files there, other will follow, see

Re: Accuracy of motion events

2014-09-02 Thread Stefan Salewski
On Tue, 2014-09-02 at 11:01 +1000, Lex Trotman wrote: As stated before, motion events are only *delivered* per frame, all the compress flag does is set it to deliver the motion as one event per frame or multiple events per frame. If you have compress true (as above) only one event is

Re: Accuracy of motion events

2014-09-01 Thread Stefan Salewski
On Mon, 2014-09-01 at 14:12 +0200, ax487 wrote: Ok, as far as I am concerned disabling the event compression solves the problem. In my case I have optimized the drawing routines such that the time needed to process a motion event (i.e. to draw a new segment onto the canvas) is 1ms. Since my

Re: Accuracy of motion events

2014-09-01 Thread Stefan Salewski
On Mon, 2014-09-01 at 23:29 +0200, ax487 wrote: Just as an illustration: http://picpaste.com/event-DmCNqCHZ.png It does make a difference :) Yes -- so my assumption was that you get events with better time resolution than 10 ms without compression. So I hacked together a small test in plain C.

How to get Gtk::Stock::APPLY icon back in 3.12?

2014-08-31 Thread Stefan Salewski
I have used the green checkmark icon button up to 3.10 release. (in toolbar,http://www.ssalewski.de/PetEd.html.en ) Since 3.12 it is not available any more, for a fast fix I replaced #@minor_grid_select = Gtk::RadioToolButton.new(@major_grid_select, Gtk::Stock::APPLY) with these two lines

Re: How to get Gtk::Stock::APPLY icon back in 3.12?

2014-08-31 Thread Stefan Salewski
On Sun, 2014-08-31 at 16:10 +0200, Stefan Salewski wrote: I have used the green checkmark icon button up to 3.10 release. (in toolbar,http://www.ssalewski.de/PetEd.html.en ) Since 3.12 it is not available any more, for a fast fix I replaced #@minor_grid_select = Gtk::RadioToolButton.new

Re: Accuracy of motion events

2014-08-29 Thread Stefan Salewski
On Fri, 2014-08-29 at 16:58 -0500, richard boaz wrote: you can find a discussion and one possible solution of this in a previous thread: https://mail.gnome.org/archives/gtk-list/2011-July/msg00059.html I think unfortunately the solution is not that easy... I have a similar problem with my

Re: Accuracy of motion events

2014-08-29 Thread Stefan Salewski
window basis: https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-set-event-compression your application should benefit from this API. Sounds great, thanks. Can not test with Ruby currently, it is 3.12, which is not available yet for Ruby bindings. Stefan Salewski

Re: Accuracy of motion events

2014-08-29 Thread Stefan Salewski
On Sat, 2014-08-30 at 02:18 +0200, Stefan Salewski wrote: Sounds great, thanks. Can not test with Ruby currently, it is 3.12, which is not available yet for Ruby bindings. Just for fun I have tested with GTK 3.12 for Nimrod, but I can not see an effect of event compression... (It was necessary

Re: Accuracy of motion events

2014-08-29 Thread Stefan Salewski
On Sat, 2014-08-30 at 03:46 +0200, Stefan Salewski wrote: Just for fun I have tested with GTK 3.12 for Nimrod, but I can not see an effect of event compression... (It was necessary to put set_event_compression() after window.show_all(), seem that Ruby bindings ensure that a Gdk window

Re: Label with fixed size

2014-08-28 Thread Stefan Salewski
On Thu, 2014-08-28 at 18:14 +0200, rastersoft wrote: Hi all: I need to create a label with a fixed size in pixels, and if the text is too large, elipsize it. Is it possible? I tried nearly all kind of ways and tricks (even capturing the size-allocate signal and adjust there the

Re: Drawing an insensitive widget

2014-08-08 Thread Stefan Salewski
On Fri, 2014-08-08 at 00:11 +0200, ax487 wrote: My point is the following: when the widget is insensitive, it should look different to indicate this fact. Specifically the widget should look greyed out in some sense. The question is how to achieve this effect for a custom widget. Did you read

Re: GTK application scene drawing

2014-08-03 Thread Stefan Salewski
On Sun, 2014-08-03 at 11:20 +0530, Gurjot Singh Bhatti wrote: Your project looks nice. Is it open-source? Sure. It started as a proof of concept, to test my user interface ideas, and how fine Ruby, Cairo and GTK works together. Generally I am satisfied, but in the last years I have done

Re: GTK application scene drawing

2014-08-03 Thread Stefan Salewski
On Sun, 2014-08-03 at 16:13 +0200, Stefan Salewski wrote: A similar very basic library in C should be available somewhere OK -- found it. It was this thread https://mail.gnome.org/archives/gtk-app-devel-list/2014-June/msg00011.html and this was a reply mentioning the library https

Re: GTK application scene drawing

2014-08-02 Thread Stefan Salewski
On Sun, 2014-08-03 at 00:21 +0530, Gurjot Singh Bhatti wrote: This may have been asked many times already Yes, in the last years a have found a few similar questions with google, in most cases not with VERY helpful replies. I myself have used cairo with a GTK drawing area for my schematics

GdkAtom. missing Asterisks * in Gdk3 Documentation?

2014-05-08 Thread Stefan Salewski
gtk+-3.12.1/gdk $ grep GdkAtom *.h gdktypes.h:typedef struct _GdkAtom*GdkAtom; https://developer.gnome.org/gdk2/stable/gdk2-Properties-and-Atoms.html#GdkAtom typedef struct _GdkAtom*GdkAtom; https://developer.gnome.org/gdk3/stable/gdk3-Properties-and-Atoms.html#GdkAtom

Re: GtkGrid sets no expand with homogeneous

2014-04-02 Thread Stefan Salewski
On Wed, 2014-04-02 at 19:40 +0900, Takao Fujiwara wrote: I'd like to port GtkTable to GtkGrid but my cells show big widths. Have you considered this: https://developer.gnome.org/gtk3/stable/GtkGrid.html Description GtkGrid is a container which arranges its child widgets in rows and columns. It

Re: replacement for GtkImageMenuItem

2014-03-23 Thread Stefan Salewski
. But is it OK for smart-phone kids? Well, if other operating systems will reduce images also, they may accept it. Best regards, Stefan Salewski ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: Gtk Graph drawing

2014-03-11 Thread Stefan Salewski
On Sat, 2014-03-08 at 16:18 +, Bill Vyzas wrote: Hi all, I want to draw some graphs and bar charts for some data I have and I am searching for any library available. I am using gtk+ with C. Do you have something in mind? A research on the internet didn't give any satisfactory results,

Re: Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Stefan Salewski
On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote: I have constructed the following minimal example, Yes indeed, https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-events This function must be called while a widget is unrealized.

Re: Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Stefan Salewski
On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote: gtk_widget_show_all (window); GdkWindow *win = gtk_widget_get_window(layout); g_print(win is %p initial mask 0x%x\n, win, gdk_window_get_events (win)); gdk_window_set_events (win, gdk_window_get_events (win) |

Re: Porting GTK+ app from defining custom stock items to using GtkIconTheme

2014-03-02 Thread Stefan Salewski
On Sun, 2014-03-02 at 12:52 +0100, Balint Reczey wrote: Hi, I'm trying to move Wireshark from using the deprecated gtk_toggle_tool_button_new_from_stock(), etc. API to use gtk_toggle_tool_button_new() and friends instead [1]. Wireshark defines many custom icons icons, but they can't be

Re: GtkLabel foreground color

2014-03-02 Thread Stefan Salewski
On Sun, 2014-03-02 at 11:55 +0800, Wiky wrote: I try to change the GtkLabel foreground color using following code: PangoAttrList *attrList = pango_attr_list_new(); pango_attr_list_insert(attrList, pango_attr_foreground_new(255, 0, 0));

Re: Porting GTK+ app from defining custom stock items to using GtkIconTheme

2014-03-02 Thread Stefan Salewski
specify not the desired, but the actual size. See bottom most answer here: http://stackoverflow.com/questions/12521134/gtktoolbutton-with-custom-icon-but-of-stock-icon-size Best regards, Stefan Salewski ___ gtk-list mailing list gtk-list@gnome.org https

Re: TreeView/ListStore reordering by DND

2014-03-01 Thread Stefan Salewski
On Sat, 2014-03-01 at 02:08 +0100, Stefan Salewski wrote: On Sat, 2014-03-01 at 00:42 +, Lance Capser (lmcapser) wrote: The row_inserted and row_deleted signals in the GtkTreeModel are each called with the GtkTreePath of the row in question: That is true. But for my test

Re: TreeView/ListStore reordering by DND

2014-03-01 Thread Stefan Salewski
like row_inserted value = (null) row ins = 4 row_changed value = Capote row cha = 4 row_deleted row del = 1 which indicates a sequence insert-change-delete. At least I am understanding now what is going on and I should be able to use it in that way in my application. Thanks, Stefan Salewski

TreeView/ListStore reordering by DND

2014-02-28 Thread Stefan Salewski
I have a simple list display built of a ListView and ListStore as described in https://developer.gnome.org/gtk3/stable/GtkTreeView.html I used gtk_tree_view_set_reorderable () to allow the user to reorder the list by grabbing rows and moving it up or down. From

Re: TreeView/ListStore reordering by DND

2014-02-28 Thread Stefan Salewski
On Sat, 2014-03-01 at 00:42 +, Lance Capser (lmcapser) wrote: The row_inserted and row_deleted signals in the GtkTreeModel are each called with the GtkTreePath of the row in question: That is true. But for my test with a list with only two rows I got numbers from 0 to 2 from

Re: Notebook widget with unequal page sizes in Scrolled_Window

2014-02-19 Thread Stefan Salewski
On Mon, 2014-02-17 at 16:00 +0100, Stefan Salewski wrote: One solution may be: Do not put the whole notebook widget into a scrolled_window, but put each page of the notebook into its own scrolled_window. Will that work, and is that the the recommended way? Seems to work fine indeed -- I simply

Notebook widget with unequal page sizes in Scrolled_Window

2014-02-17 Thread Stefan Salewski
total...) Or is there a better way? (For label widgets, I may consider ellipsize property, which cuts names if they are too long for the visible area, but I am looking for a general best approach with works fine with all kind of widgets in pages of notebooks) Best regards, Stefan Salewski

Widgets margins relative to character size (high DPI issue)

2014-02-10 Thread Stefan Salewski
. (Unfortunately I am not notified when user changes font size in gnome control center...) Are there betters solution? I.e direct access to users default font size in x and y pixels? Best regards, Stefan Salewski ___ gtk-list mailing list gtk-list@gnome.org

Re: Widgets margins relative to character size (high DPI issue)

2014-02-10 Thread Stefan Salewski
) it was my impression that there is no High-DPI infrastructure for GTK3 yet -- seem that google gave me only old outdated discussions... Best regards Stefan Salewski ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk

Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-19 Thread Stefan Salewski
On Fri, 2014-01-17 at 17:26 -0500, Jasper St. Pierre wrote: It doesn't seem like there's anything wrong with using the deprecated methods, then. File a bug with the Ruby GTK3 bindings, and continue using window.get_pointer(); for now would be my suggestion. I sent a message to the Ruby-Gnome2

GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
to the pointing device, which is not available from keyboard event. Or in other words: In GTK3-demo there is an Drawing_Area application where we can draw when we held down the left mouse key: How can we draw a circle at the current mouse position when we press 'C' key? Best regards, Stefan

Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
, i.e. delete object under mouse cursor when 'X' or 'DEL' key is pressed. That is much faster than context menu or button clicks. And professionals prefer working fast. Best regards, Stefan Salewski ___ gtk-list mailing list gtk-list@gnome.org https

Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
by https://developer.gnome.org/gdk2/stable/GdkDisplay.html#gdk-display-get-pointer may give me the current mouse coordinates of pointer in my drawing area? Best regards, Stefan Salewski ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org

Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
On Fri, 2014-01-17 at 17:18 -0500, Paul Davis wrote: you can track where the mouse is with enter/leave events, and there are often good reasons for wanting to do that anyway. That should not work well for CAD applications. We have a large drawing area, where we draw objects using cairo

Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
On Fri, 2014-01-17 at 17:11 -0500, Jasper St. Pierre wrote: Yeah. This is to maintain ABI compatibility. Technically, events have private internal data, and you can use gdk_event_get_device(); to get the keyboard device for a key event. This isn't documented very well; we should perhaps

Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
() raises an exception and aborts my program. I will contact the authors of the Ruby bindings. Best regards Stefan Salewski ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: Mouse events on a Cairo Context

2013-07-01 Thread Stefan Salewski
On Mon, 2013-07-01 at 17:42 +0200, Borja Mon Serrano wrote: The problem with (4) is dragdrop. I think it could be very difficult to deal with it, so I'm going to try the third solution, with goocanvasmm. Do you know any example of use of goocanvasmm? Yes, dragdrop may be not very easy.

Re: Hiding scrollbars for GtkScrolledWindow

2013-06-09 Thread Stefan Salewski
Stefan Salewski ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Hiding scrollbars for GtkScrolledWindow

2013-06-07 Thread Stefan Salewski
On Fri, 2013-06-07 at 10:13 +0200, Felix Möller wrote: Hey there, I'm trying to use a GtkScrolledWindow with the capability of scrolling, but not displaying scroll bars GTK3 or GTK2? Called from C or Python? This may help:

Re: Hiding scrollbars for GtkScrolledWindow

2013-06-07 Thread Stefan Salewski
On Fri, 2013-06-07 at 19:05 +0200, Felix Möller wrote: Sorry for being unprecise. GTK3 in combination with C. If I set the scrollbars' policy to never, the scrollbar is not displayed, but the window is not as small as it should be, but as big as its content. I want it to have the same size

Re: Handle Enter pressing at GtkEntry

2012-10-03 Thread Stefan Salewski
On Wed, 2012-10-03 at 20:18 +0200, David Nečas wrote: On Wed, Oct 03, 2012 at 09:42:24AM -0500, Yury Alyaev wrote: What is the right way to catch Enter pressing at the end of the text input to GtkEntry. The obvious way is conecting the callback to the activate signal, but for some reason

Re: learning GtkLayout, drawing a widget on it.

2012-08-20 Thread Stefan Salewski
On Mon, 2012-08-20 at 03:09 +0200, ben wrote: Hello list, It may be a basic and common question, but i dare to ask... I began to write a custom widget, subclassing GtkDrawingArea, An alternative approach may be to just use a GTK drawing area with cairo drawing operations as I did

Re: Hello, some of us still care about memory usage

2012-07-31 Thread Stefan Salewski
On Mon, 2012-07-30 at 18:48 -0400, Paul Davis wrote: had i started today, i would have used pygtk for the GUI. and if not that, I used ruby-gtk2 recently (http://www.ssalewski.de/PetEd.html.en) -- very fine GTK2 bindings including cairo support and a nice tutorial.

Re: Gtk / Cairo Question

2012-07-13 Thread Stefan Salewski
On Thu, 2012-07-12 at 18:12 -0700, Thomas Dineen wrote: Gentle People: I am planning a graphical application for plotting Stock Market related price and volume data and I have been experimenting with GTk and Cairo. I have been going through the tutorials on both the GTK and Cairo

GtkComboBoxTextEntry for input of multi-digits numbers

2012-03-20 Thread Stefan Salewski
enforce discrete, non equidistant values like 100, 50, 25, 10 when clicking on the arrows. I have found some people asking similar questions, but no answer. Best regards, Stefan Salewski ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org

Re: GtkComboBoxTextEntry for input of multi-digits numbers

2012-03-20 Thread Stefan Salewski
On Tue, 2012-03-20 at 19:30 -0400, Paul Davis wrote: On Tue, Mar 20, 2012 at 7:13 PM, Stefan Salewski m...@ssalewski.de wrote: I was going to use http://developer.gnome.org/gtk3/stable/GtkComboBoxText.html with text entry. The problem is, that I have to connect to changed signal, which

Re: GtkComboBoxTextEntry for input of multi-digits numbers

2012-03-20 Thread Stefan Salewski
On Tue, 2012-03-20 at 19:30 -0400, Paul Davis wrote: On Tue, Mar 20, 2012 at 7:13 PM, Stefan Salewski m...@ssalewski.de wrote: I was going to use http://developer.gnome.org/gtk3/stable/GtkComboBoxText.html with text entry. The problem is, that I have to connect to changed signal, which

Re: GtkDrawingArea size

2012-03-07 Thread Stefan Salewski
On Wed, 2012-03-07 at 09:44 -0900, Christopher Howard wrote: X Bump. I'm trying to look through some other projects to see how this is done, but I would appreciate it if anyone happens to know of the top of their head. I guess you can have a drawingarea of fixed size if you put it in a

Re: TreeView tooltip use immediate control

2012-02-04 Thread Stefan Salewski
On Sat, 2012-02-04 at 00:01 +0100, David Nečas wrote: On Fri, Feb 03, 2012 at 11:36:13PM +0100, Stefan Salewski wrote: How can I immediately activate or deactivate tooltips for all TreeView widgets on user action, i.e. menu operation. You can enable/disable all tooltips using the gtk

TreeView tooltip use immediate control

2012-02-03 Thread Stefan Salewski
emit an event myself, when user wants to toggle tooltip display? I have no idea currently. Thanks, Stefan Salewski ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: TreeView tooltip use immediate control

2012-02-03 Thread Stefan Salewski
On Sat, 2012-02-04 at 00:01 +0100, David Nečas wrote: On Fri, Feb 03, 2012 at 11:36:13PM +0100, Stefan Salewski wrote: How can I immediately activate or deactivate tooltips for all TreeView widgets on user action, i.e. menu operation. You can enable/disable all tooltips using the gtk

GTK+ TreeView: Different CellRenderers on the same Column

2011-10-17 Thread Stefan Salewski
it difficult to use the above solution.) Is there a better solution or even an example available? Best Regards, Stefan Salewski ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK+ TreeView: Different CellRenderers on the same Column

2011-10-17 Thread Stefan Salewski
editor [2], [3]. Thanks, that sound very promising and not too difficult. I was aware that I can pack multiple renderer in the same tree view column, but I was not aware that I can hide them totally using a cell_data_func. Best regards, Stefan Salewski

Re: Cairo, Gtk+, Gdk GdkPixbuf -- making a pixel-based backing store for vector graphics

2011-06-14 Thread Stefan Salewski
On Tue, 2011-06-14 at 14:30 -0600, James Tappin wrote: I would like to be able to make a code that draws some (possibly very complex) vector graphics, A better place for asking may be the cairo mailing list? At least there was some discussion about such tasks in the past. One recommended way

Re: Window styles

2011-05-26 Thread Stefan Salewski
On Thu, 2011-05-26 at 18:14 +0100, John Emmas wrote: Using gtk_window_new() will create a window which the user can re-size and maximize. I don't want my user to be able to perform these actions. In my old Win32 days I'd achieve it by creating a window, then removing the styles WS_THICKFRAME

How to avoid POINTER_MOTION events for not active windows?

2011-03-10 Thread Stefan Salewski
motion events whenever the mouse pointer is over/in my drawing area, even when the window containing that drawing area is not active. This was surprising for me. I want events only when the window is the active one. What is the correct method to achieve that behavior? Thanks, Stefan Salewski

Re: Overline for pango text?

2010-09-24 Thread Stefan Salewski
On Thu, 2010-09-23 at 15:15 +0200, Stefan Salewski wrote: Hello, I have to draw some simple technical diagrams, I am using cairo (from Ruby rcairo) with interactive GTK drawing-area and PNG, PDF export. Currently I am using cairos toy text for text labels. My intention was to using pango

<    1   2   3