diff options
author | JA <jagw40k@free.fr> | 2023-11-30 16:44:52 +0100 |
---|---|---|
committer | Arun Raghavan <arun@asymptotic.io> | 2024-04-12 13:05:00 -0400 |
commit | 52aef7e81d9c44601e78bac4930084b513a2936e (patch) | |
tree | 60b08bbe5476319788a8bcd5b2325fc33287d415 /src/rolewidget.cc | |
parent | 04655fae7049befec6efc428d039262ae263d194 (diff) |
Use Gtk4 instead of Gtk3
Diffstat (limited to 'src/rolewidget.cc')
-rw-r--r-- | src/rolewidget.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/rolewidget.cc b/src/rolewidget.cc index 7f755aa..cff0880 100644 --- a/src/rolewidget.cc +++ b/src/rolewidget.cc @@ -39,15 +39,11 @@ RoleWidget::RoleWidget(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder> RoleWidget* RoleWidget::create() { RoleWidget* w; Glib::RefPtr<Gtk::Builder> x = Gtk::Builder::create_from_file(GLADE_FILE, "streamWidget"); - x->get_widget_derived("streamWidget", w); + w = Gtk::Builder::get_widget_derived<RoleWidget>(x, "streamWidget"); w->reference(); return w; } -bool RoleWidget::onContextTriggerEvent(GdkEventButton*) { - return false; -} - void RoleWidget::onMuteToggleButton() { StreamWidget::onMuteToggleButton(); @@ -69,7 +65,7 @@ void RoleWidget::executeVolumeUpdate() { pa_operation* o; if (!(o = pa_ext_stream_restore_write(get_context(), PA_UPDATE_REPLACE, &info, 1, TRUE, NULL, NULL))) { - show_error(_("pa_ext_stream_restore_write() failed")); + show_error(this, _("pa_ext_stream_restore_write() failed")); return; } |