forked from osmocom/wireshark
Change display filter button tooltip formatting.
Go from <expression>,<comment> to <comment>\n<expression> Bug: 13814 Change-Id: I842e38798eba7ff87751733ce0b2befdc9c8c27f Reviewed-on: https://code.wireshark.org/review/22395 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
8d214209e8
commit
7ecea31581
|
@ -156,7 +156,7 @@ filter_button_add(const char *label, const char *expr, struct filter_expression
|
|||
gtk_widget_set_sensitive(GTK_WIDGET(button), TRUE);
|
||||
if (strlen(fe->comment) > 0)
|
||||
{
|
||||
tooltip = g_strdup_printf("%s, %s", fe->expression, fe->comment);
|
||||
tooltip = g_strdup_printf("%s\n%s", fe->comment, fe->expression);
|
||||
gtk_widget_set_tooltip_text(GTK_WIDGET(button), tooltip);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -911,7 +911,7 @@ gboolean MainWindow::filter_expression_add_action(const void *key _U_, void *val
|
|||
QAction *dfb_action = new QAction(fe->label, data->window->filter_expression_toolbar_);
|
||||
if (strlen(fe->comment) > 0)
|
||||
{
|
||||
QString tooltip = QString("%1, %2").arg(fe->expression).arg(fe->comment);
|
||||
QString tooltip = QString("%1\n%2").arg(fe->comment).arg(fe->expression);
|
||||
dfb_action->setToolTip(tooltip);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue