Commit cea946c1 authored by Victor Ananjevsky's avatar Victor Ananjevsky

fix in settings window icon name. a slightly modified patch from…

fix in settings window icon name. a slightly modified patch from https://sourceforge.net/p/yad-dialog/tickets/325/
parent 0b5f82e7
......@@ -348,7 +348,7 @@ html_create_widget (GtkWidget * dlg)
g_signal_connect (view, "context-menu", G_CALLBACK (menu_cb), NULL);
if (!options.data.dialog_title)
g_signal_connect (view, "notify::title", G_CALLBACK (title_cb), dlg);
if (strcmp (options.data.window_icon, "yad") == 0)
if (!options.data.window_icon)
g_signal_connect (view, "notify::favicon", G_CALLBACK (icon_cb), dlg);
}
else
......
......@@ -367,6 +367,8 @@ create_dialog (void)
else
gtk_window_set_icon_name (GTK_WINDOW (dlg), options.data.window_icon);
}
else
gtk_window_set_icon_name (GTK_WINDOW (dlg), "yad");
/* set window borders */
if (options.data.borders < 0)
......
......@@ -1497,7 +1497,7 @@ yad_options_init (void)
/* Initialize general data */
options.data.dialog_title = NULL;
options.data.window_icon = "yad";
options.data.window_icon = NULL;
#ifndef STANDALONE
options.data.width = g_settings_get_int (settings, "width");
options.data.height = g_settings_get_int (settings, "height");
......
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