SF.net SVN: geany: [637] trunk/src/prefs.c
ntrel at users.sourceforge.net
ntrel at xxxxx
Wed Jul 26 14:28:53 UTC 2006
Revision: 637
Author: ntrel
Date: 2006-07-26 07:28:49 -0700 (Wed, 26 Jul 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=637&view=rev
Log Message:
-----------
Never show compile & run toolbuttons on Windows and hide the prefs option to show them
Modified Paths:
--------------
trunk/src/prefs.c
Modified: trunk/src/prefs.c
===================================================================
--- trunk/src/prefs.c 2006-07-26 14:28:20 UTC (rev 636)
+++ trunk/src/prefs.c 2006-07-26 14:28:49 UTC (rev 637)
@@ -434,7 +434,11 @@
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 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list