GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

  1. 01 Jun, 2019 1 commit
    • Christian Hergert's avatar
      va_marshaller: add various va_marshallers · 6033b645
      Christian Hergert authored
      We don't need to cover every case with a va_marshaller, but there are a
      number of them that are useful because they will often only be connected
      to by a single signal handler.
      Generally speaking, if I opened into a file to add a va_marshaller, I just
      set all of them.
  2. 12 Oct, 2018 2 commits
    • Daniel Boles's avatar
      Notebook: Ensure menu_label updates with tab_label · 80a3d709
      Daniel Boles authored
      This was noticed in Firefox and demonstrated using a GtkBuilder ui file.
      buildable_add_child() calls set_tab_label(), but the latter did nothing
      to update the menu_label corresponding to that tab with the new text.
      Using Builder to populate the tab child, only tabs other than last got
      the right non-default labels, and even that was mostly coincidental, as
      adding the main child called update_labels() via real_insert_page(), so
      it took effect when the 2nd last main child is added, updating the rest
      but leaving the last with the default label, not that given in Builder.
      Fix by factoring out the code from child_reordered() to a new helper
      menu_item_recreate() and calling that in set_tab_label(), so that
      whenever the tab_label is updated, so is its corresponding menu_label.
      This fixes the reported case and presumably others that we could write.
      fixes #1397
    • Daniel Boles's avatar
      Notebook: Don't notify 2x from set_tab_label_text · 82c53089
      Daniel Boles authored
      It calls set_tab_label(), which already does that.
  3. 16 Mar, 2018 1 commit
    • Daniel Boles's avatar
      Notebook: Don’t show raw underline/markup in popup · 7fd9f2d3
      Daniel Boles authored
      If @menu_label == NULL, we create a default page->menu_label. This took
      @tab_label.get_label() and passed that to page->menu_label.set_text().
      This is wrong because we set the plain text of the menu_label from the
      rich text of @tab_label. So, if @tab_label used mnemonics or markup, our
      menu_label got the raw underline or markup tags shown in it as raw text.
      As we call set_text() on the menu Label, the fix is to be symmetric: use
      @tab_label’s get_text() as source, as that strips underlines and markup.
      It’s not worth making the default Label ‘inherit’ :use-underline/markup;
      that’s a slippery slope, and users wanting such things can just create a
      fully fledged GtkLabel to pass as @menu_label to suppress the default.
  4. 07 Jan, 2018 1 commit
  5. 12 Sep, 2017 1 commit
  6. 01 Aug, 2017 1 commit
    • Daniel Boles's avatar
      Notebook: Remove null check after dereference · a381a06b
      Daniel Boles authored
      This function clearly assumes the parameter children cannot be NULL, and
      the call sites seem to perform enough checks to confirm this.
      CID 1388869 (#1 of 1): Dereference before null check (REVERSE_INULL)
      check_after_deref: Null-checking children suggests that it may be null,
      but it has already been dereferenced on all paths leading to the check.
  7. 18 Jul, 2017 1 commit
  8. 20 Mar, 2017 1 commit
  9. 04 Feb, 2017 1 commit
  10. 27 Jan, 2017 1 commit
  11. 24 Jan, 2017 1 commit
  12. 23 Nov, 2016 1 commit
  13. 07 Nov, 2016 1 commit
  14. 29 Aug, 2016 1 commit
  15. 24 Aug, 2016 1 commit
  16. 19 Jul, 2016 1 commit
  17. 06 Jun, 2016 1 commit
  18. 02 May, 2016 1 commit
    • Carlos Soriano Sánchez's avatar
      gtknotebook: avoid tab dnd from content · ddb0740a
      Carlos Soriano Sánchez authored
      Before commit 6c1bee23 we were setting an attribute of GtkNotebook
      to track the pressed button if the pressed button happened on the
      tab itself.
      Later in the motion handling code we were checking whether the private
      pressed button attribute was set or not in order to handle a tab dnd
      or not.
      In commit 6c1bee23 the code changed and set the pressed button
      variable unconditionally, which means, a motion event from within the
      tab content triggered a tab reordering.
      This happened only if the children hierarchy have a widget that bubbles
      up both button press event, which sets the private pressed button
      attribute; and motion events, which started the tab dnd checking the
      private pressed button attribute.
      A widget that experienced the regression was GtkListBox.
      In order to fix it, set the button pressed variable only when it press
      the tab itself, not the content.
  19. 29 Apr, 2016 1 commit
    • Matthias Clasen's avatar
      box gadget: Redo expand flag handling · 21487089
      Matthias Clasen authored
      We only keep one align flag per child, so it seems odd to
      keep separate h/v expand flags. Just keep one expand flag
      and interpret it according to orientation. Allow setting
      the expand flag for child widgets too, though, so we can
      make widget expand without interfering with the recursive
      widget expand flag.
      Update all callers.
      Use the new possibility of expanding child widgets to make
      the label of check and radio buttons expand. This fixes
      unexpected behavior of these widgets in RTL in some places.
  20. 14 Mar, 2016 1 commit
  21. 29 Feb, 2016 2 commits
  22. 27 Feb, 2016 2 commits
    • Benjamin Otte's avatar
      boxgadget: Add ability to draw children in reverse · 245d217e
      Benjamin Otte authored
      This is necessary for GtkNotebook so that the stack is always drawn
      before the header.
      And that is necessary so that the active tab can use negative
      margins to overdraw the border of the stack to create a gap and
      simulate old GTK2-style visuals for notebooks.
    • Benjamin Otte's avatar
      notebook: The active tab is now :checked · cdb1cda6
      Benjamin Otte authored
      :active is reserved for "mouse button down on node", so we have to use
      something else. And stack switcher and radio buttons use :checked for
      the active widget, so it makes sense to use :checked for the active tab,
      Themes have been adapted.
      TODO: Implement :active for tabs.
  23. 15 Feb, 2016 1 commit
    • Matthias Clasen's avatar
      notebook: Fix a misplaced tab label · cb43af09
      Matthias Clasen authored
      Sometimes default tab labels ("Page <n>") get created on-demand,
      and in that case, we were forgetting to put them below the tab
      node in the CSS node tree. The visible result of this is that the
      heuristics for when to give notebooks background in Adwaita fail
      in some cases. So, make sure to always place the label below the
      tab node.
  24. 11 Feb, 2016 1 commit
  25. 08 Feb, 2016 1 commit
    • Timm Bäder's avatar
      Various documentation fixes · c5369356
      Timm Bäder authored
      Always have Since: annotations at the very bottom, use the correct
      ClassName::signal-name/ClassName:property-name syntax, fix a few typos
      in type names, wrong function names, non-existing type names, etc.
  26. 02 Feb, 2016 1 commit
  27. 23 Jan, 2016 1 commit
  28. 20 Jan, 2016 5 commits
  29. 18 Jan, 2016 1 commit
  30. 17 Jan, 2016 2 commits
  31. 15 Jan, 2016 2 commits