aboutsummaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
authorOndrej Čerman2019-06-18 21:56:29 +0200
committerOndrej Čerman2019-06-18 22:05:42 +0200
commitd585178609b19406fd78ae11ddb4209a9a66f365 (patch)
treeb6ea0ef17fd5d9e689b766b6625fa332d94cefc0 /src/gui.c
parent8bc8727f6bce1f9d9477fd832cb382e965ead64f (diff)
Added CPU model
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui.c b/src/gui.c
index 7f1ce16..6d289a8 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -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();