Permalink
Browse files

GeanyLipsum: Fix GTK+3 support

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Signed-off-by: Frank Lanitz <frank@frank.uvena.de>
  • Loading branch information...
sardemff7 authored and frlan committed Apr 5, 2013
1 parent 55a4c0e commit 30d78c44bca9238879a1bbe46366896c63507858
Showing with 1 addition and 6 deletions.
  1. +0 −1 build/geanylipsum.m4
  2. +1 −5 geanylipsum/src/geanylipsum.c
View
@@ -1,7 +1,6 @@
AC_DEFUN([GP_CHECK_GEANYLIPSUM],
[
GP_ARG_DISABLE([GeanyLipsum], [auto])
- GP_CHECK_PLUGIN_GTK2_ONLY([GeanyLipsum])
GP_COMMIT_PLUGIN_STATUS([GeanyLipsum])
AC_CONFIG_FILES([
geanylipsum/Makefile
@@ -140,12 +140,9 @@ plugin_init(G_GNUC_UNUSED GeanyData *data)
{
GtkWidget *menu_lipsum = NULL;
GKeyFile *config = g_key_file_new();
- GtkTooltips *tooltips = NULL;
gchar *config_file = NULL;
GeanyKeyGroup *key_group;
- tooltips = gtk_tooltips_new();
-
main_locale_init(LOCALEDIR, GETTEXT_PACKAGE);
config_file = g_strconcat(geany->app->configdir,
@@ -161,8 +158,7 @@ plugin_init(G_GNUC_UNUSED GeanyData *data)
/* Building menu entry */
menu_lipsum = gtk_image_menu_item_new_with_mnemonic(_("_Lipsum"));
- gtk_tooltips_set_tip(tooltips, menu_lipsum,
- _("Include Pseudotext to your code"), NULL);
+ gtk_widget_set_tooltip_text(menu_lipsum, _("Include Pseudotext to your code"));
gtk_widget_show(menu_lipsum);
g_signal_connect((gpointer) menu_lipsum, "activate",
G_CALLBACK(lipsum_activated), NULL);

0 comments on commit 30d78c4

Please sign in to comment.