summaryrefslogtreecommitdiff
path: root/gtk/gtkstackswitcher.c
Commit message (Collapse)AuthorAgeFilesLines
* stackswitcher: Remove icon-size propertyTimm Bäder2018-06-201-52/+2
| | | | This ought to be controlled via css these days.
* dnd: Make drag-motion and drag-drop signals use GdkDropBenjamin Otte2018-06-181-5/+4
|
* widget: Make GtkWidgetClass::drag_leave() take a GdkDropBenjamin Otte2018-06-181-3/+2
| | | | Drag Contexts are on their way out!
* widget: Remove _get_own_allocationTimm Bäder2018-04-101-4/+1
| | | | Replace all usages of it with _compute_bounds
* GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-201-1/+1
| | | | | | | | | | | | | | | This is an automated change doing these command: git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface git sed -f g gtk_widget_set_window gtk_widget_set_surface git sed -f g gtk_widget_get_window gtk_widget_get_surface git sed -f g gtk_widget_register_window gtk_widget_register_surface git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface git checkout NEWS*
* button: Remove priv pointerTimm Bäder2018-02-251-0/+1
| | | | | This way we can also move the GtkButtonPrivate definition into gtkbutton.c
* The big versioning cleanupMatthias Clasen2018-02-061-8/+0
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* Replace gdk_threads_add_timeout* with g_timeout_add()Emmanuele Bassi2018-02-031-3/+3
| | | | | | | | | | | | | | | The main GDK thread lock is not portable and deprecated. The only reason why gdk_threads_add_timeout() and gdk_threads_add_timeout_full() exist is to allow invoking a callback with the GDK lock held, in case 3rd party libraries still use the deprecated gdk_threads_enter()/gdk_threads_leave() API. Since we're removing the GDK lock, and we're releasing a new major API, such code cannot exist any more; this means we can use the GLib API for installing timeout callbacks. https://bugzilla.gnome.org/show_bug.cgi?id=793124
* gtk: Intern css namesMatthias Clasen2017-11-171-1/+1
| | | | This avoids a bunch of strdups at startup.
* Change icon-size propertiesMatthias Clasen2017-11-151-10/+11
| | | | | | We no longer support registering custom icon sizes, so we can make these properties just enums. This also lets us specify them by nick in ui files. Nice!
* enums: Change GtkIconSize valuesMatthias Clasen2017-11-151-2/+2
| | | | | The new values are the ones we intend to keep. The old ones had duplicated meanings and nobody knew which one to take.
* image: Remove icon-size argument from icon settersMatthias Clasen2017-11-151-1/+1
| | | | | | | | Instead, add a function gtk_image_set_icon_size() for the cases where overriding the icon size is necessary. Treat icon sizes the same way as pixel sizes, too. So gtk_image_clear() no longer unsets the icon size.
* dnd: Make GtkDragDest and GtkDragSource use GtkTargetListBenjamin Otte2017-11-151-1/+1
| | | | | This gets rid of GtkTargetEntry in the API and consistently uses GtkTargetList.
* docs: Clarify the visibility of buttons in GtkStackSwitcherEmmanuele Bassi2017-10-111-2/+4
| | | | | If a page in the GtkStack is not visible, then the GtkStackSwitcher won't show a button for it.
* Fix a few allocation coordinates & sizesTimm Bäder2017-07-191-9/+5
|
* togglebutton: Move :draw-indicator property to GtkCheckButtonTimm Bäder2017-01-301-1/+1
| | | | | It's not used in GtkToggleButton at all, only in GtkCheckButton and GtkRadioButton.
* Remove gtk_widget_show_allTimm Bäder2017-01-201-1/+0
|
* stack switcher: Add a missing includeMatthias Clasen2016-03-251-0/+1
|
* stack switcher: Support switching during DNDMatthias Clasen2016-03-131-0/+110
| | | | | | GtkNotebook will switch pages if you hover over a tab during DND. The same makes sense in GtkStackSwitcher, so implement it here.
* introspection: This patch fixes nullable return values fixes for the ↵Alberto Ruiz2016-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* stackswitcher: Stop hardcoding 100px widthMatthias Clasen2015-12-151-5/+0
| | | | | | | We can now set a min-width in the theme, so we don't have to hardcode the size request here anymore. https://bugzilla.gnome.org/show_bug.cgi?id=726371
* stack switcher: Notify consistentlyMatthias Clasen2015-11-201-1/+2
| | | | | Whether to notify a property change should not depend on whether the switcher is associated with a stack or not.
* stackswitcher: add GtkStackSwitcher:icon-size propertyChristian Hergert2015-11-161-3/+55
| | | | | | | Set the GtkStackSwitcher:icon-size property to change the size of icons used in the linked GtkRadioButton children. https://bugzilla.gnome.org/show_bug.cgi?id=758208
* stack switcher: fix typos in documentation commentCosimo Cecchi2015-11-151-2/+2
|
* stack switcher: Clarify CSS documentationMatthias Clasen2015-11-051-1/+6
|
* stack switcher: Use an element nameMatthias Clasen2015-11-031-0/+7
|
* Use gtk_widget_set_focus_on_click() instead of deprecated settersFlorian Müllner2015-11-031-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=757269
* GtkStackSwitcher: Don't emit notify::visible-child when setting a stackDebarshi Ray2015-05-061-0/+2
| | | | | | | | | | | | | Synchronizing the visible child with the switcher's toggle buttons can lead to GtkButton::clicked being emitted twice. Once for the button that was active before, and once for the button that we just activated. This leads to notify::visible-child being called twice and one of them is with the wrong child. Let's deal with this in the same way we handle the visible child changing underneath us. https://bugzilla.gnome.org/show_bug.cgi?id=749021
* GtkStackSwitcher: Don't take focus on clickMatthias Clasen2014-12-091-0/+1
| | | | | Moving the focus to the stack switcher buttons is never what is wanted here.
* GtkStackSwitcher: Make the buttons fill verticallyYosef Or Boczko2014-11-271-2/+0
| | | | | | | It fix some cases with different height for the buttons, like with Hebrew character. https://bugzilla.gnome.org/show_bug.cgi?id=740642
* GtkStackSwitcher: Pick up the visible child from the stackMatthias Clasen2014-10-061-0/+8
| | | | | We forgot to synchronize the visible child when setting a stack on the switcher. Oops.
* GtkStackSwitcher: More disconnect fixesMatthias Clasen2014-09-111-26/+28
| | | | | | When resetting the stack, don't forget to disconnect signals. https://bugzilla.gnome.org/show_bug.cgi?id=736307
* GtkStackSwitcher: Disconnect signals when a child is removedMatthias Clasen2014-09-091-0/+5
| | | | | | | This is quite an oversight, and causes bad things to happen if the child is later changed. https://bugzilla.gnome.org/show_bug.cgi?id=736307
* GtkStackSwitcher: Simplify setting of .needs-attentionMatthias Clasen2014-07-161-1/+1
| | | | | Always add the .needs-attention style class, even if the button is active. Themes can already avoid showing anything in this case.
* GtkStackSwitcher: center the button childLapo Calamandrei2014-07-161-0/+1
| | | | | | Set button child halign to GTK_ALIGN_CENTER since I need it to style the needs-attention class, see: https://bugzilla.gnome.org/show_bug.cgi?id=707153
* stackswitcher: do not leak buttons hash tablePaolo Borelli2014-03-291-0/+14
|
* stackswitcher: Don't do unneeded updateBenjamin Otte2014-02-201-4/+0
| | | | | | | | | The update of the needs-attention state is done via its own property, so it doesn't need to be done via visibility changes. This patch is largely the result of inspecting the code due to a warning and not a result of testing. So if issues pop up that bisect back to this patch, that's why.
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-2/+2
| | | | Instead of Return value:
* stackswitcher: Only show a button if the stack child is visibleJasper St. Pierre2013-10-171-6/+7
|
* Fixups to GtkStackMatthias Clasen2013-09-251-1/+4
| | | | | | | The GtkStack and GtkStackSwitcher code did not really follow GTK+ conventions for includes. Fix that, and also fix up a case of gpointer vs gpointer* confusion in gtkstack.c.
* Add a needs-attention child property to GtkStackPaolo Borelli2013-09-251-0/+41
| | | | | | | | | The child property is watched by the StackSwicther which in turns sets a needs-attention css class on the corresponding button, so that the theme can for instance show a throbbing animation if one of the hidden pages needs the user attention. https://bugzilla.gnome.org/show_bug.cgi?id=707153
* Remove priv pointer from GtkStackSwitcherMatthias Clasen2013-09-211-21/+48
| | | | | This is a new widget, so lets avoid the unnecessary priv pointer while we still can.
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-5/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* GtkStackSwitcher: unset tooltipMatthias Clasen2013-04-241-0/+2
| | | | | It was pointed out to me that we leave the tooltip behind when setting and unsetting an icon.
* Typo fix in GtkStackSwitcher docsMatthias Clasen2013-04-221-1/+1
|
* Add docs for GtkStackSwitcherMatthias Clasen2013-04-211-2/+34
|
* Add GtkStackMatthias Clasen2013-04-211-0/+413
Add separate GtkStack and GtkStackSwitcher widgets that are an alternative to GtkNotebook. Additionally, GtkStack supports animated transitions when changing pages. These widgets were initially developed in libgd.