summaryrefslogtreecommitdiff
path: root/gtk/gtkiconview.c
Commit message (Collapse)AuthorAgeFilesLines
* introspection: This patch fixes nullable return values fixes for the ↵Alberto Ruiz2016-01-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | following symbols in gtk 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
* Annotate deprecated style propertiesMatthias Clasen2015-11-161-2/+2
| | | | | | Use G_PARAM_DEPRECATED with deprecated style properties. This will make it easier to identify and remove such stale properties from css, since it will now trigger warnings.
* icon view: Document some style properties as deprecatedMatthias Clasen2015-11-161-0/+17
| | | | No code change.
* iconview: Add a diagram to CSS documentationMatthias Clasen2015-11-101-0/+4
|
* iconview: Use a CSS node for rubberband drawingMatthias Clasen2015-11-101-20/+38
| | | | | Use a CSS node with name rubberband to draw the rubberband selection.
* icon view: Add an element nameMatthias Clasen2015-10-301-0/+5
| | | | Not surprising anybody, I decided to call it iconview.
* gtk: Stop setting GDK_EXPOSURE_MASK on random widgetsAlexander Larsson2015-09-141-2/+1
| | | | | | | | | | | | | | These days exposure happens only on the native windows (generally the toplevel window) and is propagated down recursively. The expose event is only useful for backwards compat, and in fact, for double buffered widgets we totally ignore the event (and non-double buffering breaks on wayland). So, by not setting the mask we avoid emitting these events and then later ignoring them. We still keep it on eventbox, fixed and layout as these are used in weird ways that want backwards compat.
* iconview: don't call gtk_style_context_set_background()Cosimo Cecchi2015-07-011-43/+0
|
* icon view: Fix compiler warningsMatthias Clasen2015-06-021-4/+1
| | | | Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
* iconview: Avoid usage of gdk_window_get_device_position() during DnDCarlos Garnacho2015-05-211-23/+9
| | | | | | | | | | | Just use the last coordinates given on XdndPosition/drag_motion() in order to trigger scrolling. When running on Xwayland, the pointer position is unknown at this stage on the X11 side, so the coordinates given here are bogus. This change avoids both roundtrips and this situation. https://bugzilla.gnome.org/show_bug.cgi?id=749679
* GtkIconView: Stop using gtk_adjustment_changedMatthias Clasen2015-05-101-6/+0
| | | | This should not be needed at all.
* iconview: Unset prelit item in leave-notifyBenjamin Otte2014-09-161-0/+23
| | | | We don't want to keep a prelit item when the mouse cursor is elsewhere.
* iconview: Remove iterm->prelightBenjamin Otte2014-09-161-3/+1
| | | | | | | item->prelight is always equal to iconview->priv->last_prelight == item so there is no need to track it separately.
* iconview: always draw a cell backgroundBenjamin Otte2014-09-161-13/+10
| | | | Don't just draw it for selected cells.
* iconview: Don't queue redraws when nothing changesBenjamin Otte2014-09-151-12/+14
| | | | | We were queueing redraws for the old and the new prelit item, even when they were the same item.
* GtkIconView: Animate keybindingsMatthias Clasen2014-07-021-13/+13
|
* Allow activating an item after single click on a different itemWilliam Jon McCann2014-06-281-2/+1
| | | | | | | We were ignoring double click events when a different item was previously selected. https://bugzilla.gnome.org/show_bug.cgi?id=484640
* gtk: Don't use GObjectClass.constructorJasper St. Pierre2014-06-261-16/+7
| | | | Use the newer constructed instead, which has a fast path in GObject.
* GtkIconView: Remove a no-longer-valid optimizationMatthias Clasen2014-06-191-18/+0
| | | | | | | The rubberband rendering code was assuming that we just have a 1-pixel border and the rest of the rubberband is uniform. That is not a safe assumption to make with css-styled rubberbands, so remove it.
* GtkIconView: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-19/+27
|
* iconview: remove superfluous GTK+ grabsCarlos Garnacho2014-05-231-5/+0
|
* Deprecate GdkColorMatthias Clasen2014-05-221-1/+1
| | | | | It has been replaced by GdkRGBA. Time to make it official. http://bugzilla.gnome.org/show_bug.cgi?id=636695
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-26/+26
| | | | Instead of Return value:
* Docs: Remove all entities and turn off sgml modeMatthias Clasen2014-02-091-2/+2
| | | | | With all element markup gone, it is time to turn off sgml mode, and get rid of entities as well.
* docs: don't use <anchor>William Jon McCann2014-02-071-6/+6
|
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-2/+2
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-12/+12
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: Use markup for linksWilliam Jon McCann2014-02-071-6/+6
|
* docs: use ` instead of <literal>William Jon McCann2014-02-041-2/+2
|
* a11y: Ignore deprecation warnings for ATK focus trackerBenjamin Otte2014-02-031-0/+2
|
* Docs: Use markdown for listsMatthias Clasen2014-02-021-6/+3
| | | | This greatly reduces the amount of xml in the docs.
* docs: Identify examples that are C codeWilliam Jon McCann2014-01-291-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723119
* all: Add names to timeoutsBastien Nocera2013-10-231-1/+4
| | | | | | | Add names to every timeout we setup, so it's easier to track their usage, and debug possible misbehaviour. https://bugzilla.gnome.org/show_bug.cgi?id=710651
* Fix an age-old typoMatthias Clasen2013-08-311-1/+1
| | | | | | | GtkIconView was not properly propagating key release events, since forever. https://bugzilla.gnome.org/show_bug.cgi?id=706740
* iconview: Respect the fixed item width when adjusting the wrap widthCarlos Garcia Campos2013-08-261-7/+33
| | | | | | Restore the code the way it was in GTK2. https://bugzilla.gnome.org/show_bug.cgi?id=680953
* gtkdnd: Introduce a new API for more accurate drag origin dataJasper St. Pierre2013-08-141-5/+7
| | | | | | | | | | | | | | | When trying to drag, we currently the position of the first motion event to determine where the drag came from. This might be alright in the case of the old animation, but the data will be inaccurate if the user has moved the pointer quite a bit since pressing the cursor to start dragging. While we could monkey patch the GdkEvent at the widget layer, this is unintuitive and strange. Add a new API that takes a set of pointer coordinates describing the origin of the drag. Additionally, adapt most widgets to use it and use it with correct coordinates. https://bugzilla.gnome.org/show_bug.cgi?id=705605
* gtkiconview: Take padding into account when getting the cursor hotspotJasper St. Pierre2013-08-071-2/+2
| | | | | | This makes the icon view look completely seamless when dragging. https://bugzilla.gnome.org/show_bug.cgi?id=705605
* gtkiconview: Remove the border and background from drag iconsJasper St. Pierre2013-08-071-24/+8
| | | | | | | This doesn't look good when combined with rounded corners on selected items. https://bugzilla.gnome.org/show_bug.cgi?id=705605
* Add explicit transfer annotations to gtk_icon_view_get_cursorSimon Feltman2013-07-281-3/+4
| | | | | | | | | | | | The cell out argument to gtk_icon_view_get_cursor is a pass-through for gtk_cell_area_get_focus_cell which is transfer none. Without this explicit annotation, transfer full is defaulted and introspection bindings will assume ownership of the GtkIconViews reference to the cell, causing crashes. Additionally add explicit transfer full to the path parameter because it is expected the caller will free the returned memory. https://bugzilla.gnome.org/show_bug.cgi?id=704700
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-5/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Add gtk_widget_(un)register_windowAlexander Larsson2013-02-071-3/+3
| | | | | | | | | | | | This replaces the previously hardcoded calls to gdk_window_set_user_data, and also lets us track which windows are a part of a widget. Old code should continue working as is, but new features that require the windows may not work perfectly. We need this for the transparent widget support to work, as we need to specially mark the windows of child widgets. https://bugzilla.gnome.org/show_bug.cgi?id=687842
* Fix a few parameter mismatches in the symbolsMatthias Clasen2013-02-011-9/+9
|
* icon-view: add back gtk_style_context_set_background()Cosimo Cecchi2013-02-011-0/+43
| | | | | | | | | | | | | | Commit da09447914c0919362533182261a2c862ac8de81 removed the call to gtk_style_context_set_background() in favour of always rendering it with gtk_render_background() during the draw vfunc. This has the side effect of making the backing window always transparent, which blocks GTK from applying some optimizations during the paint cycle. The result is that, especially in clutter-gtk applications, scrolling performance gets really bad. This commit partially reverts da09447914c0919362533182261a2c862ac8de81 and changes the code so that both gtk_style_context_set_background() and gtk_render_background() are called.
* Add optional single click activation mode for icon viewWilliam Jon McCann2013-01-201-8/+107
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=345023
* Make accessible implementations publicMatthias Clasen2012-12-271-2/+2
| | | | | | | | | | | | | | This commit exposes the get_type() functions and standard headers for accessible implementations. This makes it possible to derive from the GTK accessible implementations without GType magic tricks. This is necessary, because we require the a11y type hierarchy to be parallel to the widget type hierarchy. So, if you derive a widget and need to adjust its a11y implementation, you have to be able to derive its accessible implementation. This commit probably exposes more than is absolutely necessary, it also exposes accessibles of widgets that are unlikely candidates for deriving from.
* iconview: don't use gtk_style_context_set_background()Cosimo Cecchi2012-11-201-54/+10
| | | | | | Render a background with gtk_render_background() during draw instead. https://bugzilla.gnome.org/show_bug.cgi?id=688744
* iconview: Render focus even in non-selected itemsAlexander Larsson2012-09-271-6/+4
| | | | | | | | This is needed for the SELECTION_NONE mode where nothing is ever selected, but its also needed for CTRL-<key> keynav that moves the focus without changing the selection. https://bugzilla.gnome.org/show_bug.cgi?id=684984
* Fix a typo in the the commentsWilliam Jon McCann2012-08-261-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=682724
* icon-view: emit selection-changed when changing the modelWilliam Jon McCann2012-08-201-0/+7
| | | | | | Only if there was a selection active. https://bugzilla.gnome.org/show_bug.cgi?id=681613
* Fix typo in documentationWilliam Jon McCann2012-08-101-1/+1
|