[pulseaudio-discuss] [paprefs][PATCH 9/9] Port from GTK2 to GTK3

Felipe Sateler fsateler at debian.org
Sat May 12 15:40:16 UTC 2018


On Fri, May 11, 2018 at 9:23 AM NicoHood <pulseaudio-discuss at nicohood.de>
wrote:

> On 04/17/2018 08:25 AM, Tanu Kaskinen wrote:
> > From: Felipe Sateler <fsateler at debian.org>
> >
> > Switch from libglade to GtkBuilder, as that is the new preferred
> interface.
> > ---
> >  configure.ac      |   2 +-
> >  src/paprefs.cc    |  10 +--
> >  src/paprefs.glade | 224
> ++++++++++++++++++++++++++----------------------------
> >  3 files changed, 110 insertions(+), 126 deletions(-)
> >
> > [..]
>
> I pulled the current master (534d20a1d738f21365b56a08f6553d1be8ca8914)
> which should now have gtk3 support. I tried to open it in glade, but I
> get lots of warnings that some widgets are not supported by the gtk
> version or are dperecated at all. I could fix some warnings by
> specifying the latest gtk version, but still the fixes seem incomplete
> to me.
>
> I originally wanted to port my loopback module patch, but it seems I
> can't do that with the current glade file. I am not that experienced in
> gtk development, so I hope someone can help me. I am using ArchLinux
> with the latest gtk3.22.30-1.
>

It seems glade is a bit more strict than the actual gtkbuilder, because the
only change required to stop the complaints is this:

diff --git a/src/paprefs.glade b/src/paprefs.glade
index 401e9c1..39bc828 100644
--- a/src/paprefs.glade
+++ b/src/paprefs.glade
@@ -1,7 +1,6 @@
 <?xml version="1.0"?>
 <interface>
-  <!-- interface-requires gtk+ 2.16 -->
-  <!-- interface-naming-policy toplevel-contextual -->
+  <requires lib="gtk+" version="3.0"/>
   <object class="GtkWindow" id="mainWindow">
     <property name="can_focus">False</property>
     <property name="title" translatable="yes">PulseAudio
Preferences</property>

-- 

Saludos,
Felipe Sateler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20180512/b462b098/attachment.html>


More information about the pulseaudio-discuss mailing list