summaryrefslogtreecommitdiff
path: root/gtk/gtkprogressbar.c
Commit message (Collapse)AuthorAgeFilesLines
* progressbar: Enforce invariantsMatthias Clasen2016-05-051-1/+1
| | | | | | | When measuring gadgets, minimum must come out <= natural. Make sure we don't fail this when measuring progressbar text. https://bugzilla.gnome.org/show_bug.cgi?id=765644
* progressbar: Don't leave css nodes behindMatthias Clasen2016-03-011-0/+2
| | | | | | We create and destroy gadgets inside the hierarchy here, and if we don't explicitly remove their CSS nodes from the parent, they stick around.
* Use convenience API that was introduced recentlyMatthias Clasen2016-01-131-4/+4
| | | | | Use gtk_css_gadget_set_state in all the places where we previously were getting a node from a gadget, just to call gtk_css_node_set_state.
* Adwaita: transparent background for progressbar.osdLapo Calamandrei2016-01-091-1/+3
| | | | | Hopefully fixes https://bugzilla.gnome.org/show_bug.cgi?id=760331 Added the .osd style class to the progressbar docs.
* 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
* Simplify some codeMatthias Clasen2015-12-161-11/+9
| | | | | Deal with the min-width/min-height fallback the same way as in GtkBuiltinIcon.
* progressbar: Change the way the progress gadget gets sizeBenjamin Otte2015-12-161-4/+4
| | | | | | | | | | | | | | | | Size of the progress element now grows also when it's close to 0 size. Previously the size was clamped to the minimum size, now it starts growing from the minimum size. So for a 100px trough with a 10px min size progress, the sizes of the progress element change like this: old new 0% 10 10 5% 10 14 10% 10 19 20% 20 28 50% 50 55 100% 100 100
* progressbar: Convert to gadgetsMatthias Clasen2015-12-151-436/+641
| | | | Use gadgets for the text, the trough and the progress.
* cssnode: Change style-changed signalBenjamin Otte2015-12-121-16/+4
| | | | | | | | Instead of having old and new style, now have a GtkCssStyleChange opaque object that will compute the changes you are interested in for you. This simplifies change signal handlers quite a bit and avoids lots of repeated computation in every signal handler.
* 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.
* progressbar: Ignore x/yspacing style propertiesMatthias Clasen2015-11-161-12/+16
| | | | These are not really useful, so ignore and deprecate them.
* Cosmetic: Avoid explicit state variablesMatthias Clasen2015-11-141-20/+8
| | | | Using the state of the context makes this more obviously correct.
* progressbar: Add a CSS node for troughMatthias Clasen2015-11-041-6/+21
| | | | | This is better, since the trough doesn't fill up the allocation entirely.
* progressbar: Add diagrams to CSS documentationMatthias Clasen2015-11-031-0/+5
|
* progress bar: Add CSS documentationMatthias Clasen2015-10-311-0/+7
|
* progressbar: Convert to CSS nodesMatthias Clasen2015-10-311-39/+140
| | | | Use the element names progressbar and progress.
* progressbar: Convert to g_object_notify_by_pspecMatthias Clasen2015-09-061-55/+56
| | | | This avoids pspec lookup overhead in g_object_notify.
* GtkProgressBar: Adjust docs to new styleMatthias Clasen2015-05-071-28/+30
| | | | | | | Don't talk about superimposed text, since we don't do that anymore. https://bugzilla.gnome.org/show_bug.cgi?id=748784
* gtkprogressbar: fix size allocationLars Uebernickel2015-03-281-29/+34
| | | | | | | | | | | | | | | | | | | | As of 74405cc, progress bars use a new design with values drawn on top (or to the left) of the through instead of inside of it. This change brought a number of regressions: the min-horizontal-bar-height and min-vertical-bar-width style properties are not respected anymore. For vertical progress bars, the value was drawn too close to the bar and not centered vertically. Fix this by respecting the style properties and drawing the value label at the correct position. Also, the xspacing and yspacing properties didn't server any apparent purpose. Change their semantics to mean "the spacing between the label and the bar". Hence, they only need to be added to the size request when showing the label. Since we are changing semantics anyway, reduce their default values from 7 to 2, to avoid and excessive gap. https://bugzilla.gnome.org/show_bug.cgi?id=746688
* progressbar: Make the trough the default elementBenjamin Otte2014-10-131-10/+6
| | | | | Gets rid of a bunch of save/restore calls and allows animating the background (but not the slider, booo!)
* GtkProgressBar: Mark the default text for translationMatthias Clasen2014-09-291-1/+1
| | | | | | | At the same time, use a small space before %. This matches what is done in GtkCellRendererProgress. https://bugzilla.gnome.org/show_bug.cgi?id=735192
* widget: Make _gtk_set_simple_clip() take an optional content clipBenjamin Otte2014-08-211-1/+1
|
* gtk: Don't use gtk_render_activity()Benjamin Otte2014-08-161-2/+4
| | | | | | ... in places where we draw a background. This was changed for GTK 3.0.0 to allow animations, but these days it doesn't make sense anymore to use gtk_render_activity() for backgrounds.
* GtkProgressBar: Add style classes for edgesMatthias Clasen2014-07-191-7/+25
| | | | | | Add left/right/top/bottom style classes according to which edge(s) of the progressbar the progress is adjacent to. Only for a fraction of 1.0 will we set more than one edge.
* GtkProgressBar: Set orientable style classes initiallyMatthias Clasen2014-07-181-0/+1
| | | | | This was an omission, horizontal/vertical would only be set when the orientation is changed.
* GtkProgressBar: implement clippingMatthias Clasen2014-07-181-0/+13
| | | | | | This allows progress bars to have shadows. https://bugzilla.gnome.org/show_bug.cgi?id=733361
* GtkProgressbar: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-6/+8
|
* Update the design for progress barsWilliam Jon McCann2014-05-071-15/+34
| | | | | | We now use a narrower trough and paint the optional text beside the trough instead of inside it. This makes for a much cleaner appearance and more readable text.
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-5/+5
| | | | Instead of Return value:
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-1/+1
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-2/+2
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: use proper quotesWilliam Jon McCann2014-02-051-2/+2
|
* Progress bar: Handle 'no more pulse'Matthias Clasen2013-11-111-1/+7
| | | | | | Before smooth animation, stopping the pulse would abruptly stop the bouncy bar. This change makes it so that we slow down for a bit, and then stop.
* Make activity mode progress bars animate betterMatthias Clasen2013-11-101-40/+90
| | | | | Use a tick callback and move the block each frame, instead of making it jump only when gtk_progress_bar_pulse() is called.
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-5/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* progressbar: Store activity position as percentageBenjamin Otte2012-12-291-70/+27
| | | | ... instead of in absolute pixels.
* progressbar: Remove activity_step from private structBenjamin Otte2012-12-291-8/+7
| | | | It's only used locally, so use a local variable
* gtk: Use context's fontBenjamin Otte2012-12-061-3/+3
| | | | | | Instead of using gtk_style_context_get_font() in pango_context_get_metrics(), use pango_context_get_font_description(). The context contains the font description we are about to use after all.
* docs: fix a number of typos and obsolete referencesCosimo Cecchi2012-07-021-1/+1
|
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* progressbar: Tidy up the gtk-doc comments a littlePhilip Withnall2012-01-211-25/+24
|
* Revert "progressbar: Set state flags on draw"Rui Matos2011-12-191-5/+0
| | | | | | This reverts commit 6ed591871862ec87ee66fe69dca5c42087a12160 which is no longer needed as the style context now has the state flags updated when going into draw.
* progressbar: Set state flags on drawRui Matos2011-12-071-0/+5
| | | | We were missing setting state flags on the style context before drawing.
* Add pulse style class and use in progress bar and entryAlexander Larsson2011-11-181-0/+1
| | | | This is used for indeterminate progress reporting.
* GtkProgressbar: respect the range of 'fraction'Matthias Clasen2011-11-111-2/+2
| | | | | | | The setter should not set the property to values outside the allowed range. https://bugzilla.gnome.org/show_bug.cgi?id=663825
* Bug 654266 — No longer possible to set empty text on a GtkProgressBarPhilip Withnall2011-07-231-1/+21
| | | | | | | Change the semantics of GtkProgressBar:text slightly so that it behaves as it did before GTK+ 3. Closes: bgo#654266
* progressbar: Fix a signed/unsigned comparisonPhilip Withnall2011-07-181-1/+1
|
* Convert GailProgressBar to GtkProgressBarAccessibleMatthias Clasen2011-07-051-0/+4
|
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-1/+1
|
* progressbar: fetch the padding without the trough style classCosimo Cecchi2011-05-061-2/+1
| | | | | | | This is consistent with the rest of the widget, which uses only one padding value. https://bugzilla.gnome.org/show_bug.cgi?id=649593