Permalink
Switch branches/tags
Commits on Jan 4, 2017
  1. docs: improve the documentation of GtkEntry:attributes

    swilmet committed Nov 25, 2016
    See the implementation of gtk_entry_create_layout():
    pango_attr_list_splice() is used to add the PangoAttrList of the preedit
    string. And that is done *after* applying the PangoAttrList of the
    "attributes" property.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776868
Commits on Nov 26, 2016
  1. docs: fix a parameter name of GtkEntry::populate-popup

    swilmet committed Nov 26, 2016
    Trivial commit.
    
    The documentation block refers to @widget, not @popup. @widget is a
    better name since the type is GtkWidget.
  2. docs: fix docs of functions to convert layout_index <-> text_index

    swilmet committed Nov 25, 2016
    Trivial commit.
    
    The documentation was swapped. The documentation for the parameters and
    the return values is good.
Commits on Nov 1, 2016
Commits on Oct 27, 2016
  1. docs: more logical GtkEntry function order in the section file

    swilmet committed Oct 27, 2016
    Trivial commit.
    
    Group related functions together. Most of the functions had already the
    set -> get order, so keep that order.
  2. docs: consistent get/set function order for GtkScrolledWindow

    swilmet committed Oct 27, 2016
    Trivial commit.
    
    For all the other GtkScrolledWindow functions, the order was get -> set.
    Except for 3 functions, so fix that.
Commits on Oct 26, 2016
  1. docs: fix copy/paste errors in the docs of GtkScrolledWindow

    swilmet committed Oct 26, 2016
    Trivial commit.
  2. docs: update section file for GtkScrolledWindow

    swilmet committed Oct 26, 2016
    Trivial commit.
    
    - More logical ordering (re-group related things).
    - Add missing functions: max_content_width/height.
