Patch updated, made against v.7.4.1362.

This patch contains the code which gets GtkForm to draw the background by
itself.

I though the black border issue was caused by the fact that GtkForm didn't
draw the background by itself (GTK+ is supposed to do that for us, as seen
in previous patches).  So I don't think, as opposed to my word in a
previous mail, this patch will fix the issue.

Instead, it could give us a clue about what happened to Mrius's gvim.

Marius, could you add the the following to the very bottom of your
$HOME/.config/gtk-3.0/gtk.css (change it in accordance with your system if
that directory is not for the one your gtk setting files reside) and then
start gtk3 vim?
```
.gtk-form {
    background-color: red;
}
```
With this test, we could see which widget, GtkForm or GtkDrawingArea, is
responsible for the black border.

In addition, could you try your gvim with other colorscheme values?   I
want to know where the block color comes from --- the foreground color e've
specified, the border color Vim itself doesn't specify, or the default
background color of the window when it isn't specified in client code.

Sorry about imposing on you much, but the issue is another example I cannot
reproduce.  I beg your understanding.

Best regards,
Kazunobu Kuriyama


2016-02-19 23:11 GMT+09:00 Kazunobu Kuriyama <[email protected]>:

> 2016-02-19 22:37 GMT+09:00 Marius Gedminas <[email protected]>:
>
>> I use Adwaita, which is the default GNOME 3 theme (and I think also the
>> default GTK+ 3 theme).
>>
>
> Hmm.  Then the theme has nothing to do with the border draw.  And Vim
> contains no code for drawing border or specifying the drawing area offset
> to the parent GtkForm.
>
> Do you use other applications which use GtkDrawingArea and draw the border?
>
> The usual keys (Ctrl+Shift+I/Ctrl+Shift+D) do not open the GTK+
>> inspector in gvim.
>>
>> Curiously: if I run 'GTK_DEBUG=interactive gvim' and then right-click,
>> the border does not turn black.
>>
>
> Did you mean the GTK+ of your system was somehow unstable, or gvim didn't
> behave like other GTK+ apps?
>
>>
>> Anyway, I've now realized that the GTK+ inspector apparently doesn't
>> show the CSS rules that come from the theme, and I'm not quite sure
>> where to check what.
>>
>
> OK, you mean you are using GTK+ with the default settings and haven't done
> anything with files in $HOME/.config/gtk-3.0, right?
>
> To make sure, could you try the following program and check how it
> responds against a right click on the drawing area window?
>
> /*
>  * main.c - drawing area test program
>  *
>  * To compile: gcc `pkg-config --cflags --libs gtk+-3.0` main.c
>  */
>
> #include <gtk/gtk.h>
>
> int main(int argc, char *argv[])
> {
>     GtkWidget *window;
>     GtkWidget *da;
>     gtk_init(&argc, &argv);
>     window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
>     g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
>     da = gtk_drawing_area_new();
>     gtk_container_add(GTK_CONTAINER(window), da);
>     gtk_widget_show_all(window);
>     gtk_main();
>     return 0;
> }
>
> Regards,
> Kazunobu
>
>>
>> Marius Gedminas
>> --
>> I have a truly marvellous patch that fixes the bug which this
>> signature is too narrow to contain.
>>                 -- Avi Kivity
>>
>> --
>> --
>> You received this message from the "vim_dev" maillist.
>> Do not top-post! Type your reply below the text you are replying to.
>> For more information, visit http://www.vim.org/maillist.php
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "vim_dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: gtk3-v7.4.1362.patch.gz
Description: GNU Zip compressed data

Raspunde prin e-mail lui