1. 31 Mar, 2018 1 commit
  2. 29 Mar, 2018 4 commits
  3. 22 Mar, 2018 2 commits
  4. 20 Mar, 2018 1 commit
    • Peter Bloomfield's avatar
      gtkimmodule: make match_backend() query · 6e2d1403
      Peter Bloomfield authored
      …the wayland registry.
      
      Wnen _gtk_im_module_get_default_context_id calls
      match_backend (context_id) and the default GdkDisplay
      is wayland, match_backend() should return TRUE only if
      gdk_wayland_display_query_registry (display, "gtk_text_input_manager")
      returns TRUE.
      6e2d1403
  5. 19 Mar, 2018 2 commits
  6. 17 Mar, 2018 1 commit
  7. 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.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=705509
      7fd9f2d3
  8. 14 Mar, 2018 2 commits
    • Daniel Boles's avatar
      SpinButton: Redraw +/- buttons after :wrap changes · 0a032381
      Daniel Boles authored
      Otherwise, the + or - button might change sensitivity based on whether
      it can be used to wrap, but without ensuring we update its state, the
      ability to :wrap isn't reflected until something else triggers a draw.
      
      GNOME/gtk#88
      0a032381
    • Jonas Ådahl's avatar
      entrycompletion: Realize popup after setting screen · ba83a2c4
      Jonas Ådahl authored
      Realization is done as a side effect of calling
      _gtk_entry_completion_resize_popup(), but if this is done before the
      GdkScreen of the GtkWindow is set up correctly, it may result in the
      widget being unrealized when the screen is updated. This may happen
      when the file dialog parent window is not using the default GdkDisplay.
      
      To avoid this issue, realize the popup after the screen has been
      properly set up.
      
      Fixes #83 in gtk3
      ba83a2c4
  9. 13 Mar, 2018 1 commit
    • Daniel Boles's avatar
      FileChooserWidget: Fix leaks in .get_subtitle() · 0f3396d7
      Daniel Boles authored
      Now that subtitle's default value "Searching" for OPERATION_MODE_SEARCH
      is duplicated as it should be, we cannot reassign other strings to it
      anymore, as that resulted in the original dupe of "Searching" leaking.
      
      Fix this by only assigning the dup'd "Searching" after trying to get
      more specific values, not before. We therefore need to set it to NULL
      during its declaration, and that means we needn't in the final else.
      0f3396d7
  10. 12 Mar, 2018 6 commits
  11. 09 Mar, 2018 1 commit
    • Nikita Churaev's avatar
      Tidy up the search bar double border fix · 4e2f59ad
      Nikita Churaev authored
      Match "box" instead of "*", as already done for the search bar GTK4 and
      for the action box in GTK3. Also clarify which widget property is
      causing the margin which needs to be undone.
      4e2f59ad
  12. 07 Mar, 2018 2 commits
  13. 06 Mar, 2018 1 commit
    • Timm Bäder's avatar
      expander: fix sizes in resize_toplevel · 46828f8e
      Timm Bäder authored
      We can't use gtk_widget_get_allocation for either non-anchored widgets
      (which happens with the child widget when the expander is unexpanded)
      nor toplevel windows since that will include the window decorations.
      
      Fixes #70 in gtk3
      46828f8e
  14. 05 Mar, 2018 1 commit
  15. 04 Mar, 2018 1 commit
    • Tomasz Miąsko's avatar
      Include C headers in introspection file. · 91498c7d
      Tomasz Miąsko authored
      Include gtk/gtk.h and gtk/gtk-a11y.h unconditionally,
      and gtk/gtkx.h when building with X11. Ensures that
      introspection data contains complete set required
      headers, which is useful when generating C code based
      on introspection data.
      
      Diff for generated gir (when using X11):
      
      ```diff
         <include name="xlib" version="2.0"/>
         <package name="gtk+-3.0"/>
      +  <c:include name="gtk/gtk-a11y.h"/>
      +  <c:include name="gtk/gtk.h"/>
      +  <c:include name="gtk/gtkx.h"/>
         <namespace name="Gtk"
                    version="3.0"
      ```
      
      Fixes issue #56.
      91498c7d
  16. 03 Mar, 2018 1 commit
  17. 01 Mar, 2018 3 commits
  18. 18 Feb, 2018 2 commits
    • Christoph Reiter's avatar
      gtk_init: Fix debug flags handling when a display is already open · 8e540f2f
      Christoph Reiter authored
      In PyGObject gdk_init() is called before gtk_init() and thus there is
      already a default display open when gtk_init() is called.
      The code assigning the display to the debug_flags struct gets only
      called when the default display changes, which never happens
      when there already is one. As a result GTK_DEBUG=interactive
      doesn't do anyting with Python apps.
      
      This makes it call the change callback in case a display is already
      there.
      
      See GNOME/pygobject#166
      8e540f2f
    • John Lindgren's avatar
      Fix incorrect optimization in find_builtin_icon(). · 5aa939dc
      John Lindgren authored
      When we found an icon with exactly the requested size, we'd stop
      searching immediately (good), but we'd neglect to set the returned
      min_difference to 0 (bad).  This caused theme_lookup_icon() to
      prefer other, potentially much worse, matches over the exact one.
      5aa939dc
  19. 17 Feb, 2018 1 commit
  20. 15 Feb, 2018 1 commit
  21. 14 Feb, 2018 3 commits
  22. 12 Feb, 2018 1 commit
    • Rafał Lużyński's avatar
      calendar: Use the new "%OB" format if supported · cbf118c2
      Rafał Lużyński authored
      Due to the recent changes introduced in glibc 2.27 "%OB" is the
      correct format to obtain a month name as used in the calendar
      header.  The same rule has been working in BSD family (including
      OS X) since 1990s.  This simple hack checks whether "%OB" is supported
      at runtime and uses it if it is, falls back to the old "%B" otherwise.
      
      Closes: #9
      cbf118c2
  23. 11 Feb, 2018 1 commit