diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -128,6 +128,8 @@ command_line_cb (GApplication *app, g_free (args); } +static void dummy_log_func (void) { } + int main (int argc, char *argv[]) { @@ -143,6 +145,11 @@ main (int argc, char *argv[]) textdomain (GETTEXT_PACKAGE); /* </i18n> */ + /* Turn off g_message's from libadwaita - this is to suppress the 'this is + * discouraged' message re: mapping dialogs without a transient parent. + */ + g_log_set_handler ("Adwaita", G_LOG_LEVEL_MESSAGE, (GLogFunc)dummy_log_func, NULL); + args = g_new0 (ZenityArgs, 1); args->argc = argc; args->argv = argv; |