From c0ae0bee37a04c6e79dbe0de00f173c80917ffbe Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Tue, 3 Jan 2012 00:07:54 +0000 Subject: Cleanup GSEAL issues and deprecated GtkTooltips (bzr r10826) --- src/live_effects/parameter/path.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/live_effects/parameter/path.cpp') diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 32da0a426..8188ea19a 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -140,13 +140,13 @@ PathParam::param_getSVGValue() const } Gtk::Widget * -PathParam::param_newWidget(Gtk::Tooltips * tooltips) +PathParam::param_newWidget() { Gtk::HBox * _widget = Gtk::manage(new Gtk::HBox()); Gtk::Label* pLabel = Gtk::manage(new Gtk::Label(param_label)); static_cast(_widget)->pack_start(*pLabel, true, true); - tooltips->set_tip(*pLabel, param_tooltip); + pLabel->set_tooltip_text(param_tooltip); Gtk::Widget* pIcon = Gtk::manage( sp_icon_get_icon( "tool-node-editor", Inkscape::ICON_SIZE_BUTTON) ); Gtk::Button * pButton = Gtk::manage(new Gtk::Button()); @@ -156,7 +156,7 @@ PathParam::param_newWidget(Gtk::Tooltips * tooltips) pButton->show(); pButton->signal_clicked().connect(sigc::mem_fun(*this, &PathParam::on_edit_button_click)); static_cast(_widget)->pack_start(*pButton, true, true); - tooltips->set_tip(*pButton, _("Edit on-canvas")); + pButton->set_tooltip_text(_("Edit on-canvas")); pIcon = Gtk::manage( sp_icon_get_icon( GTK_STOCK_COPY, Inkscape::ICON_SIZE_BUTTON) ); pButton = Gtk::manage(new Gtk::Button()); @@ -166,7 +166,7 @@ PathParam::param_newWidget(Gtk::Tooltips * tooltips) pButton->show(); pButton->signal_clicked().connect(sigc::mem_fun(*this, &PathParam::on_copy_button_click)); static_cast(_widget)->pack_start(*pButton, true, true); - tooltips->set_tip(*pButton, _("Copy path")); + pButton->set_tooltip_text(_("Copy path")); pIcon = Gtk::manage( sp_icon_get_icon( GTK_STOCK_PASTE, Inkscape::ICON_SIZE_BUTTON) ); pButton = Gtk::manage(new Gtk::Button()); @@ -176,7 +176,7 @@ PathParam::param_newWidget(Gtk::Tooltips * tooltips) pButton->show(); pButton->signal_clicked().connect(sigc::mem_fun(*this, &PathParam::on_paste_button_click)); static_cast(_widget)->pack_start(*pButton, true, true); - tooltips->set_tip(*pButton, _("Paste path")); + pButton->set_tooltip_text(_("Paste path")); pIcon = Gtk::manage( sp_icon_get_icon( "edit-clone", Inkscape::ICON_SIZE_BUTTON) ); pButton = Gtk::manage(new Gtk::Button()); @@ -186,7 +186,7 @@ PathParam::param_newWidget(Gtk::Tooltips * tooltips) pButton->show(); pButton->signal_clicked().connect(sigc::mem_fun(*this, &PathParam::on_link_button_click)); static_cast(_widget)->pack_start(*pButton, true, true); - tooltips->set_tip(*pButton, _("Link to path")); + pButton->set_tooltip_text(_("Link to path")); static_cast(_widget)->show_all_children(); -- cgit v1.2.3