add gtk window class to mainwindow.

This allows pavucontrol to be specifically addressed when creating GTK
themes.
This commit is contained in:
Leon Kowarschick 2020-06-02 20:20:35 +02:00
parent 8921ee0cd6
commit fb75f5d1e4
1 changed files with 1 additions and 0 deletions

View File

@ -188,6 +188,7 @@ MainWindow* MainWindow::create(bool maximize) {
x->add_from_file(GLADE_FILE, "liststore4"); x->add_from_file(GLADE_FILE, "liststore4");
x->add_from_file(GLADE_FILE, "mainWindow"); x->add_from_file(GLADE_FILE, "mainWindow");
x->get_widget_derived("mainWindow", w); x->get_widget_derived("mainWindow", w);
w->get_style_context()->add_class("pavucontrol-window");
if (w && maximize) if (w && maximize)
w->maximize(); w->maximize();
return w; return w;