X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_pref.c;h=8d2c8ab5942c854663d34404b15a7c519aac2098;hb=90ec04c6efb1f0b9e3887a86b1da9e7d0d33f16f;hp=cbb598682fd57b3135e1707c01c5e2000f5c5baf;hpb=d280db5907574f0d29458dd5d301ce030a13189b;p=psensor.git diff --git a/src/ui_pref.c b/src/ui_pref.c index cbb5986..8d2c8ab 100644 --- a/src/ui_pref.c +++ b/src/ui_pref.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2014 jeanfi@gmail.com + * Copyright (C) 2010-2016 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 @@ -183,7 +183,7 @@ void ui_pref_dialog_run(struct ui_psensor *ui) w_enable_launcher_counter = GTK_TOGGLE_BUTTON (gtk_builder_get_object(builder, "enable_launcher_counter")); gtk_toggle_button_set_active(w_enable_launcher_counter, - !config_is_count_visible()); + config_is_count_visible()); if (ui_unity_is_supported()) { gtk_widget_set_has_tooltip @@ -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_window_set_transient_for(GTK_WINDOW(diag), + GTK_WINDOW(ui->main_window)); gtk_builder_connect_signals(builder, NULL); result = gtk_dialog_run(diag);