[Github-comments] [geany/geany] Question: what are the zoom callback functions? (#1696)

LarsGit223 notifications at xxxxx
Thu Nov 23 18:21:44 UTC 2017


@elextr: Are you sure about the keybindings? I also thought it is going to be handled there. But I changed my zoom functions like this for testing:
```
/* zoom out from menu bar and popup menu */
void on_zoom_out1_activate(GtkMenuItem *menuitem, gpointer user_data)
{
	GeanyDocument *doc = document_get_current();

	g_return_if_fail(doc != NULL);

        dialogs_show_msgbox(GTK_MESSAGE_INFO, "Zoom zoom");
	sci_zoom_out(doc->editor->sci);
}
```
The dialog only pops up if I use the menu items for zooming. If I use the keybindings then the zoom works, but the dialog does not show up. So it must take a different call path.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1696#issuecomment-346678883
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20171123/ac8ea0c4/attachment.html>


More information about the Github-comments mailing list