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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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,
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
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
,
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
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
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
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
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
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
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
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
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
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
43 matches
Mail list logo