Commit ce7e39cd authored by Victor Ananjevsky's avatar Victor Ananjevsky

fix :tip column type in list dialog

parent 3655bc74
......@@ -437,6 +437,9 @@ add_columns ()
gtk_tree_view_column_add_attribute (column, renderer, "font", font_col);
gtk_tree_view_column_set_sort_column_id (column, i);
gtk_tree_view_column_set_resizable (column, TRUE);
if (col->type == YAD_COLUMN_TIP)
options.list_data.tooltip_column = i + 1;
break;
}
g_object_set_data (G_OBJECT (renderer), "column", GINT_TO_POINTER (i));
......
......@@ -753,6 +753,8 @@ add_column (const gchar * option_name, const gchar * value, gpointer data, GErro
col->type = YAD_COLUMN_BAR;
else if (strcasecmp (cstr[1], "SZ") == 0)
col->type = YAD_COLUMN_SIZE;
else if (strcasecmp (cstr[1], "TIP") == 0)
col->type = YAD_COLUMN_TIP;
else
col->type = YAD_COLUMN_TEXT;
}
......
......@@ -131,6 +131,7 @@ typedef enum {
YAD_COLUMN_RADIO,
YAD_COLUMN_BAR,
YAD_COLUMN_IMAGE,
YAD_COLUMN_TIP,
YAD_COLUMN_HIDDEN,
YAD_COLUMN_ATTR_FORE,
YAD_COLUMN_ATTR_BACK,
......
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