Revision: 1980 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1980&view=re... Author: codebrainz Date: 2011-03-12 19:12:29 +0000 (Sat, 12 Mar 2011)
Log Message: ----------- Add tooltips to to browser toolbar buttons.
Modified Paths: -------------- trunk/geany-plugins/devhelp/src/devhelpplugin.c
Modified: trunk/geany-plugins/devhelp/src/devhelpplugin.c =================================================================== --- trunk/geany-plugins/devhelp/src/devhelpplugin.c 2011-03-11 02:58:34 UTC (rev 1979) +++ trunk/geany-plugins/devhelp/src/devhelpplugin.c 2011-03-12 19:12:29 UTC (rev 1980) @@ -365,11 +365,20 @@ btn_zoom_in = gtk_tool_button_new_from_stock(GTK_STOCK_ZOOM_IN); btn_zoom_out = gtk_tool_button_new_from_stock(GTK_STOCK_ZOOM_OUT); tb_sep = gtk_separator_tool_item_new(); + + gtk_widget_set_tooltip_text(GTK_WIDGET(dhplug->btn_back), + _("Go back one page")); + gtk_widget_set_tooltip_text(GTK_WIDGET(dhplug->btn_forward), + _("Go forward one page")); + gtk_widget_set_tooltip_text(GTK_WIDGET(btn_zoom_in), _("Zoom in")); + gtk_widget_set_tooltip_text(GTK_WIDGET(btn_zoom_out), _("Zoom out")); + gtk_toolbar_insert(GTK_TOOLBAR(toolbar), dhplug->btn_back, -1); gtk_toolbar_insert(GTK_TOOLBAR(toolbar), dhplug->btn_forward, -1); gtk_toolbar_insert(GTK_TOOLBAR(toolbar), tb_sep, -1); gtk_toolbar_insert(GTK_TOOLBAR(toolbar), btn_zoom_in, -1); gtk_toolbar_insert(GTK_TOOLBAR(toolbar), btn_zoom_out, -1); + gtk_box_pack_start(GTK_BOX(vbox), toolbar, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), webview_sw, TRUE, TRUE, 0); gtk_notebook_append_page(GTK_NOTEBOOK(dhplug->main_notebook), vbox, @@ -405,8 +414,6 @@ g_signal_connect(btn_zoom_out, "clicked", G_CALLBACK(on_zoom_out_button_clicked), dhplug);
- /* TODO: find the right signal, this doesn't work on inter-document - * links since the page doesn't reload. */ g_signal_connect(WEBKIT_WEB_VIEW(dhplug->webview), "document-load-finished", G_CALLBACK(on_document_load_finished), dhplug);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org