Revision: 1417 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1417&view=re... Author: sheckley Date: 2010-05-31 18:07:58 +0000 (Mon, 31 May 2010)
Log Message: ----------- fixed Goto line and select with the toolbar visible changed my mail address
Modified Paths: -------------- trunk/geany-plugins/geanyextrasel/ChangeLog trunk/geany-plugins/geanyextrasel/README trunk/geany-plugins/geanyextrasel/src/extrasel.c
Modified: trunk/geany-plugins/geanyextrasel/ChangeLog =================================================================== --- trunk/geany-plugins/geanyextrasel/ChangeLog 2010-05-31 10:28:38 UTC (rev 1416) +++ trunk/geany-plugins/geanyextrasel/ChangeLog 2010-05-31 18:07:58 UTC (rev 1417) @@ -1,3 +1,8 @@ +2010-05-31 Dimitar Zhekov dimitar.zhekov@gmail.com + + * src/extrasel.c: + Fixed "Goto line and select" with the toolbar visible. + 2010-05-22 Dimitar Zhekov hamster@mbox.contact.bg
* src/extrasel.c:
Modified: trunk/geany-plugins/geanyextrasel/README =================================================================== --- trunk/geany-plugins/geanyextrasel/README 2010-05-31 10:28:38 UTC (rev 1416) +++ trunk/geany-plugins/geanyextrasel/README 2010-05-31 18:07:58 UTC (rev 1417) @@ -102,4 +102,4 @@
Ideas, questions, patches and bug reports ----------------------------------------- -Dimitar Toshkov Zhekov jimmy@is-vn.bg +Dimitar Zhekov dimitar.zhekov@gmail.com
Modified: trunk/geany-plugins/geanyextrasel/src/extrasel.c =================================================================== --- trunk/geany-plugins/geanyextrasel/src/extrasel.c 2010-05-31 10:28:38 UTC (rev 1416) +++ trunk/geany-plugins/geanyextrasel/src/extrasel.c 2010-05-31 18:07:58 UTC (rev 1417) @@ -45,6 +45,7 @@ static GtkWidget *column_mode_item; static GtkWidget *goto_line_item; static GtkWidget *brace_match_item; +static gpointer *go_to_line1_item = NULL;
static gboolean column_mode = FALSE;
@@ -227,7 +228,17 @@ ScintillaObject *sci = doc->editor->sci; int before = sci_get_current_position(sci), after;
- keybindings_send_command(group_id, key_id); + if (key_id != GEANY_KEYS_GOTO_LINE || !geany_data->toolbar_prefs->visible) + keybindings_send_command(group_id, key_id); + else if (go_to_line1_item) + g_signal_emit_by_name(go_to_line1_item, "activate"); + else + { + if (geany_data->prefs->beep_on_errors) + gdk_beep(); + return; + } + after = sci_get_current_position(sci); if (before != after) sci_set_anchor(sci, before); @@ -289,6 +300,9 @@
gtk_widget_show_all(main_menu_item);
+ go_to_line1_item = g_object_get_data((gpointer) geany->main_widgets->window, + "go_to_line1"); + plugin_signal_connect(geany_plugin, G_OBJECT(geany->main_widgets->window), "key-press-event", FALSE, G_CALLBACK(on_key_press_event), NULL); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.