* Fresh install of 1.2.0 complains about missing sensor config
keys. (LP: #1650378)
* Fixed hide on startup preference (Francis Chin). (LP: #1642029).
+* Fixed restoration of the panel divider position (Francis Chin).
v1.2.0
------
if (!is_appindicator_supported() && !is_status_supported())
ui_window_show(ui);
- ui_window_update(ui);
-
return FALSE;
}
log_debug("ui_window_create() ends");
}
-void ui_window_update(struct ui_psensor *ui)
-{
- struct config *cfg;
-
- log_debug("ui_window_update()");
-
- cfg = ui->config;
-
- if (cfg->window_restore_enabled)
- gtk_paned_set_position(GTK_PANED(w_sensor_box),
- cfg->window_divider_pos);
-
-}
-
void ui_window_show(struct ui_psensor *ui)
{
struct config *cfg;
log_debug("ui_window_show()");
cfg = ui->config;
- if (cfg->window_restore_enabled)
+ if (cfg->window_restore_enabled) {
+ gtk_paned_set_position(GTK_PANED(w_sensor_box),
+ cfg->window_divider_pos);
gtk_window_move(GTK_WINDOW(ui->main_window),
cfg->window_x,
cfg->window_y);
-
- ui_window_update(ui);
+ }
gtk_window_present(GTK_WINDOW(ui->main_window));
}
int graph_update_interval;
};
-/*
- * Update the window according to the configuration.
- *
- * Creates or re-creates the sensor_box according to the position of
- * the list of sensors in the configuration.
- *
- * Show or hide the menu bar.
- */
-void ui_window_update(struct ui_psensor *);
-
/* Show the main psensor window. */
void ui_window_show(struct ui_psensor *);
pxdg_set_autostart(gtk_toggle_button_get_active(w_autostart));
pthread_mutex_unlock(&ui->sensors_mutex);
-
- ui_window_update(ui);
}
g_object_unref(G_OBJECT(builder));
gtk_widget_destroy(GTK_WIDGET(diag));