diff options
author | Ondrej Čerman | 2019-06-18 21:56:29 +0200 |
---|---|---|
committer | Ondrej Čerman | 2019-06-18 22:05:42 +0200 |
commit | d585178609b19406fd78ae11ddb4209a9a66f365 (patch) | |
tree | b6ea0ef17fd5d9e689b766b6625fa332d94cefc0 /src/gui.c | |
parent | 8bc8727f6bce1f9d9477fd832cb382e965ead64f (diff) |
Added CPU model
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -144,12 +144,13 @@ int start_gui (SensorSource *ss) { window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER); - gtk_window_set_default_size(GTK_WINDOW(window), 330, 300); + gtk_window_set_default_size(GTK_WINDOW(window), 400, 350); header = gtk_header_bar_new(); gtk_header_bar_set_show_close_button(GTK_HEADER_BAR (header), TRUE); gtk_header_bar_set_title(GTK_HEADER_BAR (header), "Zen monitor"); - gtk_header_bar_set_has_subtitle(GTK_HEADER_BAR (header), FALSE); + gtk_header_bar_set_has_subtitle(GTK_HEADER_BAR (header), TRUE); + gtk_header_bar_set_subtitle(GTK_HEADER_BAR (header), cpu_model()); gtk_window_set_titlebar (GTK_WINDOW (window), header); button = gtk_button_new(); |