Skip to content
Snippets Groups Projects
  1. Jul 27, 2019
    • Tanu Kaskinen's avatar
      mainwindow: scale icons to sane size · e6caa8b8
      Tanu Kaskinen authored
      If load_icon() fails, we treat the icon name as a file path and try to
      load an image from the path. In case that works, we need to ensure that
      the has correct size. Previously that wasn't done, which led to too
      large icons.
      
      scale_simple() doesn't do anything if the image is already the correct
      size, so we can call it unconditionally.
      
      The exception handling was a bit weird in that the exception types
      didn't match the documentation of IconTheme::load_icon() and
      Image::set(). I updated the exception types (Image::set() doesn't need
      exception handling any more, because now it's called with a Pixbuf
      rather than a file name).
      
      Fixes: #60
      e6caa8b8
  2. Jul 02, 2019
  3. Jun 23, 2019
  4. May 22, 2019
  5. Apr 08, 2019
  6. Mar 05, 2019
  7. Mar 02, 2019
  8. Feb 26, 2019
    • Tanu Kaskinen's avatar
      channelwidget: ensure that all channel labels have the same width · 5f664bc6
      Tanu Kaskinen authored
      pavucontrol.glade previously set the channel label width to 15
      characters, with the goal of making all channel labels have the same
      width. However, with some translations and font settings the configured
      width wasn't enough, so sometimes a label was wider than others, and
      that made the volume slider widths different too. If the volume sliders
      have different widths, it's very hard to visually compare the volumes of
      the channels.
      
      This patch removes the fixed width in pavucontrol.glade and solves the
      problem by finding the widest label and using that label's width with
      all labels.
      
      Fixes: #51
      5f664bc6
    • Tanu Kaskinen's avatar
      channelwidget: refactor to reduce repetition · f200a10d
      Tanu Kaskinen authored
      DeviceWidget and StreamWidget had some duplicate code to initialize
      ChannelWidgets. This patch moves some of the duplicated initialization
      code into ChannelWidgets to reduce repetition and to improve
      encapsulation.
      f200a10d
    • Tanu Kaskinen's avatar
      pavucontrol.glade: right-align channel labels · 46ce3e41
      Tanu Kaskinen authored
      The channel labels ("Front Left" etc.) that are adjacent to volume
      sliders used to be left-aligned, which meant that there was some empty
      space (depending on the text width) between the label text and the
      volume slider. Right-aligning the labels looks nicer.
      46ce3e41
  9. Feb 25, 2019
  10. Feb 09, 2019
  11. Jan 11, 2019
  12. Nov 24, 2018
  13. Nov 21, 2018
    • Tanu Kaskinen's avatar
      drop gtk2 support · dfeabf08
      Tanu Kaskinen authored
      When opening pavucontrol.glade with Glade 3.22.1, this message was
      shown:
      
          pavucontrol.glade targets Gtk+ 2.16
      
          But this version of Glade is for GTK+ 3 only.
          Make sure you can run this project with Glade 3.8 with no deprecated
          widgets first.
      
      I think it's best to just drop the gtk2 support.
      dfeabf08
    • Tanu Kaskinen's avatar
      pavucontrol.glade: changes automatically done by Glade · 577246f1
      Tanu Kaskinen authored
      When opening pavucontrol.glade in Glade 3.22.1 and saving the file
      without doing any manual changes, these changes are made to the file.
      The changes seem harmless, so let's apply them to avoid unnecessary
      clutter appearing when doing more important changes in the future.
      577246f1
    • Tanu Kaskinen's avatar
      pavucontrol.glade: object renames automatically done by Glade · 0fa19691
      Tanu Kaskinen authored
      When opening pavucontrol.glade with Glade and saving it without any
      manual changes, Glade does these object rename to get rid of duplicate
      IDs. None of these are referenced by the code, so the renames are
      harmless.
      0fa19691
    • Tanu Kaskinen's avatar
      rename more objects in the quest to get rid of duplicate IDs · 0047261f
      Tanu Kaskinen authored
      Continuing from the previous patch, this patch renames more objects in
      pavucontrol.glade to get rid of duplicate IDs. nameLabel and iconImage
      actually weren't any more duplicates, because the previous patch renamed
      the corresponding IDs for devices and streams, but the card related
      objects were renamed nevertheless to be more descriptive and consistent
      with the IDs used by the device and stream widgets.
      0047261f
    • Tanu Kaskinen's avatar
      move some widget initializations from MinimalStreamWidget to subclasses · c760edaf
      Tanu Kaskinen authored
      Current Glade versions want object IDs to be unique, but currently
      pavucontrol.glade shares some IDs between the top-level windows. I guess
      this used to be OK in the past, and the "interface-naming-policy
      toplevel-contextual" comment in the beginning of the .glade file
      probably has something to do with this. I want to update the .glade file
      to be easy to work with current Glade versions, so I will remove the
      duplicated object IDs.
      
      The first IDs to change are the "channelsVBox", "nameLabel",
      "boldNameLabel" and "iconImage" IDs. These were used by
      MinimalStreamWidget to create widgets for both devices and streams, but
      now that the IDs are different for devices and streams, the widgets have
      to be created by the subclasses.
      
      MinimalStreamWidget doesn't need the Gtk::Builder in its constructor any
      more, so remove that parameter to avoid warnings about an unused
      variable.
      c760edaf
  14. Oct 18, 2018
    • Tanu Kaskinen's avatar
      pavuapplication: initialize members in the constructor · d3b3bee3
      Tanu Kaskinen authored
      It seems that without explicit initialization of the members they remain
      uninitialized. The lack of initialization caused crashing, because
      PavuApplication::on_activate() creates the MainWindow only if mainWindow
      is NULL, and if it's some random value instead, on_activate() calls
      selectTab() on a non-existent window.
      
      Fixes: #49
      d3b3bee3
  15. Oct 12, 2018
  16. Oct 07, 2018
  17. Aug 07, 2018
  18. May 24, 2018
  19. May 01, 2018
  20. Mar 24, 2018
    • Nikita Zlobin's avatar
      UI form enhancement · 7c3e76e7
      Nikita Zlobin authored and Tanu Kaskinen's avatar Tanu Kaskinen committed
      Padding around scrollviews inside notebook is removed - bottom panel now top padding as well
      and both are visually separated.
      7c3e76e7
  21. Jan 09, 2018
  22. Jan 03, 2018
  23. Dec 14, 2017
Loading