mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
gtk-reftest: Don't warn needlessly
Only warn about the --direction argument if the option was actually specified.
This commit is contained in:
parent
e4ba5b6ab6
commit
5880c9e365
@ -70,7 +70,7 @@ parse_command_line (int *argc, char ***argv)
|
||||
gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL);
|
||||
else if (g_strcmp0 (arg_direction, "ltr") == 0)
|
||||
gtk_widget_set_default_direction (GTK_TEXT_DIR_LTR);
|
||||
else
|
||||
else if (arg_direction != NULL)
|
||||
g_printerr ("Invalid argument passed to --direction argument. Valid arguments are 'ltr' and 'rtl'\n");
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user