Never show compile & run toolbuttons on Windows and hide the prefs option to show them
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@637 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
67de8f7217
commit
0a58904c11
@ -434,7 +434,11 @@ void on_prefs_button_clicked(GtkDialog *dialog, gint response, gpointer user_dat
|
||||
app->pref_toolbar_show_undo = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
|
||||
|
||||
widget = lookup_widget(app->prefs_dialog, "check_toolbar_compile");
|
||||
#ifdef GEANY_WIN32
|
||||
app->pref_toolbar_show_compile = FALSE;
|
||||
#else
|
||||
app->pref_toolbar_show_compile = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
|
||||
#endif
|
||||
|
||||
widget = lookup_widget(app->prefs_dialog, "check_toolbar_colour");
|
||||
app->pref_toolbar_show_colour = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
|
||||
@ -913,6 +917,10 @@ void dialogs_show_prefs_dialog(void)
|
||||
app->prefs_dialog = create_prefs_dialog();
|
||||
gtk_window_set_transient_for(GTK_WINDOW(app->prefs_dialog), GTK_WINDOW(app->window));
|
||||
|
||||
#ifdef GEANY_WIN32
|
||||
gtk_widget_hide(lookup_widget(app->prefs_dialog, "check_toolbar_compile"));
|
||||
#endif
|
||||
|
||||
// init the default file encoding combo box
|
||||
combo = lookup_widget(app->prefs_dialog, "combo_encoding");
|
||||
gtk_combo_box_set_wrap_width(GTK_COMBO_BOX(combo), 3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user