Re: TreeView - set border on individual cells

2019-04-09 Thread Eric Cashon via gtk-app-devel-list
I looked into this a little more. It looks like using an overlay is the easiest solution that I could find. You can override the render function of the cell renderer but then you will probably need all the code in the text cell renderer. This isn't too bad since the text cell renderer is

Re: TreeView - set border on individual cells

2019-04-06 Thread Eric Cashon via gtk-app-devel-list
I see gtk_cell_renderer_render() in the documentation and it has a cairo_t to draw with. I haven't tried to subclass from a treeview and override the rendering. Something I should probably figure out. Do you know of an example of doing something like this in C? Maybe I can put together a

Re: TreeView - set border on individual cells

2019-04-06 Thread Emmanuele Bassi via gtk-app-devel-list
On Sat, 6 Apr 2019 at 20:15, wrote: > The second cairo_t is used so that the rectangle can be lined up to the > cell. If I use the cairo_t in the "draw" callback then the rectangle > doesn't line up. > You're still using: 1. the wrong window to draw on 2. deprecated API 3. a slow rendering

Re: TreeView - set border on individual cells

2019-04-06 Thread Eric Cashon via gtk-app-devel-list
Hi Emmanuele, The second cairo_t is used so that the rectangle can be lined up to the cell. If I use the cairo_t in the "draw" callback then the rectangle doesn't line up. Eric ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: TreeView - set border on individual cells

