Commit ad0c0b8e authored by Javier Jardon's avatar Javier Jardon
Browse files

Do not initialize the priv pointer before check type

parent f90f2858
......@@ -1360,18 +1360,18 @@ gtk_hsv_get_color (GtkHSV *hsv,
double *s,
double *v)
{
GtkHSVPrivate *priv = hsv->priv;
GtkHSVPrivate *priv;
g_return_if_fail (GTK_IS_HSV (hsv));
priv = hsv->priv;
if (h)
*h = priv->h;
if (s)
*s = priv->s;
if (v)
*v = priv->v;
}
......@@ -1391,7 +1391,7 @@ gtk_hsv_set_metrics (GtkHSV *hsv,
gint size,
gint ring_width)
{
GtkHSVPrivate *priv = hsv->priv;
GtkHSVPrivate *priv;
int same_size;
g_return_if_fail (GTK_IS_HSV (hsv));
......@@ -1402,7 +1402,7 @@ gtk_hsv_set_metrics (GtkHSV *hsv,
priv = hsv->priv;
same_size = (priv->size == size);
priv->size = size;
priv->ring_width = ring_width;
......@@ -1427,7 +1427,7 @@ gtk_hsv_get_metrics (GtkHSV *hsv,
gint *size,
gint *ring_width)
{
GtkHSVPrivate *priv = hsv->priv;
GtkHSVPrivate *priv;
g_return_if_fail (GTK_IS_HSV (hsv));
......@@ -1458,7 +1458,7 @@ gtk_hsv_get_metrics (GtkHSV *hsv,
gboolean
gtk_hsv_is_adjusting (GtkHSV *hsv)
{
GtkHSVPrivate *priv = hsv->priv;
GtkHSVPrivate *priv;
g_return_val_if_fail (GTK_IS_HSV (hsv), FALSE);
......
......@@ -2820,7 +2820,7 @@ void
gtk_label_set_pattern (GtkLabel *label,
const gchar *pattern)
{
GtkLabelPrivate *priv = label->priv;
GtkLabelPrivate *priv;
g_return_if_fail (GTK_IS_LABEL (label));
......
......@@ -939,7 +939,7 @@ gtk_list_store_set_value (GtkListStore *list_store,
gint column,
GValue *value)
{
GtkListStorePrivate *priv = list_store->priv;
GtkListStorePrivate *priv;
g_return_if_fail (GTK_IS_LIST_STORE (list_store));
g_return_if_fail (iter_is_valid (iter, list_store));
......
......@@ -750,9 +750,9 @@ gtk_table_attach (GtkTable *table,
guint xpadding,
guint ypadding)
{
GtkTablePrivate *priv = table->priv;
GtkTablePrivate *priv;
GtkTableChild *table_child;
g_return_if_fail (GTK_IS_TABLE (table));
g_return_if_fail (GTK_IS_WIDGET (child));
g_return_if_fail (gtk_widget_get_parent (child) == NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment