Commit 5959f512 authored by Victor Ananjevsky's avatar Victor Ananjevsky

add --simple-tips option to list dialog

parent 61b2d405
......@@ -678,6 +678,9 @@ Autoscroll to the end of the list when a new row will be added.
Use IEC (base 1024) units with for size values. With this option values will have suffixes KiB, MiB, GiB.
.TP
Sending FormFeed character to list clears it. This symbol may be sent as \fIecho \-e '\\f'\fP.
.TP
.B \-\-simple-tips
Don't use markup in tooltips even if text has a valid markup.
.SS Multi progress bars dialog options
.TP
......
......@@ -1089,7 +1089,7 @@ list_create_widget (GtkWidget * dlg)
/* add tooltip column */
if (options.list_data.tooltip_column > 0)
{
if (options.data.no_markup)
if (options.list_data.simple_tips || options.data.no_markup)
{
gtk_widget_set_has_tooltip (list_view, TRUE);
g_signal_connect (G_OBJECT (list_view), "query-tooltip", G_CALLBACK (tooltip_cb), NULL);
......
......@@ -453,6 +453,8 @@ static GOptionEntry list_options[] = {
N_("Disable selection"), NULL },
{ "add-on-top", 0, 0, G_OPTION_ARG_NONE, &options.list_data.add_on_top,
N_("Add new records on the top of a list"), NULL },
{ "simple-tips", 0, 0, G_OPTION_ARG_NONE, &options.list_data.simple_tips,
N_("Don't use markup in tooltips"), NULL },
{ NULL }
};
......@@ -1614,6 +1616,7 @@ yad_options_init (void)
options.list_data.clickable = TRUE;
options.list_data.no_selection = FALSE;
options.list_data.add_on_top = FALSE;
options.list_data.simple_tips = FALSE;
/* Initialize multiprogress data */
options.multi_progress_data.bars = NULL;
......
......@@ -363,6 +363,7 @@ typedef struct {
gboolean clickable;
gboolean no_selection;
gboolean add_on_top;
gboolean simple_tips;
} YadListData;
typedef struct {
......
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