Thanks! In some containers we can't change color of label? I have labels
inside GtkLayout, and don't change color with Css but other labels out
of this layout change.
Why don't works?
I do this dynamically but don't works too:
GtkCssProvider *css_provider = gtk_css_provider_new();
gtk_css
HI guys,
I have a on-screen keyboard that was made for gtk2. Now in gtk3 i get
this errors:
Gdk-CRITICAL **: gdk_window_get_user_data: assertion 'GDK_IS_WINDOW
(window)' failed
Gdk-CRITICAL **: gdk_window_get_display: assertion 'GDK_IS_WINDOW
(window)' failed
Gdk-WARNING **: Event with typ
From: R?ben Rodrigues
> On 16-03-2017 11:20, Tilo Villwock wrote:
> > Am Donnerstag, den 16.03.2017, 09:55 + schrieb R?ben Rodrigues:
> >> Hi,
> >>
> >> THanks. This is dynamically? I need in c language if possible :S
> > Dynamic version:
> >
> > ...
> >
> > static GtkCssProvider* provider =
Hum...
I decided to use this binary.
https://www.dropbox.com/sh/8d1qbh5dsp044on/UgkALzhlqH
Thanks.
On 2017年03月07日 03:05, michinari.nukazawa wrote:
Hello.
I devel to the vecterion vector graphics editor.
https://github.com/MichinariNukazawa/vecterion_vge
on Linux and Win64.
libgtk binary pa
You are right. I don't know why don't works before, because I had
already tested and doesn't work... BU apparently now works with
gdk_screen_get_default();
THanks for your help.
On 16-03-2017 14:07, Tilo Villwock wrote:
> Am Donnerstag, den 16.03.2017, 13:50 + schrieb Rúben Rodrigues:
>>
OK, now works:
if(css_provider == NULL){
css_provider = gtk_css_provider_new();
apply_css(gtk_builder_get_object(builder,"window_Main"),css_provider);
g_object_unref(css_provider);
}
gtk_css_provider_load_from_data (css_provider,"#label_Sensors {
color: red; }",
Am Donnerstag, den 16.03.2017, 13:50 + schrieb Rúben Rodrigues:
> I get this error:
>
> gtk-CRITICAL **: gtk_style_context_add_provider_for_screen:
> assertion
> 'GDK_IS_SCREEN (screen)' failed
>
> COde:
> gtk_style_context_add_provider_for_screen(gtk_widget_get_style_contex
> t(GTK_WIDGET(
I get this error:
gtk-CRITICAL **: gtk_style_context_add_provider_for_screen: assertion
'GDK_IS_SCREEN (screen)' failed
COde:
gtk_style_context_add_provider_for_screen(gtk_widget_get_style_context(GTK_WIDGET(gtk_builder_get_object(builder,"window_Main"))),
GTK_STYLE_PROVIDER (css_p
No! This is the ID: https://ibin.co/3FlPSBGuokBB.png
and this is the widget name https://ibin.co/3FlPnPaDN7Zl.png that i used
in css provider. This is not the problem because in start of the program
i change the label to other color to understand if css provider is
working. And works, but when
You keep using an id in the selector, but you never show how you set
the id on the widget. I suspect you think the buildable ID you use
with GtkBuilder is also the ID used when theming — which is definitely
not the case. You will need gtk_widget_set_name(), instead. Of course,
that comes with its o
I provide my code in previous emails.
This is my code now:
if(css_provider == NULL){
css_provider = gtk_css_provider_new();
gtk_style_context_add_provider
(gtk_widget_get_style_context(GTK_WIDGET(gtk_builder_get_object(builder,"window_Main"))),
GTK_STYLE_PROVI
Hi,
This is what i have, and don't works...
On 16-03-2017 11:20, Tilo Villwock wrote:
> Am Donnerstag, den 16.03.2017, 09:55 + schrieb Rúben Rodrigues:
>> Hi,
>>
>> THanks. This is dynamically? I need in c language if possible :S
> Dynamic version:
>
> ...
>
> static GtkCssProvider* provider
Am Donnerstag, den 16.03.2017, 09:55 + schrieb Rúben Rodrigues:
> Hi,
>
> THanks. This is dynamically? I need in c language if possible :S
Dynamic version:
...
static GtkCssProvider* provider = NULL;
static void
set_label_color(GtkWidget* label, const char* color)
{
const char* format
Please help me. I don't see nothing with web to change label color
dynamically but i need this urgent
THanks again!
On 16-03-2017 09:55, Rúben Rodrigues wrote:
> Hi,
>
> THanks. This is dynamically? I need in c language if possible :S
>
> Thanks
>
>
> On 16-03-2017 07:29, Stefan Salewski wrote:
On Thu, 2017-03-16 at 09:55 +, Rúben Rodrigues wrote:
> Hi,
>
> THanks. This is dynamically? I need in c language if possible :S
>
> Thanks
Yes. The example
https://github.com/ngtk3/nim-gtk3/blob/master/test/colors.nim
is dynamically, I used it to generate some color schemes. Entered color
Hi,
THanks. This is dynamically? I need in c language if possible :S
Thanks
On 16-03-2017 07:29, Stefan Salewski wrote:
> On Wed, 2017-03-15 at 15:11 +, Rúben Rodrigues wrote:
>> Hi,
>>
>> Now i need to change GtkLabel color dinamically, so i thing that i
>> can't
>> use Css to do this.. I
On Wed, 2017-03-15 at 15:11 +, Rúben Rodrigues wrote:
> Hi,
>
> Now i need to change GtkLabel color dinamically, so i thing that i
> can't
> use Css to do this.. I do this in Gtk2:
>
> gtk_widget_modify_fg(GTK_WIDGET(gtk_builder_get_object(builder,"label
> ")),GTK_STATE_NORMAL,
> &white);
>
17 matches
Mail list logo