projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed restoration of the panel divider position.
[psensor.git]
/
src
/
ui_pref.c
diff --git
a/src/ui_pref.c
b/src/ui_pref.c
index
0df9f1c
..
bbc8927
100644
(file)
--- a/
src/ui_pref.c
+++ b/
src/ui_pref.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2010-201
4
jeanfi@gmail.com
+ * Copyright (C) 2010-201
6
jeanfi@gmail.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@
-310,6
+310,8
@@
void ui_pref_dialog_run(struct ui_psensor *ui)
gtk_toggle_button_set_active(w_udisks2, config_is_udisks2_enabled());
gtk_toggle_button_set_active(w_udisks2, config_is_udisks2_enabled());
+ gtk_window_set_transient_for(GTK_WINDOW(diag),
+ GTK_WINDOW(ui->main_window));
gtk_builder_connect_signals(builder, NULL);
result = gtk_dialog_run(diag);
gtk_builder_connect_signals(builder, NULL);
result = gtk_dialog_run(diag);
@@
-396,8
+398,6
@@
void ui_pref_dialog_run(struct ui_psensor *ui)
pxdg_set_autostart(gtk_toggle_button_get_active(w_autostart));
pthread_mutex_unlock(&ui->sensors_mutex);
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));
}
g_object_unref(G_OBJECT(builder));
gtk_widget_destroy(GTK_WIDGET(diag));