2019-04-06 Thread Emmanuele Bassi via gtk-app-devel-list
On Sat, 6 Apr 2019 at 19:05, Eric Cashon via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > static gboolean draw_rectangle(GtkWidget *tree_view, cairo_t *cr, gpointer > data) > { > GtkTreePath *path=gtk_tree_path_new_from_indices(row_g, -1); > > g_print("Draw Rectangle %i

Re: TreeView - set border on individual cells

2019-04-06 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, I gave what you said a try and it looks to work well enough. Then, how do you get a box around a selected cell. It seems to me if you let the built in renderer do it's thing and then get a cairo_t to just draw a rectangle after, it should work, right? OK, a bit of a hack but it

Re: TreeView - set border on individual cells

2019-04-05 Thread Mike Martin via gtk-app-devel-list
On Fri, 5 Apr 2019, 12:36 Mike Martin, wrote: > Update, I worked out how to get rid of highlight > > 1 treeview->set selection mode(none) > 2 treeview->signal_connect(row_activated =>sub{ > Treeview->set_cursor_on_cell(path,column,cell,true) > } > ) > > Not exact code, but this is process that

Re: TreeView - set border on individual cells

2019-04-05 Thread Mike Martin
Update, I worked out how to get rid of highlight 1 treeview->set selection mode(none) 2 treeview->signal_connect(row_activated =>sub{ Treeview->set_cursor_on_cell(path,column,cell,true) } ) Not exact code, but this is process that worked for me Would still be useful if I could find out about

Re: TreeView - set border on individual cells

2019-04-05 Thread Tilo Villwock via gtk-app-devel-list
Am Donnerstag, den 04.04.2019, 23:04 +0100 schrieb Mike Martin via gtk- app-devel-list: > Is this possible? > > I did originally plan to have certain cells have a background colour > to > emphasize that there is a value to change. However as soon as the row > is > selected this is all wiped out

TreeView - set border on individual cells

2019-04-04 Thread Mike Martin via gtk-app-devel-list
Is this possible? I did originally plan to have certain cells have a background colour to emphasize that there is a value to change. However as soon as the row is selected this is all wiped out by the highlight from selected row So is it possible to set the borders on a cell by cell basis, all I

Re: border-color adds a new border in GtkScrolledWindow (GTK 3.18) ?

2016-02-18 Thread Giovanni Panozzo
It seems to be a "undershoot" appearing when I set the background-color on the GtkScrolledWindow. Whith the following workaround, the undershoot hides again: #myscrolledwindow { background-color: green; } #myscrolledwindow.undershoot { background: none; } But: - what

border-color adds a new border in GtkScrolledWindow (GTK 3.18) ?

2016-02-15 Thread Giovanni Panozzo
of GTK, all worked fine: In GTK 3.18 (which means: current Arch and immediate future Ubuntu 16.04), a strange border has appeared: (here in green) The border only appears when both conditions are true: 1. applying the background color with following CSS: #myscrolledwindow { background

Re: border-color adds a new border in GtkScrolledWindow (GTK 3.18) ?

2016-02-15 Thread Giovanni Panozzo
I'm sorry, there are at least two typos/mistakes in my previous email. 1) the correct subject should be "background-color adds a new border in...". Nothing related to border-color. 2) And, in the source code, you must remove the extra "x" in "xbackground-c

Re: GtkFrame has no frame border drawn?

2015-08-11 Thread Richard Shann
this involving setting up styles. Just because you expect a border, Well, I didn't expect a border until I read the documentation: The frame widget is a Bin that surrounds its child with a decorative frame and an optional label. then I expected a decorative frame surrounding the widget. I guess

Re: GtkFrame has no frame border drawn?

2015-08-10 Thread Chris Vine
the typographical appearance. Just because you expect a border, it does not mean your expectations are correct or are the only possible outcome. For instance, using a border around a GtkFrame has been deprecated in the GNOME HIG since the 2.x era, almost a decade ago: https

Re: GtkFrame has no frame border drawn?

2015-08-10 Thread Chris Vine
On Mon, 10 Aug 2015 09:05:50 +0100 Emmanuele Bassi eba...@gmail.com wrote: Hi; the theme is responsible for drawing the frame. The old Windows theme engine shows a frame; the default GTK+ theme (Adwaita) does not. The original Adwaita theme did not show frames. More recent versions (for

Re: GtkFrame has no frame border drawn?

2015-08-10 Thread Emmanuele Bassi
. Anyway, as I said: it's entirely up to the theme; GTK+ will not explicitly draw a rectangle by itself, but will use the frame's CSS border specified in the theme. Ciao, Emmanuele. -- https://www.bassi.io [@] ebassi [@gmail.com] ___ gtk-app-devel-list

Re: GtkFrame has no frame border drawn?

2015-08-10 Thread Richard Shann
On Mon, 2015-08-10 at 09:05 +0100, Emmanuele Bassi wrote: Hi; the theme is responsible for drawing the frame. The old Windows theme engine shows a frame; the default GTK+ theme (Adwaita) does not. Thank you for explaining the problem. As a developer of a free software program using GTK+ I

Re: GtkFrame has no frame border drawn?

2015-08-10 Thread Emmanuele Bassi
what is being grouped by the frame. Crippling is a strong word, and one that I don't think applies. Grouping can be achieved by white space, for instance. Or by changing the background color. Or by changing the typographical appearance. Just because you expect a border, it does not mean your

GtkFrame has no frame border drawn?

2015-08-09 Thread Richard Shann
I've recently noticed that the GtkFrames in my application have lost the line drawn around the frame - the text is present but not the line. I see that in the documentation file:///usr/share/doc/libgtk-3-doc/gtk3/ch03.html the widget is illustrated without any line too. I am building and running

Modifying the border color of a GtkEntry

2014-05-21 Thread Pierre Wieser
Hi all, In the Gtk3 application I am writing, I'd wish show to the user the erroneous fields by setting the border color of the GtkEntry widgets to a specific (e.g. red) color. What I've done: - allocate a new CSSProvider, loads my .css file and try to apply it: void my_utils_entry_set_valid

boxes have no border

2009-02-16 Thread Kövesdi György
Hi, I use wxGTK an I found that static boxes have no border. That border can be set in the GTK, but I don't know how. e.g.: in the gtk-demo, the button boxes shows me some boxes of this kind, but no borders. Thanx in advance K. Gy. ___ gtk-app-devel

Re: change the Dashed border

2009-01-14 Thread winc03_sub
message -- From: zhenghe zhang zhenghe.zh...@gmail.com Hi all Now I have a problem, could you help me? Thank you. As followed; There is a button, and the button obtains the focus, there is a Dashed border on the button, Now I want to change it to solid line, but I

How to make a widget with border?

2008-09-08 Thread Lazy Fox
I want to make a widget with a border, and the border's color and width can be changed at the run-time. How to do this? And which is the best solution? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

I need a dialog with absolutely no border

2007-06-20 Thread Kevin Lambert
I am using Glade-3 to create a dialog which only has a button and that button has an image assigned to it. What I need is for the image to take up the entire screen without a border. What I am finding is that GtkDialog seems to force a 2-3 pixel border around the entire image. Is there any way

How to set the window widget's border to zero

2006-08-29 Thread chao yeaj
Hello everyone You know, the gtk_container_set_border_width function can set the border's width of container but ,when i use this function to set my application's main window's border to zero , I failed I want my main window has no border ,how to achieve this ? I

Re: How to set the window widget's border to zero

2006-08-29 Thread Yeti
On Tue, Aug 29, 2006 at 02:31:05PM +0800, chao yeaj wrote: You know, the gtk_container_set_border_width function can set the border's width of container but ,when i use this function to set my application's main window's border to zero , I failed

Hide focus border

2006-03-17 Thread Hannes Mayr
Hello, is there a way to hide or to make invisible the dotted focus border? I'm developing an application for a small display on an embedded board and there is no mouse pointer, just a keyboard with several buttons to move the selection up and down in a treeview. If I set the selection

Re: Hide focus border

2006-03-17 Thread Justin Clift
Hannes Mayr wrote: Hello, is there a way to hide or to make invisible the dotted focus border? I'm developing an application for a small display on an embedded board and there is no mouse pointer, just a keyboard with several buttons to move the selection up and down in a treeview. If I set

Re[2]: Border

2005-09-19 Thread Alexander S.Kresin
Monday, September 19, 2005, 12:00:41 AM, John Cupitt [EMAIL PROTECTED] wrote: JC If you want to draw a focus rectangle, you can use gtk_paint_focus() JC in _expose(). Thanks for the tip ! And yet another question: are there any functions, which draws the standard header of a top

Re: Re[2]: Border

2005-09-19 Thread John Cupitt
On 9/19/05, Alexander S.Kresin [EMAIL PROTECTED] wrote: And yet another question: are there any functions, which draws the standard header of a top window, so I could draw such a header for my container widget ? No, sorry :-( The window title bar and margins are not drawn by GTK,

Border

2005-09-18 Thread Alexander S.Kresin
Hi All, Is it possible to tell GTK to draw a border around a container or any other widget, or I must draw it myself, with gdk_draw_rectangle() for example ? Regards, Alexander Kresin http://kresin.belgorod.su ___ gtk-app-devel-list mailing

Re: Border

2005-09-18 Thread Przemysław Sitek
Hi, Is it possible to tell GTK to draw a border around a container or any other widget, or I must draw it myself, with gdk_draw_rectangle() for example ? Use GtkFrame -- Przemys³aw Sitek ___ gtk-app-devel-list mailing list gtk-app-devel

Re: Border

2005-09-18 Thread John Cupitt
, NULL ); in your size_allocate/size_request to allocate extra space for the focus indicator. I guess grepping for gtk_paint_focus() in the gtk sources would give lots of samples. On 9/18/05, Alexander S.Kresin [EMAIL PROTECTED] wrote: Is it possible to tell GTK to draw a border around

Hide the Border of Notebook and scrolled window widget

2005-09-06 Thread sadhees kumar
hi Friends, I want to hide the border of notebook and scrolled window. For that i tried with the following function, gtk_notebook_set_show_border(notebook,FALSE); but, i didn't get the success. Is there any possibility to hide those borders? Thanks in advance Regards, K.Sadheeskumar

Re: Hide the Border of Notebook and scrolled window widget

2005-09-06 Thread Stefan Kost
Hi, sadhees kumar wrote: hi Friends, I want to hide the border of notebook and scrolled window. For that i tried with the following function, gtk_notebook_set_show_border(notebook,FALSE); but, i didn't get the success. Is there any possibility to hide those borders? Thanks in advance

Re: scroll window with no border

2005-08-17 Thread Yogesh M
found the solution, the ugly border comes from the gtk_viewport, So first wrap the widget with the viewport and remove the border for it. then wrap viewport with scroll window and remove the border[default removed], now you get a scroll window with view port and no kind of border. where

Having a border for tree view

2005-07-18 Thread Yogesh M
When I display the tree view,it doesnt contain a border, it has a white bg but no border. How to draw border. Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs

Re: Having a border for tree view

2005-07-18 Thread Tim Müller
On Monday 18 July 2005 09:25, Yogesh M wrote: When I display the tree view,it doesnt contain a border, it has a white bg but no border. How to draw border. Put it in a GtkScrolledWindow (with gtk_container_add()). Cheers -Tim ___ gtk-app-devel-list

Re: How to draw a custom border across multiple cells in TreeView?

2005-07-08 Thread Stefan Kost
it. Stefan Hi, I have a simple text table with one short string in each cell. I display this table by using TreeView/ListStore, and I would like to draw a custom border of different color around several cells within the same row and spawning multiple columns, much in the same way this is done

Re: How to draw a custom border across multiple cells in TreeView?

2005-07-07 Thread Nickolai Dobrynin
and the just draw your stuff over it. Stefan Hi, I have a simple text table with one short string in each cell. I display this table by using TreeView/ListStore, and I would like to draw a custom border of different color around several cells within the same row and spawning multiple

Re: mouse motion events after pointer reached screen border

2005-07-01 Thread Luca Cappa
GTK emit mouse motion events after the pointer reached the screen border? Thanks for your help, d ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

mouse motion events after pointer reached screen border

2005-06-10 Thread David Siegel
Hi, I want to pan a bitmap in a drawing area. But I don't want the maximum pan distance to be limited by the screen size. Is there any way to make GTK emit mouse motion events after the pointer reached the screen border? Thanks for your help, d