[geany/geany-plugins] 8944ea: Merge branch 'master' of github.com:geany/geany-plugins
Dimitar Zhekov
git-noreply at xxxxx
Sat Aug 31 18:42:37 UTC 2013
Branch: refs/heads/master
Author: Dimitar Zhekov <dimitar.zhekov at gmail.com>
Committer: Dimitar Zhekov <dimitar.zhekov at gmail.com>
Date: Sat, 31 Aug 2013 18:42:37 UTC
Commit: 8944eafdf4d29f0d6e9e25f06540870831484195
https://github.com/geany/geany-plugins/commit/8944eafdf4d29f0d6e9e25f06540870831484195
Log Message:
-----------
Merge branch 'master' of github.com:geany/geany-plugins
Modified Paths:
--------------
geanypy/geany/console.py
markdown/src/viewer.c
po/de.po
treebrowser/src/treebrowser.c
Modified: geanypy/geany/console.py
5 files changed, 3 insertions(+), 2 deletions(-)
===================================================================
@@ -517,8 +517,9 @@ def do_raw_input(self, text):
def do_command(self, code):
try:
eval(code, self.locals)
- except SystemExit:
- raise
+# In GeanyPy console, we don't want to exit the process on SystemExit
+# except SystemExit:
+# raise
except:
self.showtraceback()
Modified: markdown/src/viewer.c
9 files changed, 7 insertions(+), 2 deletions(-)
===================================================================
@@ -249,9 +249,14 @@ struct _MarkdownViewerPrivate
if (GTK_IS_SCROLLED_WINDOW(parent)) {
GtkAdjustment *adj;
adj = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(parent));
- self->priv->vscroll_pos = gtk_adjustment_get_value(adj);
+ /* Another hack to try and keep scroll position from
+ * resetting to top while typing, just don't store the new
+ * scroll positions if they're 0. */
+ if (gtk_adjustment_get_value(adj) != 0)
+ self->priv->vscroll_pos = gtk_adjustment_get_value(adj);
adj = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(parent));
- self->priv->hscroll_pos = gtk_adjustment_get_value(adj);
+ if (gtk_adjustment_get_value(adj) != 0)
+ self->priv->hscroll_pos = gtk_adjustment_get_value(adj);
pushed = TRUE;
}
Modified: po/de.po
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -6040,7 +6040,7 @@ msgstr "Rechtschreibprüfung ausführen"
#: ../spellcheck/src/scplugin.c:205
msgid "Toggle Check While Typing"
-msgstr "»Rechtschreibung beim Tippen überprüfen« ein-/ausschalten"
+msgstr "Rechtschreibung beim Tippen überprüfen ein-/ausschalten"
#. initialise the dialog
#: ../spellcheck/src/scplugin.c:216
Modified: treebrowser/src/treebrowser.c
13 files changed, 12 insertions(+), 1 deletions(-)
===================================================================
@@ -76,6 +76,7 @@
static gboolean CONFIG_SHOW_TREE_LINES = TRUE;
static gboolean CONFIG_SHOW_BOOKMARKS = FALSE;
static gint CONFIG_SHOW_ICONS = 2;
+static gboolean CONFIG_OPEN_NEW_FILES = TRUE;
/* ------------------
* TREEVIEW STRUCT
@@ -1066,6 +1067,8 @@ enum
treebrowser_browse(uri, refresh_root ? NULL : &iter);
if (treebrowser_search(uri_new, NULL))
treebrowser_rename_current();
+ if (utils_str_equal(type, "file") && CONFIG_OPEN_NEW_FILES == TRUE)
+ document_open_file(uri_new,FALSE, NULL,NULL);
}
}
g_free(uri_new);
@@ -1784,7 +1787,7 @@ enum
GtkWidget *SHOW_TREE_LINES;
GtkWidget *SHOW_BOOKMARKS;
GtkWidget *SHOW_ICONS;
-
+ GtkWidget *OPEN_NEW_FILES;
} configure_widgets;
static void
@@ -1806,6 +1809,7 @@ enum
CONFIG_SHOW_TREE_LINES = utils_get_setting_boolean(config, "treebrowser", "show_tree_lines", CONFIG_SHOW_TREE_LINES);
CONFIG_SHOW_BOOKMARKS = utils_get_setting_boolean(config, "treebrowser", "show_bookmarks", CONFIG_SHOW_BOOKMARKS);
CONFIG_SHOW_ICONS = utils_get_setting_integer(config, "treebrowser", "show_icons", CONFIG_SHOW_ICONS);
+ CONFIG_OPEN_NEW_FILES = utils_get_setting_boolean(config, "treebrowser", "open_new_files", CONFIG_OPEN_NEW_FILES);
g_key_file_free(config);
}
@@ -1837,6 +1841,7 @@ enum
g_key_file_set_boolean(config, "treebrowser", "show_tree_lines", CONFIG_SHOW_TREE_LINES);
g_key_file_set_boolean(config, "treebrowser", "show_bookmarks", CONFIG_SHOW_BOOKMARKS);
g_key_file_set_integer(config, "treebrowser", "show_icons", CONFIG_SHOW_ICONS);
+ g_key_file_set_boolean(config, "treebrowser", "open_new_file", CONFIG_OPEN_NEW_FILES);
data = g_key_file_to_data(config, NULL, NULL);
utils_write_file(CONFIG_FILE, data);
@@ -1867,6 +1872,7 @@ enum
CONFIG_SHOW_TREE_LINES = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(configure_widgets.SHOW_TREE_LINES));
CONFIG_SHOW_BOOKMARKS = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(configure_widgets.SHOW_BOOKMARKS));
CONFIG_SHOW_ICONS = gtk_combo_box_get_active(GTK_COMBO_BOX(configure_widgets.SHOW_ICONS));
+ CONFIG_OPEN_NEW_FILES = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(configure_widgets.OPEN_NEW_FILES));
if (save_settings() == TRUE)
{
@@ -1978,6 +1984,11 @@ enum
gtk_button_set_focus_on_click(GTK_BUTTON(configure_widgets.SHOW_BOOKMARKS), FALSE);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(configure_widgets.SHOW_BOOKMARKS), CONFIG_SHOW_BOOKMARKS);
gtk_box_pack_start(GTK_BOX(vbox), configure_widgets.SHOW_BOOKMARKS, FALSE, FALSE, 0);
+
+ configure_widgets.OPEN_NEW_FILES = gtk_check_button_new_with_label(_("Open new files"));
+ gtk_button_set_focus_on_click(GTK_BUTTON(configure_widgets.OPEN_NEW_FILES ), FALSE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(configure_widgets.OPEN_NEW_FILES ), CONFIG_OPEN_NEW_FILES);
+ gtk_box_pack_start(GTK_BOX(vbox), configure_widgets.OPEN_NEW_FILES , FALSE, FALSE, 0);
gtk_widget_show_all(vbox);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list