Commits on Jul 28, 2016
  1. docs: trivial build fix

    swilmet committed Jul 28, 2016
    The error was:
    gtk3-scan.c:193: undefined reference to `gtk_shortcuts_label_get_type'
    collect2: error: ld returned 1 exit status
    
    It's since commit 7543cd8, which made
    the GtkShortcutLabel class public.
Commits on Jul 25, 2016
  1. docs: GtkWidget::style-updated vs GtkStyleContext::changed

    swilmet committed with Matthias Clasen Jul 24, 2016
    Explain the difference between those two signals.
    
    Add "Since: 3.0" for GtkStyleContext::changed, since that signal has
    been added in commit 9f84e10, present
    since 2.91.6.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769047
  2. docs: add missing info for gtk_widget_get_style_context()

    swilmet committed with Matthias Clasen Jul 24, 2016
    It is important to know whether the returned object can or cannot
    change, for a certain widget. For example to connect to the
    GtkStyleContext::changed signal.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769047
Commits on Apr 22, 2016
  1. app: share function to normalise detailed action name

    swilmet committed Apr 20, 2016
    Put the function in gtkactionmuxer.c, where
    gtk_print_action_and_target() is implemented.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764879
  2. app-accels: rename static functions

    swilmet committed Apr 20, 2016
    Remove the "accels_" prefix from the remaining static functions. The
    prefix no longer makes sense since the whole file is devoted to accels.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764879
  3. app: extract GtkApplicationAccels private class

    swilmet committed Apr 11, 2016
    This has several benefits:
    - Less code in GtkApplication. The accels handling is something
      self-contained, and GtkApplication now delegates the work.
    - For the accels functions, there is now a distinction between static
      functions and functions in the gtkapplicationaccelsprivate.h header,
      which makes the code easier to understand, because we have a good
      overview just by reading the header.
    - The struct _GtkApplicationPrivate is now easier to find instead of
      being in the middle of the file.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764879
  4. app: write higher-level gtk_application_accels static functions

    swilmet committed Apr 11, 2016
    These will become the functions present in the
    gtkapplicationaccelsprivate.h header.
    
    The gtk_application_accels functions deal with detailed_action_name's
    instead of action_and_target's. action_and_target is an implementation
    detail of Accels.
    
    The added function prototype is temporary, it'll be removed in a later
    commit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764879
Commits on Apr 12, 2016
  1. app: add missing g_returns

    swilmet committed Apr 10, 2016
    And have the g_returns in the same order as the function parameters.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764846
Commits on Apr 10, 2016
  1. app: minor code improvements

    swilmet committed Apr 10, 2016
    - use GDK_EVENT_PROPAGATE
    - pass better zero-values to gtk_init(), since the parameters are
      pointers.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764846
  2. app: improve code of extract_accels_from_menu()

    swilmet committed Apr 10, 2016
    sub_model is clearer than "m". And we don't use the key, so we can pass
    NULL instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764846
  3. app: don't use deprecated function

    swilmet committed Apr 10, 2016
    gtk_application_add_accelerator() is deprecated, but was still used
    inside IGNORE_DEPRECATIONS's.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764846
  4. app: improve doc of gtk_application_set_accels_for_action()

    swilmet committed Apr 9, 2016
    When reading the API for the first time I didn't know what was the
    "detailed" action name.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764846
  5. app: avoid code duplication for setting accels

    swilmet committed Apr 9, 2016
    The implementation of the deprecated functions is now based on the
    non-deprecated gtk_application_set_accels_for_action().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764846
Commits on Apr 9, 2016
  1. app: fix indentation

    swilmet committed Apr 9, 2016
    And add missing curly braces.
Commits on Dec 8, 2015
  1. Don't use gtk_text_iter_begins_tag() (deprecated)

    swilmet committed Dec 6, 2015
    Use gtk_text_iter_starts_tag() instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759092
  2. textiter: add starts_tag() and deprecate begins_tag()

    swilmet committed Dec 6, 2015
    The name gtk_text_*_begins_* was used only for begins_tag(). All other
    similar functions use "starts": starts_line(), starts_word(), etc.
    
    So for consistency, add gtk_text_iter_starts_tag() and deprecate
    gtk_text_iter_begins_tag().
    
    Also change (allow-none) to (nullable), to use the new annotation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759092
Commits on Nov 30, 2015
  1. textiter: fix bug in case insensitive backward search

    swilmet committed Nov 26, 2015
    'win.lines' contains the same content as the GtkTextBuffer, so to find
    @match_start, forward_chars_with_skipping() is called with
    skip_decomp=FALSE (the last parameter). So far so good.
    
    On the other hand, the content 'lines' (the needle split in lines) is
    casefolded and normalized for a case insensitive search. So,
    forward_chars_with_skipping(..., skip_decomp=TRUE) must be called only
    for the portion of text containing the needle.
    
    Since 'start_tmp' contains the location at the start of the match, we
    can simply begin at that location to find the end of the match.
    
    Unit tests are added.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=758698
Commits on Nov 12, 2015
  1. textbuffer: nicer get_iter functions, without return values

    swilmet committed Nov 12, 2015
    Avoid crashes when passing an invalid location to a
    gtk_text_buffer_get_iter_at_*() function.
    
    A first attempt added boolean return values to know if @iter has been set to
    the exact location, but it breaks Python and JS bindings because the out
    parameter is already a return value in those languages.
    
    Unit tests are added.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735341
Commits on Oct 16, 2015
  1. textbuffer: nicer get_iter functions

    swilmet committed Oct 15, 2015
    Avoid crashes when passing an invalid location to a
    gtk_text_buffer_get_iter_at_*() function.
    
    A boolean is returned to know if @iter has been set to the exact
    location.
    
    Unit tests are added.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735341
Commits on Dec 17, 2014
  1. textview: add extend-selection signal

    swilmet committed Dec 15, 2014
    To be able to customize the double-click and triple-click behaviors, to
    provide custom selection boundaries.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=111503
Commits on Oct 18, 2014
  1. docs: documentation for GtkTextBufferClass

    swilmet committed Oct 18, 2014
    It'll most probably be more useful in the near future.