CheckButton background color

2017-04-21 Thread Rúben Rodrigues
Hi,

Someone knows how to change gtkcheckbutton background and size in CSS?

i tried this:

Checkbutton CSS for Red:

GtkCheckButton .check {
  background: red;
  color: white;
  min-width: 8px;
  min-height: 8px;
  border-width: 0px;
}

and

checkbutton check {
  background: red;
  color: white;
  min-width: 8px;
  min-height: 8px;
  border-width: 0px;
}
but don't works.

I appreciate your help. Thanks.

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]
  Sem vírus. 
www.avast.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Update Gtk+3.0

2017-04-21 Thread Rúben Rodrigues
Hi guys,

I'm in trouble with gtk version i think. When i run pkg-config 
--modversion gtk+-3.0 in my Raspberry Pi that is running Raspbian OS, i 
get 3.14.5 version.

If i try to update with sudo apt-get update and sudo apt-get upgrade, i 
have the same version. How i can update to gtk+-3.20 version that is the 
lastest stable version?


Thanks guys.


---
Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.
https://www.avast.com/antivirus

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Doubt

2017-04-21 Thread Emmanuele Bassi
On 20 April 2017 at 11:03, Rúben Rodrigues  wrote:
> Hi guys,
>
> i have a problem with callback functions. I have a struct in parameter but 
> always give null values. Here is an example:
>
>
> struct pxToggleData{
> LineChartSeries *series;
> LineChart *chart;
> GtkWidget *canvas;
> };
>
> xTempToggle.canvas = canvas;
> xTempToggle.chart = chart;
>
> xTempToggle.series = pxLogView_TempSensors[iProbe].series;
>
> g_signal_connect((GObject *)pxLogView_TempSensors[iProbe].cButton, "toggled", 
> (GCallback)series_toggled, );
>
> Someone could help me? Why it give always xTempToggle null in series_toggled 
> callback function?

This is kind of a basic C question.

You're passing a pointer to data placed on the stack. If xTempToggle
goes out of scope after g_signal_connect() is called, then the data
points to random garbage.

You need to either put the xTempToggle data structure in a larger
scope (e.g. global) or you need to put it on the heap, and manage the
memory allocation yourself.

Ciao,
 Emmanuele.

-- 
https://www.bassi.io
[@] ebassi [@gmail.com]
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Doubt

2017-04-21 Thread Rúben Rodrigues
Hi guys,

i have a problem with callback functions. I have a struct in parameter but 
always give null values. Here is an example:


struct pxToggleData{
LineChartSeries *series;
LineChart *chart;
GtkWidget *canvas;
};

xTempToggle.canvas = canvas;
xTempToggle.chart = chart;

xTempToggle.series = pxLogView_TempSensors[iProbe].series;

g_signal_connect((GObject *)pxLogView_TempSensors[iProbe].cButton, "toggled", 
(GCallback)series_toggled, );

Someone could help me? Why it give always xTempToggle null in series_toggled 
callback function?

--
Rúben Rodrigues
AUTOFRAN, Lda
www.autofran.net

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]
  Sem vírus. 
www.avast.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list