Coloring of chosen mode mechanism at inspector window

pull/80/head
Ivan Yartsev 2 years ago
parent f925c4fca2
commit f1fc7ccf72

@ -348,6 +348,16 @@ void on_inspector_update(GtkWidget *self, inspector_window *window){
GtkTextIter titer,titerend;
config_str output;
if (!strcmp(window->journal_name,"journald")){
if(self!=window->UpdateButton){
gtk_style_context_remove_class(gtk_widget_get_style_context(window->ShowKernelButton),"boxInfoMessOK");
gtk_style_context_remove_class(gtk_widget_get_style_context(window->NewMessagesButton),"boxInfoMessOK");
gtk_style_context_remove_class(gtk_widget_get_style_context(window->ShowAllBootsButton),"boxInfoMessOK");
gtk_style_context_remove_class(gtk_widget_get_style_context(window->ShowAllUnitsButton),"boxInfoMessOK");
gtk_style_context_remove_class(gtk_widget_get_style_context(window->ShowInitTreeButton),"boxInfoMessOK");
gtk_style_context_remove_class(gtk_widget_get_style_context(window->ShowPriorityButton),"boxInfoMessOK");
gtk_style_context_remove_class(gtk_widget_get_style_context(window->ShowSinceBootButton),"boxInfoMessOK");
gtk_style_context_add_class(gtk_widget_get_style_context(self),"boxInfoMessOK");
}
GtkWidget *terminal = (GtkWidget*)window->terminals->first->data;
gtk_widget_hide(window->LoggingNotebook);
gtk_widget_show(gtk_widget_get_parent(window->JournaldTree));

Loading…
Cancel
Save