1. 12 Jan, 2018 1 commit
  2. 27 Oct, 2017 1 commit
  3. 06 Aug, 2017 1 commit
  4. 15 Jun, 2017 1 commit
  5. 06 Apr, 2017 1 commit
  6. 10 Nov, 2016 1 commit
  7. 13 Oct, 2016 3 commits
  8. 07 Aug, 2016 1 commit
    • Matthias Clasen's avatar
      headerbar: Fix size allocation · 5fefc7a7
      Matthias Clasen authored
      The GtkHeaderBar gadget implementation was subtly broken: it called
      gtk_widget_set_allocation both in gtk_header_bar_size_allocate (with
      the actual allocation) and in gtk_header_bar_allocate_contents (with
      the content allocation of the main gadget). Dropping the second call
      fixes the render node conversion for GtkHeaderBar.
      5fefc7a7
  9. 29 Jun, 2016 1 commit
  10. 25 Jun, 2016 4 commits
    • Ray Strode's avatar
      headerbar: support expand property for children · 0015ebc4
      Ray Strode authored
      The header bar currently ignores the expand property on its
      children. This commit changes the code to honor that property.
      
      It divvies up any free space and distributes it equally to packed
      children (with any left over space given out a pixel at a time
      on a first come, first serve basis).
      
      This commit also adds support for the title widget to be made
      expandable.
      
      It accomplishes this by using up the padding the title widget
      is centered with.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=724332
      0015ebc4
    • Ray Strode's avatar
      headerbar: compute nominal size of sides up front · 847a43c4
      Ray Strode authored
      In order to support the expand property on children, we're
      going to need to look at the size of the packed children
      on each side of the title widget, up front, before allocating
      them (to compute how much extra allocation each expanded child
      gets).
      
      This commit lays the groundwork for that analysis by splitting
      the size calculation of each side of the header bar outside
      of the loop that allocates each child of the header bar.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=724332
      847a43c4
    • Ray Strode's avatar
      headerbar: simplify some size allocation code · eccfce50
      Ray Strode authored
      With a headerbar, the widget in the center may be a label, constructed
      internally, or a custom widget, constructed externally.  The size
      allocation code needs to handle either case the same way for the most
      part.  There's more than one place in the code that checks which of
      the two widgets to use and does some operation on the selected one.
      
      This commit simplifies the code by checking up front which one is the
      center (title) widget and storing that in a temporary variable,
      This allows reducing duplicated logic later on in the function.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=724332
      eccfce50
    • Ray Strode's avatar
      headerbar: simplify calculation in size allocation code · e0bebba4
      Ray Strode authored
      There's some extraneous MIN() calls that have predetermined answers.
      
      This commit drops them and then simplifies a few redudant checks into
      one MIN call.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=724332
      e0bebba4
  11. 23 Jun, 2016 2 commits
    • Ray Strode's avatar
      headerbar: don't use GTK_PACK_* as indices into array · 78eccd0d
      Ray Strode authored
      The size allocation code maintains an array of two elements,
      to track the allocation of children packed into the two sides
      of a header bar. Sometimes this array is indexed with 0 and 1,
      and sometimes its indexed with GTK_PACK_START and GTK_PACK_END.
      The latter happen to have the values 0 and 1, respectively, but
      that's not really obvious.
      
      For clarity, this commit changes the code to index those arrays
      consistently, sticking to 0 and 1 across the board.
      78eccd0d
    • Ray Strode's avatar
      headerbar: don't allocate both label and custom title · 01eda209
      Ray Strode authored
      It's only possible to have a label or a custom title, not both.
      The size allocate code confusingly treats them as independent.
      
      That is confusing, because, as the code is written, it makes it
      look like the space for the custom title isn't getting accounted
      for.
      
      This commit else-ifies some parts of the size allocate code for
      clarity.
      01eda209
  12. 01 Jun, 2016 1 commit
    • Olivier Fourdan's avatar
      headerbar: do not show buttons for modals/transients · 7c397c62
      Olivier Fourdan authored
      GtkHeadeBar checks the window type hint to determine if the regular
      buttons such as menu, maximize or iconify should be visible in the
      header bar.
      
      However, an application may very well use a "normal" toplevel window and
      set it transient and modal afterwards. In such a case, the iconify
      button would remain visible, and the user can hide the window, but being
      a modal, the parent window would remain insensitive.
      
      Check for the window type, modality and transient relationship to decide
      whether or not the regular toplevel buttons should be visible in the
      header bar.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=767052
      7c397c62
  13. 02 Apr, 2016 1 commit
    • Timm Bäder's avatar
      headerbar: Don't underallocate the label box · 58891c1f
      Timm Bäder authored
      We use a label_sizing_box to make sure the headerbar can always contain
      both a title and a subtitle without resizing when showing/hiding either
      of them, but we should only do that for the height; the min width of the
      label_box can be larger than that of the label_sizing_box.
      58891c1f
  14. 09 Jan, 2016 1 commit
  15. 08 Jan, 2016 1 commit
    • Alberto Ruiz's avatar
      introspection: This patch fixes nullable return values fixes for the following symbols in gtk · 496f0892
      Alberto Ruiz authored
        gtk_accel_group_query
        gtk_accel_group_from_accel_closure
        gtk_accel_label_get_accel_widget
        gtk_accessible_get_widget
        gtk_actionable_get_action_name
        gtk_app_chooser_get_app_info
        gtk_app_chooser_button_get_heading
        gtk_app_chooser_dialog_get_heading
        gtk_application_get_window_by_id
        gtk_assistant_get_nth_page
        gtk_binding_set_find
        gtk_builder_get_object
        gtk_builder_lookup_callback_symbol
        gtk_builder_get_application
        gtk_button_get_image
        gtk_cell_area_get_focus_from_sibling
        gtk_cell_renderer_start_editing
        gtk_cell_view_get_model
        gtk_cell_view_get_displayed_row
        gtk_clipboard_get_owner
        gtk_container_get_focus_child
        gtk_container_get_focus_vadjustment
        gtk_container_get_focus_hadjustment
        gtk_dialog_get_widget_for_response
        gtk_drag_get_source_widget
        gtk_drag_dest_get_target_list
        gtk_drag_source_get_target_list
        gtk_entry_completion_get_model
        gtk_entry_completion_compute_prefix
        gtk_expander_get_label_widget
        gtk_file_chooser_get_filename
        gtk_file_chooser_get_current_folder
        gtk_file_chooser_get_uri
        gtk_file_chooser_get_current_folder_uri
        gtk_file_chooser_get_preview_widget
        gtk_file_chooser_get_preview_file
        gtk_file_chooser_get_preview_filename
        gtk_file_chooser_get_preview_uri
        gtk_file_chooser_get_extra_widget
        gtk_file_chooser_get_filter
        gtk_file_chooser_native_get_accept_label
        gtk_file_chooser_native_get_cancel_label
        gtk_file_filter_get_name
        gtk_font_chooser_get_font_family
        gtk_font_chooser_get_font_face
        gtk_font_chooser_get_font
        gtk_font_chooser_get_font_desc
        gtk_font_chooser_get_font_map
        gtk_frame_get_label
        gtk_gesture_get_device
        gtk_gesture_get_window
        gtk_gl_area_get_error
        gtk_header_bar_get_title
        gtk_header_bar_get_subtitle
        gtk_header_bar_get_custom_title
        gtk_icon_info_get_filename
        gtk_icon_view_get_path_at_pos
        gtk_icon_view_get_model
        gtk_image_get_pixbuf
        gtk_image_get_animation
        gtk_label_get_mnemonic_widget
        gtk_label_get_attributes
        gtk_check_version
        gtk_menu_button_get_popup
        gtk_menu_button_get_menu_model
        gtk_menu_button_get_align_widget
        gtk_menu_button_get_popover
        gtk_menu_item_get_submenu
        gtk_menu_item_get_accel_path
        gtk_native_dialog_get_title
        gtk_native_dialog_get_transient_for
        gtk_notebook_get_nth_page
        gtk_notebook_get_tab_label_text
        gtk_notebook_get_menu_label
        gtk_notebook_get_menu_label_text
        gtk_notebook_get_group_name
        gtk_notebook_get_action_widget
        gtk_offscreen_window_get_surface
        gtk_offscreen_window_get_pixbuf
        gtk_paned_get_child1
        gtk_paned_get_child2
        gtk_places_sidebar_get_location
        gtk_places_sidebar_get_nth_bookmark
        gtk_plug_get_socket_window
        gtk_popover_get_default_widget
        gtk_progress_bar_get_text
        gtk_recent_filter_get_name
        gtk_recent_manager_lookup_item
        gtk_settings_get_default
        gtk_socket_get_plug_window
        gtk_stack_sidebar_get_stack
        gtk_stack_switcher_get_stack
        gtk_style_context_get_section
        gtk_style_context_get_parent
        gtk_style_context_get_frame_clock
        gtk_test_find_widget
        gtk_text_buffer_get_mark
        gtk_text_tag_table_lookup
        gtk_text_view_get_tabs
        gtk_text_view_toggle_cursor_visible
        gtk_text_view_get_window
        gtk_toolbar_get_nth_item
        gtk_tool_button_get_label
        gtk_tool_button_get_icon_name
        gtk_tool_button_get_label_widget
        gtk_tool_button_get_icon_widget
        gtk_tool_palette_get_drop_item
        gtk_tool_palette_get_drop_group
        gtk_tree_model_filter_convert_child_path_to_path
        gtk_tree_model_filter_convert_path_to_child_path
        gtk_tree_model_sort_convert_child_path_to_path
        gtk_tree_model_sort_convert_path_to_child_path
        gtk_tree_view_get_column
        gtk_tree_view_get_bin_window
        gtk_tree_view_column_get_widget
        gtk_tree_view_column_get_tree_view
        gtk_widget_get_frame_clock
        gtk_window_group_get_current_device_grab
        GtkTextBufferSerializeFunc
      496f0892
  16. 01 Jan, 2016 1 commit
  17. 15 Dec, 2015 1 commit
  18. 08 Dec, 2015 1 commit
  19. 22 Nov, 2015 1 commit
  20. 19 Nov, 2015 1 commit
  21. 03 Nov, 2015 1 commit
  22. 30 Oct, 2015 1 commit
  23. 30 Sep, 2015 1 commit
  24. 29 Sep, 2015 1 commit
  25. 06 Sep, 2015 1 commit
  26. 19 Jul, 2015 1 commit
    • Matthias Clasen's avatar
      Fix csd decorations · f881f377
      Matthias Clasen authored
      By accident, commit b9b17c3c removed one line
      that wasn't unused, but important for hiding close buttons on
      dialogs. Bring it back.
      f881f377
  27. 17 Jul, 2015 1 commit
  28. 16 Jul, 2015 4 commits
  29. 23 Jun, 2015 1 commit
  30. 14 Apr, 2015 1 commit
  31. 15 Feb, 2015 1 commit