|
|
|
@ -349,46 +349,62 @@ void on_inspector_update(GtkWidget *self, inspector_window *window){
|
|
|
|
|
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_remove_class(gtk_widget_get_style_context(window->ShowKernelButton),"chosenOutline");
|
|
|
|
|
gtk_style_context_remove_class(gtk_widget_get_style_context(window->NewMessagesButton),"chosenOutline");
|
|
|
|
|
gtk_style_context_remove_class(gtk_widget_get_style_context(window->ShowAllBootsButton),"chosenOutline");
|
|
|
|
|
gtk_style_context_remove_class(gtk_widget_get_style_context(window->ShowAllUnitsButton),"chosenOutline");
|
|
|
|
|
gtk_style_context_remove_class(gtk_widget_get_style_context(window->ShowInitTreeButton),"chosenOutline");
|
|
|
|
|
gtk_style_context_remove_class(gtk_widget_get_style_context(window->ShowPriorityButton),"chosenOutline");
|
|
|
|
|
gtk_style_context_remove_class(gtk_widget_get_style_context(window->ShowSinceBootButton),"chosenOutline");
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowKernelButton,1);
|
|
|
|
|
gtk_widget_set_sensitive(window->NewMessagesButton,1);
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowAllBootsButton,1);
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowAllUnitsButton,1);
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowInitTreeButton,1);
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowPriorityButton,1);
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowSinceBootButton,1);
|
|
|
|
|
}
|
|
|
|
|
GtkWidget *terminal = (GtkWidget*)window->terminals->first->data;
|
|
|
|
|
gtk_widget_hide(window->LoggingNotebook);
|
|
|
|
|
gtk_widget_show(gtk_widget_get_parent(window->JournaldTree));
|
|
|
|
|
if (window->last_mode==0)
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowSinceBootButton),"boxInfoMessOK");
|
|
|
|
|
if (self==window->ShowSinceBootButton){
|
|
|
|
|
window->last_mode=1;
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowSinceBootButton),"boxInfoMessOK");
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowSinceBootButton),"chosenOutline");
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowSinceBootButton,0);
|
|
|
|
|
}
|
|
|
|
|
else if (self==window->NewMessagesButton){
|
|
|
|
|
window->last_mode=2;
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->NewMessagesButton),"boxInfoMessOK");
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->NewMessagesButton),"chosenOutline");
|
|
|
|
|
gtk_widget_set_sensitive(window->NewMessagesButton,0);
|
|
|
|
|
}
|
|
|
|
|
else if (self==window->ShowKernelButton){
|
|
|
|
|
window->last_mode=3;
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowKernelButton),"boxInfoMessOK");
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowKernelButton),"chosenOutline");
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowKernelButton,0);
|
|
|
|
|
}
|
|
|
|
|
else if (self==window->ShowPriorityButton){
|
|
|
|
|
window->last_mode=4;
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowPriorityButton),"boxInfoMessOK");
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowPriorityButton),"chosenOutline");
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowPriorityButton,0);
|
|
|
|
|
}
|
|
|
|
|
else if (self==window->ShowAllBootsButton){
|
|
|
|
|
window->last_mode=5;
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowAllBootsButton),"boxInfoMessOK");
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowAllBootsButton),"chosenOutline");
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowAllBootsButton,0);
|
|
|
|
|
}
|
|
|
|
|
else if (self==window->ShowAllUnitsButton){
|
|
|
|
|
window->last_mode=6;
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowAllUnitsButton),"boxInfoMessOK");
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowAllUnitsButton),"chosenOutline");
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowAllUnitsButton,0);
|
|
|
|
|
}
|
|
|
|
|
else if (self==window->ShowInitTreeButton){
|
|
|
|
|
window->last_mode=7;
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowInitTreeButton),"boxInfoMessOK");
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowInitTreeButton),"chosenOutline");
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowInitTreeButton,0);
|
|
|
|
|
}
|
|
|
|
|
else if (window->last_mode==0){
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(window->ShowSinceBootButton),"chosenOutline");
|
|
|
|
|
gtk_widget_set_sensitive(window->ShowSinceBootButton,0);
|
|
|
|
|
}
|
|
|
|
|
main_config.remove_thread=0;
|
|
|
|
|
gtk_tree_view_set_model(GTK_TREE_VIEW(window->JournaldTree),GTK_TREE_MODEL(window->list));
|
|
|
|
|