summaryrefslogtreecommitdiffstats
path: root/src/widgets/gradient-vector.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2011-06-12 15:29:03 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2011-06-12 15:29:03 +0000
commit51a9217db249738eb584d8884f75f3bd48cf38a5 (patch)
tree8a249f5fdc7f6a2a4c39c73f1fcc1555742e1059 /src/widgets/gradient-vector.cpp
parentcmake: (diff)
parentReplace use of deprecated GtkTooltips API (diff)
downloadinkscape-51a9217db249738eb584d8884f75f3bd48cf38a5.tar.gz
inkscape-51a9217db249738eb584d8884f75f3bd48cf38a5.zip
Replace deprecated GtkTooltips
Fixed bugs: - https://launchpad.net/bugs/793086 (bzr r10277)
Diffstat (limited to 'src/widgets/gradient-vector.cpp')
-rw-r--r--src/widgets/gradient-vector.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/widgets/gradient-vector.cpp b/src/widgets/gradient-vector.cpp
index 8ef0ee313..9aa414ab6 100644
--- a/src/widgets/gradient-vector.cpp
+++ b/src/widgets/gradient-vector.cpp
@@ -788,7 +788,6 @@ static GtkWidget * sp_gradient_vector_widget_new(SPGradient *gradient, SPStop *s
gtk_box_pack_start(GTK_BOX(vb), w, TRUE, TRUE, PAD);
sp_repr_add_listener(gradient->getRepr(), &grad_edit_dia_repr_events, vb);
- GtkTooltips *tt = gtk_tooltips_new();
/* Stop list */
GtkWidget *mnu = gtk_option_menu_new();
@@ -805,12 +804,12 @@ static GtkWidget * sp_gradient_vector_widget_new(SPGradient *gradient, SPStop *s
GtkWidget *b = gtk_button_new_with_label(_("Add stop"));
gtk_widget_show(b);
gtk_container_add(GTK_CONTAINER(hb), b);
- gtk_tooltips_set_tip(tt, b, _("Add another control stop to gradient"), NULL);
+ gtk_widget_set_tooltip_text(b, _("Add another control stop to gradient"));
gtk_signal_connect(GTK_OBJECT(b), "clicked", GTK_SIGNAL_FUNC(sp_grd_ed_add_stop), vb);
b = gtk_button_new_with_label(_("Delete stop"));
gtk_widget_show(b);
gtk_container_add(GTK_CONTAINER(hb), b);
- gtk_tooltips_set_tip(tt, b, _("Delete current control stop from gradient"), NULL);
+ gtk_widget_set_tooltip_text(b, _("Delete current control stop from gradient"));
gtk_signal_connect(GTK_OBJECT(b), "clicked", GTK_SIGNAL_FUNC(sp_grd_ed_del_stop), vb);
gtk_widget_show(hb);