We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I changed some function see ERROR ----> IS NOT G_TYPE_STRING or G_TYPE_BOXED with that there are no more errors in example
static void textColumnDataFunc(GtkTreeViewColumn *c, GtkCellRenderer *r, GtkTreeModel *m, GtkTreeIter *iter, gpointer data) { struct textColumnParams *p = (struct textColumnParams *) data; GValue value = G_VALUE_INIT; const gchar *str; gtk_tree_model_get_value(m, iter, p->modelColumn, &value); ---->if ( G_VALUE_TYPE(&value) == G_TYPE_STRING ) { str = g_value_get_string(&value); g_object_set(r, "text", str, NULL); g_value_unset(&value); setEditable(p->m, iter, p->editableColumn, r, "editable"); if (p->params.ColorModelColumn != -1) applyColor(m, iter, p->params.ColorModelColumn, r, "foreground-rgba", "foreground-set"); applyBackgroundColor(p->t, m, iter, r); } } static void buttonColumnDataFunc(GtkTreeViewColumn *c, GtkCellRenderer *r, GtkTreeModel *m, GtkTreeIter *iter, gpointer data) { struct buttonColumnParams *p = (struct buttonColumnParams *) data; GValue value = G_VALUE_INIT; const gchar *str; gtk_tree_model_get_value(m, iter, p->modelColumn, &value); ---> if ( G_VALUE_TYPE(&value) == G_TYPE_STRING ) { str = g_value_get_string(&value); g_object_set(r, "text", str, NULL); g_value_unset(&value); setEditable(p->m, iter, p->clickableColumn, r, "sensitive"); applyBackgroundColor(p->t, m, iter, r); } } static void applyColor(GtkTreeModel *m, GtkTreeIter *iter, int modelColumn, GtkCellRenderer *r, const char *prop, const char *propSet) { GValue value = G_VALUE_INIT; ---> GdkRGBA *rgba = NULL ; gtk_tree_model_get_value(m, iter, modelColumn, &value); ---> if ( G_VALUE_TYPE(&value) == G_TYPE_BOXED ) rgba = (GdkRGBA *) g_value_get_boxed(&value); if (rgba != NULL) g_object_set(r, prop, rgba, NULL); else g_object_set(r, propSet, FALSE, NULL); g_value_unset(&value); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I changed some function see ERROR ----> IS NOT G_TYPE_STRING or G_TYPE_BOXED
with that there are no more errors in example
The text was updated successfully, but these errors were encountered: