From f165d56cb45346cd3e6e87f3016584d7c69fc60d Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Wed, 26 Aug 2020 23:27:30 -0700 Subject: [PATCH] Regen for libhandy 0.90.0 release --- Handy-1.gir | 885 +++++++++-------------- libhandy-sys/src/lib.rs | 17 - libhandy/src/auto/view_switcher.rs | 56 -- libhandy/src/auto/view_switcher_bar.rs | 56 -- libhandy/src/auto/view_switcher_title.rs | 56 -- subprojects/libhandy.wrap | 2 +- 6 files changed, 356 insertions(+), 716 deletions(-) diff --git a/Handy-1.gir b/Handy-1.gir index daeba1b..7d67648 100644 --- a/Handy-1.gir +++ b/Handy-1.gir @@ -1526,7 +1526,7 @@ See: hdy_carousel_indicator_lines_set_carousel() glib:nick="loose"> Keep the title centered when possible + line="65">Keep the title centered when possible glib:nick="strict"> Keep the title centered at all cost + line="66">Keep the title centered at all cost Creates a new #HdyComboRow. + line="463">Creates a new #HdyComboRow. a new #HdyComboRow + line="468">a new #HdyComboRow @@ -1726,7 +1726,7 @@ size makes transitions to and from the maximum size smoother when resizing. Binds @model to @self. + line="500">Binds @model to @self. If @self was already bound to a model, that previous binding is destroyed. @@ -1741,7 +1741,7 @@ items from @model. @self is updated whenever @model changes. If @model is a #HdyComboRow + line="502">a #HdyComboRow the #GListModel to be bound to @self + line="503">the #GListModel to be bound to @self a function that creates + line="504">a function that creates widgets for items to display in the list, or %NULL in case you also passed %NULL as @model a function that creates + line="507">a function that creates widgets for items to display as the selected item, or %NULL in case you also passed %NULL as @model user data passed to @create_list_widget_func and + line="510">user data passed to @create_list_widget_func and @create_current_widget_func @@ -1796,7 +1796,7 @@ items from @model. @self is updated whenever @model changes. If @model is scope="async"> function for freeing @user_data + line="512">function for freeing @user_data @@ -1806,7 +1806,7 @@ items from @model. @self is updated whenever @model changes. If @model is version="0.0.6"> Binds @model to @self. + line="572">Binds @model to @self. If @self was already bound to a model, that previous binding is destroyed. @@ -1824,7 +1824,7 @@ represent items of the model with names. a #HdyComboRow + line="574">a #HdyComboRow allow-none="1"> the #GListModel to be bound to @self + line="575">the #GListModel to be bound to @self destroy="3"> a function that creates names for items, or %NULL + line="576">a function that creates names for items, or %NULL in case you also passed %NULL as @model @@ -1855,7 +1855,7 @@ represent items of the model with names. allow-none="1"> user data passed to @get_name_func + line="578">user data passed to @get_name_func scope="async"> function for freeing @user_data + line="579">function for freeing @user_data @@ -1873,19 +1873,19 @@ represent items of the model with names. version="0.0.6"> Gets the model bound to @self, or %NULL if none is bound. + line="478">Gets the model bound to @self, or %NULL if none is bound. the #GListModel bound to @self or %NULL + line="484">the #GListModel bound to @self or %NULL a #HdyComboRow + line="480">a #HdyComboRow @@ -1895,19 +1895,19 @@ represent items of the model with names. version="0.0.7"> Gets the index of the selected item in its #GListModel. + line="666">Gets the index of the selected item in its #GListModel. the index of the selected item, or -1 if no item is selected + line="672">the index of the selected item, or -1 if no item is selected a #GtkListBoxRow + line="668">a #GtkListBoxRow @@ -1917,19 +1917,19 @@ represent items of the model with names. version="0.0.10"> Gets whether the current value of @self should be displayed as its subtitle. + line="720">Gets whether the current value of @self should be displayed as its subtitle. whether the current value of @self should be displayed as its subtitle + line="726">whether the current value of @self should be displayed as its subtitle a #GtkListBoxRow + line="722">a #GtkListBoxRow @@ -1939,7 +1939,7 @@ represent items of the model with names. version="0.0.6"> Creates a model for @enum_type and binds it to @self. The items of the model + line="615">Creates a model for @enum_type and binds it to @self. The items of the model will be #HdyEnumValueObject objects. If @self was already bound to a model, that previous binding is destroyed. @@ -1960,13 +1960,13 @@ See hdy_enum_value_row_name(). a #HdyComboRow + line="617">a #HdyComboRow the enumeration #GType to be bound to @self + line="618">the enumeration #GType to be bound to @self destroy="3"> a function that creates names for items, or %NULL + line="619">a function that creates names for items, or %NULL in case you also passed %NULL as @model @@ -1989,7 +1989,7 @@ See hdy_enum_value_row_name(). allow-none="1"> user data passed to @get_name_func + line="621">user data passed to @get_name_func scope="async"> function for freeing @user_data + line="622">function for freeing @user_data @@ -2007,7 +2007,7 @@ See hdy_enum_value_row_name(). version="0.0.10"> Sets a closure to convert items into names. See HdyComboRow:use-subtitle. + line="776">Sets a closure to convert items into names. See HdyComboRow:use-subtitle. @@ -2016,7 +2016,7 @@ See hdy_enum_value_row_name(). a #HdyComboRow + line="778">a #HdyComboRow destroy="2"> a function that creates names for items, or %NULL + line="779">a function that creates names for items, or %NULL in case you also passed %NULL as @model @@ -2038,7 +2038,7 @@ See hdy_enum_value_row_name(). allow-none="1"> user data passed to @get_name_func + line="781">user data passed to @get_name_func scope="async"> function for freeing @user_data + line="782">function for freeing @user_data @@ -2056,7 +2056,7 @@ See hdy_enum_value_row_name(). version="0.0.7"> Sets the index of the selected item in its #GListModel. + line="688">Sets the index of the selected item in its #GListModel. @@ -2065,13 +2065,13 @@ See hdy_enum_value_row_name(). a #HdyComboRow + line="690">a #HdyComboRow the index of the selected item + line="691">the index of the selected item @@ -2081,7 +2081,7 @@ See hdy_enum_value_row_name(). version="0.0.10"> Sets whether the current value of @self should be displayed as its subtitle. + line="742">Sets whether the current value of @self should be displayed as its subtitle. If %TRUE, you should not access HdyActionRow:subtitle. @@ -2092,13 +2092,13 @@ If %TRUE, you should not access HdyActionRow:subtitle. a #HdyComboRow + line="744">a #HdyComboRow %TRUE to set the current value as the subtitle + line="745">%TRUE to set the current value as the subtitle @@ -2109,7 +2109,7 @@ If %TRUE, you should not access HdyActionRow:subtitle. transfer-ownership="none"> The index of the selected item in its #GListModel. + line="403">The index of the selected item in its #GListModel. transfer-ownership="none"> %TRUE to set the current value as the subtitle. + line="417">%TRUE to set the current value as the subtitle. If you use a custom widget creation function, you will need to give the row a name conversion closure with hdy_combo_row_set_get_name_func(). @@ -3387,12 +3387,12 @@ indicates a mnemonic. version="0.0.10"> Creates a new #HdyHeaderBar widget. + line="2274">Creates a new #HdyHeaderBar widget. a new #HdyHeaderBar + line="2279">a new #HdyHeaderBar @@ -3401,19 +3401,19 @@ indicates a mnemonic. version="0.0.10"> Gets the policy @self follows to horizontally align its center widget. + line="2699">Gets the policy @self follows to horizontally align its center widget. the centering policy + line="2705">the centering policy a #HdyHeaderBar + line="2701">a #HdyHeaderBar @@ -3423,13 +3423,13 @@ indicates a mnemonic. version="0.0.10"> Retrieves the custom title widget of the header. See + line="2499">Retrieves the custom title widget of the header. See hdy_header_bar_set_custom_title(). the custom title widget + line="2506">the custom title widget of the header, or %NULL if none has been set explicitly. @@ -3437,7 +3437,7 @@ hdy_header_bar_set_custom_title(). a #HdyHeaderBar + line="2501">a #HdyHeaderBar @@ -3447,20 +3447,20 @@ hdy_header_bar_set_custom_title(). version="0.0.10"> Gets the decoration layout set with + line="2676">Gets the decoration layout set with hdy_header_bar_set_decoration_layout(). the decoration layout + line="2683">the decoration layout a #HdyHeaderBar + line="2678">a #HdyHeaderBar @@ -3470,13 +3470,13 @@ hdy_header_bar_set_decoration_layout(). version="0.0.10"> Retrieves whether the header bar reserves space for + line="2607">Retrieves whether the header bar reserves space for a subtitle, regardless if one is currently set or not. %TRUE if the header bar reserves space + line="2614">%TRUE if the header bar reserves space for a subtitle @@ -3484,7 +3484,7 @@ a subtitle, regardless if one is currently set or not. a #HdyHeaderBar + line="2609">a #HdyHeaderBar @@ -3494,21 +3494,21 @@ a subtitle, regardless if one is currently set or not. version="0.0.10"> Gets whether @self should interpolate its size on visible child change. + line="2814">Gets whether @self should interpolate its size on visible child change. See hdy_header_bar_set_interpolate_size(). %TRUE if @self interpolates its size on visible child change, %FALSE if not + line="2822">%TRUE if @self interpolates its size on visible child change, %FALSE if not A #HdyHeaderBar + line="2816">A #HdyHeaderBar @@ -3518,20 +3518,20 @@ See hdy_header_bar_set_interpolate_size(). version="0.0.10"> Returns whether this header bar shows the standard window + line="2521">Returns whether this header bar shows the standard window decorations. %TRUE if the decorations are shown + line="2528">%TRUE if the decorations are shown a #HdyHeaderBar + line="2523">a #HdyHeaderBar @@ -3541,12 +3541,12 @@ decorations. version="0.0.10"> Retrieves the subtitle of the header. See hdy_header_bar_set_subtitle(). + line="2415">Retrieves the subtitle of the header. See hdy_header_bar_set_subtitle(). the subtitle of the header, or %NULL if none has + line="2421">the subtitle of the header, or %NULL if none has been set explicitly. The returned string is owned by the widget and must not be modified or freed. @@ -3555,7 +3555,7 @@ decorations. a #HdyHeaderBar + line="2417">a #HdyHeaderBar @@ -3565,12 +3565,12 @@ decorations. version="0.0.10"> Retrieves the title of the header. See hdy_header_bar_set_title(). + line="2355">Retrieves the title of the header. See hdy_header_bar_set_title(). the title of the header, or %NULL if none has + line="2361">the title of the header, or %NULL if none has been set explicitly. The returned string is owned by the widget and must not be modified or freed. @@ -3579,7 +3579,7 @@ decorations. a #HdyHeaderBar + line="2357">a #HdyHeaderBar @@ -3589,20 +3589,20 @@ decorations. version="0.0.10"> Returns the amount of time (in milliseconds) that + line="2747">Returns the amount of time (in milliseconds) that transitions between pages in @self will take. the transition duration + line="2754">the transition duration a #HdyHeaderBar + line="2749">a #HdyHeaderBar @@ -3612,20 +3612,20 @@ transitions between pages in @self will take. version="0.0.10"> Returns whether the @self is currently in a transition from one page to + line="2793">Returns whether the @self is currently in a transition from one page to another. %TRUE if the transition is currently running, %FALSE otherwise. + line="2800">%TRUE if the transition is currently running, %FALSE otherwise. a #HdyHeaderBar + line="2795">a #HdyHeaderBar @@ -3635,7 +3635,7 @@ another. version="0.0.10"> Adds @child to @self:, packed with reference to the + line="2306">Adds @child to @self:, packed with reference to the end of the @self:. @@ -3645,13 +3645,13 @@ end of the @self:. A #HdyHeaderBar + line="2308">A #HdyHeaderBar the #GtkWidget to be added to @self: + line="2309">the #GtkWidget to be added to @self: @@ -3661,7 +3661,7 @@ end of the @self:. version="0.0.10"> Adds @child to @self:, packed with reference to the + line="2289">Adds @child to @self:, packed with reference to the start of the @self:. @@ -3671,13 +3671,13 @@ start of the @self:. A #HdyHeaderBar + line="2291">A #HdyHeaderBar the #GtkWidget to be added to @self: + line="2292">the #GtkWidget to be added to @self: @@ -3687,7 +3687,7 @@ start of the @self:. version="0.0.10"> Sets the policy @self must follow to horizontally align its center widget. + line="2719">Sets the policy @self must follow to horizontally align its center widget. @@ -3696,13 +3696,13 @@ start of the @self:. a #HdyHeaderBar + line="2721">a #HdyHeaderBar the centering policy + line="2722">the centering policy @@ -3712,7 +3712,7 @@ start of the @self:. version="0.0.10"> Sets a custom title for the #HdyHeaderBar. + line="2437">Sets a custom title for the #HdyHeaderBar. The title should help a user identify the current view. This supersedes any title set by hdy_header_bar_set_title() or @@ -3730,7 +3730,7 @@ label to be visible again. a #HdyHeaderBar + line="2439">a #HdyHeaderBar allow-none="1"> a custom widget to use for a title + line="2440">a custom widget to use for a title @@ -3749,7 +3749,7 @@ label to be visible again. version="0.0.10"> Sets the decoration layout for this header bar, overriding + line="2631">Sets the decoration layout for this header bar, overriding the #GtkSettings:gtk-decoration-layout setting. There can be valid reasons for overriding the setting, such @@ -3774,7 +3774,7 @@ on the left, and minimize, maximize and close buttons on the right. a #HdyHeaderBar + line="2633">a #HdyHeaderBar allow-none="1"> a decoration layout, or %NULL to unset the layout + line="2634">a decoration layout, or %NULL to unset the layout @@ -3793,7 +3793,7 @@ on the left, and minimize, maximize and close buttons on the right. version="0.0.10"> Sets whether the header bar should reserve space + line="2574">Sets whether the header bar should reserve space for a subtitle, even if none is currently set. @@ -3803,13 +3803,13 @@ for a subtitle, even if none is currently set. a #HdyHeaderBar + line="2576">a #HdyHeaderBar %TRUE to reserve space for a subtitle + line="2577">%TRUE to reserve space for a subtitle @@ -3819,7 +3819,7 @@ for a subtitle, even if none is currently set. version="0.0.10"> Sets whether or not @self will interpolate the size of its opposing + line="2838">Sets whether or not @self will interpolate the size of its opposing orientation when changing the visible child. If %TRUE, @self will interpolate its size between the one of the previous visible child and the one of the new visible child, according to the set transition duration and the orientation, @@ -3832,13 +3832,13 @@ e.g. if @self is horizontal, it will interpolate the its height. A #HdyHeaderBar + line="2840">A #HdyHeaderBar %TRUE to interpolate the size + line="2841">%TRUE to interpolate the size @@ -3848,7 +3848,7 @@ e.g. if @self is horizontal, it will interpolate the its height. version="0.0.10"> Sets whether this header bar shows the standard window decorations, + line="2544">Sets whether this header bar shows the standard window decorations, including close, maximize, and minimize. @@ -3858,13 +3858,13 @@ including close, maximize, and minimize. a #HdyHeaderBar + line="2546">a #HdyHeaderBar %TRUE to show standard window decorations + line="2547">%TRUE to show standard window decorations @@ -3874,7 +3874,7 @@ including close, maximize, and minimize. version="0.0.10"> Sets the subtitle of the #HdyHeaderBar. The title should give a user + line="2377">Sets the subtitle of the #HdyHeaderBar. The title should give a user an additional detail to help them identify the current view. Note that HdyHeaderBar by default reserves room for the subtitle, @@ -3888,7 +3888,7 @@ even if none is currently set. If this is not desired, set the a #HdyHeaderBar + line="2379">a #HdyHeaderBar a subtitle, or %NULL + line="2380">a subtitle, or %NULL @@ -3907,7 +3907,7 @@ even if none is currently set. If this is not desired, set the version="0.0.10"> Sets the title of the #HdyHeaderBar. The title should help a user + line="2323">Sets the title of the #HdyHeaderBar. The title should help a user identify the current view. A good title should not include the application name. @@ -3918,7 +3918,7 @@ application name. a #HdyHeaderBar + line="2325">a #HdyHeaderBar allow-none="1"> a title, or %NULL + line="2326">a title, or %NULL @@ -3937,7 +3937,7 @@ application name. version="0.0.10"> Sets the duration that transitions between pages in @self + line="2768">Sets the duration that transitions between pages in @self will take. @@ -3947,13 +3947,13 @@ will take. a #HdyHeaderBar + line="2770">a #HdyHeaderBar the new duration, in milliseconds + line="2771">the new duration, in milliseconds @@ -3970,7 +3970,7 @@ will take. transfer-ownership="none"> The decoration layout for buttons. If this property is + line="2144">The decoration layout for buttons. If this property is not set, the #GtkSettings:gtk-decoration-layout setting is used. @@ -3984,7 +3984,7 @@ about the format of this string. transfer-ownership="none"> Set to %TRUE if #HdyHeaderBar:decoration-layout is set. + line="2163">Set to %TRUE if #HdyHeaderBar:decoration-layout is set. transfer-ownership="none"> If %TRUE, reserve space for a subtitle, even if none + line="2177">If %TRUE, reserve space for a subtitle, even if none is currently set. @@ -4006,7 +4006,7 @@ is currently set. transfer-ownership="none"> Whether to show window decorations. + line="2125">Whether to show window decorations. Which buttons are actually shown and where is determined by the #HdyHeaderBar:decoration-layout property, and by @@ -4505,25 +4505,25 @@ New values may be added to this enumeration over time. Create a new #HdyKeypad widget. + line="373">Create a new #HdyKeypad widget. the newly created #HdyKeypad widget + line="380">the newly created #HdyKeypad widget whether the hash, plus, and asterisk symbols should be visible + line="375">whether the hash, plus, and asterisk symbols should be visible whether the letters below the digits should be visible + line="376">whether the letters below the digits should be visible @@ -4533,19 +4533,19 @@ New values may be added to this enumeration over time. version="1.0"> Returns the amount of space between the columns of @self. + line="475">Returns the amount of space between the columns of @self. the column spacing of @self + line="481">the column spacing of @self a #HdyKeypad + line="477">a #HdyKeypad @@ -4555,20 +4555,20 @@ New values may be added to this enumeration over time. version="1.0"> Returns the widget for the lower right corner (or left, in RTL locales) of + line="772">Returns the widget for the lower right corner (or left, in RTL locales) of @self. the end action widget + line="779">the end action widget a #HdyKeypad + line="774">a #HdyKeypad @@ -4578,19 +4578,19 @@ New values may be added to this enumeration over time. version="1.0"> Get the connected entry. See hdy_keypad_set_entry() for details. + line="651">Get the connected entry. See hdy_keypad_set_entry() for details. the set #GtkEntry or %NULL if no widget was set + line="657">the set #GtkEntry or %NULL if no widget was set a #HdyKeypad + line="653">a #HdyKeypad @@ -4600,20 +4600,20 @@ New values may be added to this enumeration over time. version="1.0"> Returns whether @self should display the standard letters below the digits on + line="527">Returns whether @self should display the standard letters below the digits on its buttons. whether the letters below the digits should be visible + line="534">whether the letters below the digits should be visible a #HdyKeypad + line="529">a #HdyKeypad @@ -4623,19 +4623,19 @@ its buttons. version="1.0"> Returns the amount of space between the rows of @self. + line="423">Returns the amount of space between the rows of @self. the row spacing of @self + line="429">the row spacing of @self a #HdyKeypad + line="425">a #HdyKeypad @@ -4645,20 +4645,20 @@ its buttons. version="1.0"> Returns the widget for the lower left corner (or right, in RTL locales) of + line="711">Returns the widget for the lower left corner (or right, in RTL locales) of @self. the start action widget + line="718">the start action widget a #HdyKeypad + line="713">a #HdyKeypad @@ -4668,7 +4668,7 @@ its buttons. version="1.0"> Returns whether @self should display the standard letters below the digits on + line="580">Returns whether @self should display the standard letters below the digits on its buttons. Returns Whether @self should display the hash and asterisk buttons, and @@ -4677,14 +4677,14 @@ should display the plus symbol at the bottom of its 0 button. whether the hash, plus, and asterisk symbols should be visible + line="590">whether the hash, plus, and asterisk symbols should be visible a #HdyKeypad + line="582">a #HdyKeypad @@ -4694,7 +4694,7 @@ should display the plus symbol at the bottom of its 0 button. version="1.0"> Sets the amount of space between columns of @self. + line="446">Sets the amount of space between columns of @self. @@ -4703,13 +4703,13 @@ should display the plus symbol at the bottom of its 0 button. a #HdyKeypad + line="448">a #HdyKeypad the amount of space to insert between columns + line="449">the amount of space to insert between columns @@ -4719,7 +4719,7 @@ should display the plus symbol at the bottom of its 0 button. version="1.0"> Sets the widget for the lower right corner (or left, in RTL locales) of + line="735">Sets the widget for the lower right corner (or left, in RTL locales) of @self. @@ -4729,7 +4729,7 @@ should display the plus symbol at the bottom of its 0 button. a #HdyKeypad + line="737">a #HdyKeypad allow-none="1"> the end action widget + line="738">the end action widget @@ -4748,7 +4748,7 @@ should display the plus symbol at the bottom of its 0 button. version="0.0.12"> Binds @entry to @self and blocks any input which wouldn't be possible to type + line="607">Binds @entry to @self and blocks any input which wouldn't be possible to type with with the keypad. @@ -4758,7 +4758,7 @@ with with the keypad. a #HdyKeypad + line="609">a #HdyKeypad allow-none="1"> a #GtkEntry + line="610">a #GtkEntry @@ -4777,7 +4777,7 @@ with with the keypad. version="1.0"> Sets whether @self should display the standard letters below the digits on + line="498">Sets whether @self should display the standard letters below the digits on its buttons. @@ -4787,13 +4787,13 @@ its buttons. a #HdyKeypad + line="500">a #HdyKeypad whether the letters below the digits should be visible + line="501">whether the letters below the digits should be visible @@ -4803,7 +4803,7 @@ its buttons. version="1.0"> Sets the amount of space between rows of @self. + line="394">Sets the amount of space between rows of @self. @@ -4812,13 +4812,13 @@ its buttons. a #HdyKeypad + line="396">a #HdyKeypad the amount of space to insert between rows + line="397">the amount of space to insert between rows @@ -4828,7 +4828,7 @@ its buttons. version="1.0"> Sets the widget for the lower left corner (or right, in RTL locales) of + line="674">Sets the widget for the lower left corner (or right, in RTL locales) of @self. @@ -4838,7 +4838,7 @@ its buttons. a #HdyKeypad + line="676">a #HdyKeypad allow-none="1"> the start action widget + line="677">the start action widget @@ -4857,7 +4857,7 @@ its buttons. version="1.0"> Sets whether @self should display the hash and asterisk buttons, and should + line="551">Sets whether @self should display the hash and asterisk buttons, and should display the plus symbol at the bottom of its 0 button. @@ -4867,13 +4867,13 @@ display the plus symbol at the bottom of its 0 button. a #HdyKeypad + line="553">a #HdyKeypad whether the hash, plus, and asterisk symbols should be visible + line="554">whether the hash, plus, and asterisk symbols should be visible @@ -6700,12 +6700,12 @@ See hdy_search_bar_set_search_mode() for details. Creates a new #HdySqueezer container. + line="1203">Creates a new #HdySqueezer container. a new #HdySqueezer + line="1208">a new #HdySqueezer @@ -6713,27 +6713,27 @@ See hdy_search_bar_set_search_mode() for details. c:identifier="hdy_squeezer_get_child_enabled"> Gets whether @child is enabled. + line="1428">Gets whether @child is enabled. See hdy_squeezer_set_child_enabled(). %TRUE if @child is enabled, %FALSE otherwise. + line="1437">%TRUE if @child is enabled, %FALSE otherwise. a #HdySqueezer + line="1430">a #HdySqueezer a child of @self + line="1431">a child of @self @@ -6743,21 +6743,21 @@ See hdy_squeezer_set_child_enabled(). version="0.0.10"> Gets whether @self is homogeneous. + line="1216">Gets whether @self is homogeneous. See hdy_squeezer_set_homogeneous(). %TRUE if @self is homogeneous, %FALSE is not + line="1224">%TRUE if @self is homogeneous, %FALSE is not a #HdySqueezer + line="1218">a #HdySqueezer @@ -6767,21 +6767,21 @@ See hdy_squeezer_set_homogeneous(). version="0.0.10"> Gets whether @self should interpolate its size on visible child change. + line="1363">Gets whether @self should interpolate its size on visible child change. See hdy_squeezer_set_interpolate_size(). %TRUE if @self interpolates its size on visible child change, %FALSE if not + line="1371">%TRUE if @self interpolates its size on visible child change, %FALSE if not A #HdySqueezer + line="1365">A #HdySqueezer @@ -6790,20 +6790,20 @@ See hdy_squeezer_set_interpolate_size(). c:identifier="hdy_squeezer_get_transition_duration"> Gets the amount of time (in milliseconds) that transitions between children + line="1268">Gets the amount of time (in milliseconds) that transitions between children in @self will take. the transition duration + line="1275">the transition duration a #HdySqueezer + line="1270">a #HdySqueezer @@ -6812,19 +6812,19 @@ in @self will take. c:identifier="hdy_squeezer_get_transition_running"> Gets whether @self is currently in a transition from one child to another. + line="1347">Gets whether @self is currently in a transition from one child to another. %TRUE if the transition is currently running, %FALSE otherwise. + line="1353">%TRUE if the transition is currently running, %FALSE otherwise. a #HdySqueezer + line="1349">a #HdySqueezer @@ -6833,13 +6833,13 @@ in @self will take. c:identifier="hdy_squeezer_get_transition_type"> Gets the type of animation that will be used for transitions between children + line="1305">Gets the type of animation that will be used for transitions between children in @self. the current transition type of @self + line="1312">the current transition type of @self @@ -6847,7 +6847,7 @@ in @self. a #HdySqueezer + line="1307">a #HdySqueezer @@ -6856,20 +6856,20 @@ in @self. c:identifier="hdy_squeezer_get_visible_child"> Gets the currently visible child of @self, or %NULL if there are no visible + line="1411">Gets the currently visible child of @self, or %NULL if there are no visible children. the visible child of the #HdySqueezer + line="1418">the visible child of the #HdySqueezer a #HdySqueezer + line="1413">a #HdySqueezer @@ -6879,19 +6879,19 @@ children. version="1.0"> Gets the #HdySqueezer:xalign property for @self. + line="1492">Gets the #HdySqueezer:xalign property for @self. the xalign property + line="1498">the xalign property a #HdySqueezer + line="1494">a #HdySqueezer @@ -6901,19 +6901,19 @@ children. version="1.0"> Gets the #HdySqueezer:yalign property for @self. + line="1535">Gets the #HdySqueezer:yalign property for @self. the yalign property + line="1541">the yalign property a #HdySqueezer + line="1537">a #HdySqueezer @@ -6922,7 +6922,7 @@ children. c:identifier="hdy_squeezer_set_child_enabled"> Make @self enable or disable @child. If a child is disabled, it will be + line="1455">Make @self enable or disable @child. If a child is disabled, it will be ignored when looking for the child fitting the available size best. This allows to programmatically and prematurely hide a child of @self even if it fits in the available space. @@ -6937,19 +6937,19 @@ window width, or any other constraint you find suitable. a #HdySqueezer + line="1457">a #HdySqueezer a child of @self + line="1458">a child of @self %TRUE to enable the child, %FALSE to disable it + line="1459">%TRUE to enable the child, %FALSE to disable it @@ -6959,7 +6959,7 @@ window width, or any other constraint you find suitable. version="0.0.10"> Sets @self to be homogeneous or not. If it is homogeneous, @self will request + line="1236">Sets @self to be homogeneous or not. If it is homogeneous, @self will request the same size for all its children for its opposite orientation, e.g. if @self is oriented horizontally and is homogeneous, it will request the same height for all its children. If it isn't, @self may change size when a @@ -6972,13 +6972,13 @@ different child becomes visible. a #HdySqueezer + line="1238">a #HdySqueezer %TRUE to make @self homogeneous + line="1239">%TRUE to make @self homogeneous @@ -6988,7 +6988,7 @@ different child becomes visible. version="0.0.10"> Sets whether or not @self will interpolate the size of its opposing + line="1383">Sets whether or not @self will interpolate the size of its opposing orientation when changing the visible child. If %TRUE, @self will interpolate its size between the one of the previous visible child and the one of the new visible child, according to the set transition duration and the orientation, @@ -7001,13 +7001,13 @@ e.g. if @self is horizontal, it will interpolate the its height. A #HdySqueezer + line="1385">A #HdySqueezer %TRUE to interpolate the size + line="1386">%TRUE to interpolate the size @@ -7016,7 +7016,7 @@ e.g. if @self is horizontal, it will interpolate the its height. c:identifier="hdy_squeezer_set_transition_duration"> Sets the duration that transitions between children in @self will take. + line="1285">Sets the duration that transitions between children in @self will take. @@ -7025,13 +7025,13 @@ e.g. if @self is horizontal, it will interpolate the its height. a #HdySqueezer + line="1287">a #HdySqueezer the new duration, in milliseconds + line="1288">the new duration, in milliseconds @@ -7040,7 +7040,7 @@ e.g. if @self is horizontal, it will interpolate the its height. c:identifier="hdy_squeezer_set_transition_type"> Sets the type of animation that will be used for transitions between children + line="1322">Sets the type of animation that will be used for transitions between children in @self. Available types include various kinds of fades and slides. The transition type can be changed without problems at runtime, so it is @@ -7054,13 +7054,13 @@ current. a #HdySqueezer + line="1324">a #HdySqueezer the new transition type + line="1325">the new transition type @@ -7071,7 +7071,7 @@ current. version="1.0"> Sets the #HdySqueezer:xalign property for @self. + line="1510">Sets the #HdySqueezer:xalign property for @self. @@ -7080,13 +7080,13 @@ current. a #HdySqueezer + line="1512">a #HdySqueezer the new xalign value, between 0 and 1 + line="1513">the new xalign value, between 0 and 1 @@ -7096,7 +7096,7 @@ current. version="1.0"> Sets the #HdySqueezer:yalign property for @self. + line="1553">Sets the #HdySqueezer:yalign property for @self. @@ -7105,13 +7105,13 @@ current. a #HdySqueezer + line="1555">a #HdySqueezer the new yalign value, between 0 and 1 + line="1556">the new yalign value, between 0 and 1 @@ -7142,7 +7142,7 @@ current. transfer-ownership="none"> The xalign property determines the horizontal aligment of the children + line="1132">The xalign property determines the horizontal aligment of the children inside the squeezer's size allocation. Compare this to #GtkWidget:halign, which determines how the squeezer's size allocation is positioned in the space available for the squeezer. @@ -7158,7 +7158,7 @@ as they are fading out. transfer-ownership="none"> The yalign property determines the vertical aligment of the children inside + line="1154">The yalign property determines the vertical aligment of the children inside the squeezer's size allocation. Compare this to #GtkWidget:valign, which determines how the squeezer's size allocation is positioned in the space available for the squeezer. @@ -7183,7 +7183,7 @@ as they are fading out. c:type="HdySqueezerTransitionType"> These enumeration values describe the possible transitions between children + line="45">These enumeration values describe the possible transitions between children in a #HdySqueezer widget. glib:nick="none"> No transition + line="47">No transition glib:nick="crossfade"> A cross-fade + line="48">A cross-fade version="0.0.10"> Creates a new #HdyViewSwitcher widget. + line="570">Creates a new #HdyViewSwitcher widget. a new #HdyViewSwitcher + line="575">a new #HdyViewSwitcher - - Get the icon size of the images used in the #HdyViewSwitcher. - -See: hdy_view_switcher_set_icon_size() - - - the icon size of the images - - - - - a #HdyViewSwitcher - - - - Get the ellipsizing position of the narrow mode label. See + line="628">Get the ellipsizing position of the narrow mode label. See hdy_view_switcher_set_narrow_ellipsize(). - + #PangoEllipsizeMode + line="635">#PangoEllipsizeMode a #HdyViewSwitcher + line="630">a #HdyViewSwitcher @@ -8683,19 +8659,19 @@ hdy_view_switcher_set_narrow_ellipsize(). version="0.0.10"> Gets the policy of @self. + line="585">Gets the policy of @self. the policy of @self + line="591">the policy of @self a #HdyViewSwitcher + line="587">a #HdyViewSwitcher @@ -8705,31 +8681,32 @@ hdy_view_switcher_set_narrow_ellipsize(). version="0.0.10"> Get the #GtkStack being controlled by the #HdyViewSwitcher. + line="679">Get the #GtkStack being controlled by the #HdyViewSwitcher. See: hdy_view_switcher_set_stack() - + the #GtkStack, or %NULL if none has been set + line="687">the #GtkStack, or %NULL if none has been set a #HdyViewSwitcher + line="681">a #HdyViewSwitcher - Change the icon size hint for the icons in a #HdyViewSwitcher. + line="647">Set the mode used to ellipsize the text in narrow mode if there is not +enough space to render the entire string. @@ -8738,39 +8715,13 @@ See: hdy_view_switcher_set_stack() a #HdyViewSwitcher - - - - the new icon size - - - - - - Set the mode used to ellipsize the text in narrow mode if there is not -enough space to render the entire string. - - - - - - - a #HdyViewSwitcher + line="649">a #HdyViewSwitcher a #PangoEllipsizeMode + line="650">a #PangoEllipsizeMode @@ -8780,7 +8731,7 @@ enough space to render the entire string. version="0.0.10"> Sets the policy of @self. + line="603">Sets the policy of @self. @@ -8789,13 +8740,13 @@ enough space to render the entire string. a #HdyViewSwitcher + line="605">a #HdyViewSwitcher the new policy + line="606">the new policy @@ -8805,8 +8756,8 @@ enough space to render the entire string. version="0.0.10"> Sets the #GtkStack to control. - + line="699">Sets the #GtkStack to control. + @@ -8814,7 +8765,7 @@ enough space to render the entire string. a #HdyViewSwitcher + line="701">a #HdyViewSwitcher allow-none="1"> a #GtkStack + line="702">a #GtkStack - - Use the "icon-size" property to hint the icons to use, you almost certainly -want to leave this as %GTK_ICON_SIZE_BUTTON. - - The preferred place to ellipsize the string, if the narrow mode label does + line="514">The preferred place to ellipsize the string, if the narrow mode label does not have enough room to display the entire string, specified as a #PangoEllipsizeMode. @@ -8859,7 +8800,7 @@ the ellipsis. transfer-ownership="none"> The #HdyViewSwitcherPolicy the view switcher should use to determine which + line="499">The #HdyViewSwitcherPolicy the view switcher should use to determine which mode to use. @@ -8869,7 +8810,7 @@ mode to use. transfer-ownership="none"> The #GtkStack the view switcher controls. + line="535">The #GtkStack the view switcher controls. @@ -8888,55 +8829,33 @@ mode to use. version="0.0.10"> Creates a new #HdyViewSwitcherBar widget. + line="236">Creates a new #HdyViewSwitcherBar widget. a new #HdyViewSwitcherBar + line="241">a new #HdyViewSwitcherBar - - Get the icon size of the images used in the #HdyViewSwitcher. - - - the icon size of the images - - - - - a #HdyViewSwitcherBar - - - - Gets the policy of @self. + line="251">Gets the policy of @self. the policy of @self + line="257">the policy of @self a #HdyViewSwitcherBar + line="253">a #HdyViewSwitcherBar @@ -8946,19 +8865,19 @@ mode to use. version="0.0.10"> Gets whether @self should be revealed or not. - + line="350">Gets whether @self should be revealed or not. + %TRUE if @self is revealed, %FALSE if not. + line="356">%TRUE if @self is revealed, %FALSE if not. a #HdyViewSwitcherBar + line="352">a #HdyViewSwitcherBar @@ -8968,54 +8887,29 @@ mode to use. version="0.0.10"> Get the #GtkStack being controlled by the #HdyViewSwitcher. - + line="294">Get the #GtkStack being controlled by the #HdyViewSwitcher. + the #GtkStack, or %NULL if none has been set + line="300">the #GtkStack, or %NULL if none has been set a #HdyViewSwitcherBar + line="296">a #HdyViewSwitcherBar - - Change the icon size hint for the icons in a #HdyViewSwitcher. - - - - - - - a #HdyViewSwitcherBar - - - - the new icon size - - - - Sets the policy of @self. + line="269">Sets the policy of @self. @@ -9024,13 +8918,13 @@ mode to use. a #HdyViewSwitcherBar + line="271">a #HdyViewSwitcherBar the new policy + line="272">the new policy @@ -9040,8 +8934,8 @@ mode to use. version="0.0.10"> Sets whether @self should be revealed or not. - + line="368">Sets whether @self should be revealed or not. + @@ -9049,13 +8943,13 @@ mode to use. a #HdyViewSwitcherBar + line="370">a #HdyViewSwitcherBar %TRUE to reveal @self + line="371">%TRUE to reveal @self @@ -9065,8 +8959,8 @@ mode to use. version="0.0.10"> Sets the #GtkStack to control. - + line="312">Sets the #GtkStack to control. + @@ -9074,7 +8968,7 @@ mode to use. a #HdyViewSwitcherBar + line="314">a #HdyViewSwitcherBar allow-none="1"> a #GtkStack + line="315">a #GtkStack - - Use the "icon-size" property to hint the icons to use, you almost certainly -want to leave this as %GTK_ICON_SIZE_BUTTON. - - The #HdyViewSwitcherPolicy the #HdyViewSwitcher should use to determine + line="168">The #HdyViewSwitcherPolicy the #HdyViewSwitcher should use to determine which mode to use. @@ -9114,7 +8998,7 @@ which mode to use. transfer-ownership="none"> Whether the bar should be revealed or hidden. + line="197">Whether the bar should be revealed or hidden. transfer-ownership="none"> The #GtkStack the #HdyViewSwitcher controls. + line="183">The #GtkStack the #HdyViewSwitcher controls. @@ -9153,7 +9037,7 @@ which mode to use. glib:nick="auto"> Automatically adapt to the best fitting mode + line="45">Automatically adapt to the best fitting mode glib:nick="narrow"> Force the narrow mode + line="46">Force the narrow mode glib:nick="wide"> Force the wide mode + line="47">Force the wide mode version="1.0"> Creates a new #HdyViewSwitcherTitle widget. + line="333">Creates a new #HdyViewSwitcherTitle widget. a new #HdyViewSwitcherTitle + line="338">a new #HdyViewSwitcherTitle - - Get the icon size of the images used in the #HdyViewSwitcher. - - - the icon size of the images - - - - - a #HdyViewSwitcherTitle - - - - Gets the policy of @self. + line="348">Gets the policy of @self. the policy of @self + line="354">the policy of @self a #HdyViewSwitcherTitle + line="350">a #HdyViewSwitcherTitle @@ -9248,20 +9109,20 @@ which mode to use. version="1.0"> Get the #GtkStack being controlled by the #HdyViewSwitcher. + line="391">Get the #GtkStack being controlled by the #HdyViewSwitcher. + line="37"/> the #GtkStack, or %NULL if none has been set + line="397">the #GtkStack, or %NULL if none has been set a #HdyViewSwitcherTitle + line="393">a #HdyViewSwitcherTitle @@ -9271,20 +9132,20 @@ which mode to use. version="1.0"> Gets the subtitle of @self. See hdy_view_switcher_title_set_subtitle(). + line="490">Gets the subtitle of @self. See hdy_view_switcher_title_set_subtitle(). + line="49"/> the subtitle of @self, or %NULL. + line="496">the subtitle of @self, or %NULL. a #HdyViewSwitcherTitle + line="492">a #HdyViewSwitcherTitle @@ -9294,20 +9155,20 @@ which mode to use. version="1.0"> Gets the title of @self. See hdy_view_switcher_title_set_title(). + line="447">Gets the title of @self. See hdy_view_switcher_title_set_title(). + line="43"/> the title of @self, or %NULL. + line="453">the title of @self, or %NULL. a #HdyViewSwitcherTitle + line="449">a #HdyViewSwitcherTitle @@ -9317,20 +9178,20 @@ which mode to use. version="1.0"> Get whether the title label of @self is visible. + line="584">Get whether the title label of @self is visible. + line="61"/> %TRUE if the title label of @self is visible, %FALSE if not. + line="590">%TRUE if the title label of @self is visible, %FALSE if not. a #HdyViewSwitcherTitle + line="586">a #HdyViewSwitcherTitle @@ -9340,58 +9201,32 @@ which mode to use. version="1.0"> Gets whether @self's view switcher is enabled. + line="533">Gets whether @self's view switcher is enabled. See hdy_view_switcher_title_set_view_switcher_enabled(). + line="55"/> %TRUE if the view switcher is enabled, %FALSE otherwise. + line="541">%TRUE if the view switcher is enabled, %FALSE otherwise. a #HdyViewSwitcherTitle + line="535">a #HdyViewSwitcherTitle - - Change the icon size hint for the icons in a #HdyViewSwitcher. - - - - - - - a #HdyViewSwitcherTitle - - - - the new icon size - - - - Sets the policy of @self. + line="366">Sets the policy of @self. @@ -9401,13 +9236,13 @@ See hdy_view_switcher_title_set_view_switcher_enabled(). a #HdyViewSwitcherTitle + line="368">a #HdyViewSwitcherTitle the new policy + line="369">the new policy @@ -9417,9 +9252,9 @@ See hdy_view_switcher_title_set_view_switcher_enabled(). version="1.0"> Sets the #GtkStack to control. + line="409">Sets the #GtkStack to control. + line="39"/> @@ -9427,7 +9262,7 @@ See hdy_view_switcher_title_set_view_switcher_enabled(). a #HdyViewSwitcherTitle + line="411">a #HdyViewSwitcherTitle allow-none="1"> a #GtkStack + line="412">a #GtkStack @@ -9446,38 +9281,8 @@ See hdy_view_switcher_title_set_view_switcher_enabled(). version="1.0"> Sets the subtitle of @self. The subtitle should give a user additional + line="508">Sets the subtitle of @self. The subtitle should give a user additional details. - - - - - - - a #HdyViewSwitcherTitle - - - - a subtitle, or %NULL - - - - - - Sets the title of @self. The title should give a user additional details. A -good title should not include the application name. @@ -9487,7 +9292,37 @@ good title should not include the application name. a #HdyViewSwitcherTitle + line="510">a #HdyViewSwitcherTitle + + + + a subtitle, or %NULL + + + + + + Sets the title of @self. The title should give a user additional details. A +good title should not include the application name. + + + + + + + a #HdyViewSwitcherTitle allow-none="1"> a title, or %NULL + line="468">a title, or %NULL @@ -9506,14 +9341,14 @@ good title should not include the application name. version="1.0"> Make @self enable or disable its view switcher. If it is disabled, the title + line="553">Make @self enable or disable its view switcher. If it is disabled, the title will be displayed instead. This allows to programmatically and prematurely hide the view switcher of @self even if it fits in the available space. This can be used e.g. to ensure the view switcher is hidden below a certain window width, or any other constraint you find suitable. + line="57"/> @@ -9521,34 +9356,24 @@ window width, or any other constraint you find suitable. a #HdyViewSwitcherTitle + line="555">a #HdyViewSwitcherTitle %TRUE to enable the view switcher, %FALSE to disable it + line="556">%TRUE to enable the view switcher, %FALSE to disable it - - Use the "icon-size" property to hint the icons to use, you almost certainly -want to leave this as %GTK_ICON_SIZE_BUTTON. - - The #HdyViewSwitcherPolicy the #HdyViewSwitcher should use to determine + line="220">The #HdyViewSwitcherPolicy the #HdyViewSwitcher should use to determine which mode to use. @@ -9558,7 +9383,7 @@ which mode to use. transfer-ownership="none"> The #GtkStack the #HdyViewSwitcher controls. + line="235">The #GtkStack the #HdyViewSwitcher controls. transfer-ownership="none"> The subtitle of the #HdyViewSwitcher. + line="263">The subtitle of the #HdyViewSwitcher. transfer-ownership="none"> The title of the #HdyViewSwitcher. + line="249">The title of the #HdyViewSwitcher. Whether the bar should be revealed or hidden. + line="291">Whether the bar should be revealed or hidden. transfer-ownership="none"> Whether the bar should be revealed or hidden. + line="277">Whether the bar should be revealed or hidden. @@ -9702,21 +9527,21 @@ which mode to use. version="0.0.6"> This is a default implementation of #HdyComboRowGetEnumValueNameFunc to be + line="807">This is a default implementation of #HdyComboRowGetEnumValueNameFunc to be used with hdy_combo_row_set_for_enum(). If the enumeration has a nickname, it will return it, otherwise it will return its name. a newly allocated displayable name that represents @value + line="816">a newly allocated displayable name that represents @value the value from the enum from which to get a name + line="809">the value from the enum from which to get a name allow-none="1"> unused user data + line="810">unused user data diff --git a/libhandy-sys/src/lib.rs b/libhandy-sys/src/lib.rs index f9af240..1e7e3a8 100644 --- a/libhandy-sys/src/lib.rs +++ b/libhandy-sys/src/lib.rs @@ -1560,16 +1560,11 @@ extern "C" { //========================================================================= pub fn hdy_view_switcher_get_type() -> GType; pub fn hdy_view_switcher_new() -> *mut gtk::GtkWidget; - pub fn hdy_view_switcher_get_icon_size(self_: *mut HdyViewSwitcher) -> gtk::GtkIconSize; pub fn hdy_view_switcher_get_narrow_ellipsize( self_: *mut HdyViewSwitcher, ) -> pango::PangoEllipsizeMode; pub fn hdy_view_switcher_get_policy(self_: *mut HdyViewSwitcher) -> HdyViewSwitcherPolicy; pub fn hdy_view_switcher_get_stack(self_: *mut HdyViewSwitcher) -> *mut gtk::GtkStack; - pub fn hdy_view_switcher_set_icon_size( - self_: *mut HdyViewSwitcher, - icon_size: gtk::GtkIconSize, - ); pub fn hdy_view_switcher_set_narrow_ellipsize( self_: *mut HdyViewSwitcher, mode: pango::PangoEllipsizeMode, @@ -1582,16 +1577,11 @@ extern "C" { //========================================================================= pub fn hdy_view_switcher_bar_get_type() -> GType; pub fn hdy_view_switcher_bar_new() -> *mut gtk::GtkWidget; - pub fn hdy_view_switcher_bar_get_icon_size(self_: *mut HdyViewSwitcherBar) -> gtk::GtkIconSize; pub fn hdy_view_switcher_bar_get_policy( self_: *mut HdyViewSwitcherBar, ) -> HdyViewSwitcherPolicy; pub fn hdy_view_switcher_bar_get_reveal(self_: *mut HdyViewSwitcherBar) -> gboolean; pub fn hdy_view_switcher_bar_get_stack(self_: *mut HdyViewSwitcherBar) -> *mut gtk::GtkStack; - pub fn hdy_view_switcher_bar_set_icon_size( - self_: *mut HdyViewSwitcherBar, - icon_size: gtk::GtkIconSize, - ); pub fn hdy_view_switcher_bar_set_policy( self_: *mut HdyViewSwitcherBar, policy: HdyViewSwitcherPolicy, @@ -1607,9 +1597,6 @@ extern "C" { //========================================================================= pub fn hdy_view_switcher_title_get_type() -> GType; pub fn hdy_view_switcher_title_new() -> *mut HdyViewSwitcherTitle; - pub fn hdy_view_switcher_title_get_icon_size( - self_: *mut HdyViewSwitcherTitle, - ) -> gtk::GtkIconSize; pub fn hdy_view_switcher_title_get_policy( self_: *mut HdyViewSwitcherTitle, ) -> HdyViewSwitcherPolicy; @@ -1622,10 +1609,6 @@ extern "C" { pub fn hdy_view_switcher_title_get_view_switcher_enabled( self_: *mut HdyViewSwitcherTitle, ) -> gboolean; - pub fn hdy_view_switcher_title_set_icon_size( - self_: *mut HdyViewSwitcherTitle, - icon_size: gtk::GtkIconSize, - ); pub fn hdy_view_switcher_title_set_policy( self_: *mut HdyViewSwitcherTitle, policy: HdyViewSwitcherPolicy, diff --git a/libhandy/src/auto/view_switcher.rs b/libhandy/src/auto/view_switcher.rs index 9b17058..58b1b0b 100644 --- a/libhandy/src/auto/view_switcher.rs +++ b/libhandy/src/auto/view_switcher.rs @@ -42,7 +42,6 @@ impl Default for ViewSwitcher { #[derive(Clone, Default)] pub struct ViewSwitcherBuilder { - icon_size: Option, narrow_ellipsize: Option, policy: Option, stack: Option, @@ -91,9 +90,6 @@ impl ViewSwitcherBuilder { pub fn build(self) -> ViewSwitcher { let mut properties: Vec<(&str, &dyn ToValue)> = vec![]; - if let Some(ref icon_size) = self.icon_size { - properties.push(("icon-size", icon_size)); - } if let Some(ref narrow_ellipsize) = self.narrow_ellipsize { properties.push(("narrow-ellipsize", narrow_ellipsize)); } @@ -215,11 +211,6 @@ impl ViewSwitcherBuilder { ret } - pub fn icon_size(mut self, icon_size: i32) -> Self { - self.icon_size = Some(icon_size); - self - } - pub fn narrow_ellipsize(mut self, narrow_ellipsize: pango::EllipsizeMode) -> Self { self.narrow_ellipsize = Some(narrow_ellipsize); self @@ -414,24 +405,18 @@ impl ViewSwitcherBuilder { pub const NONE_VIEW_SWITCHER: Option<&ViewSwitcher> = None; pub trait ViewSwitcherExt: 'static { - fn get_icon_size(&self) -> gtk::IconSize; - fn get_narrow_ellipsize(&self) -> pango::EllipsizeMode; fn get_policy(&self) -> ViewSwitcherPolicy; fn get_stack(&self) -> Option; - fn set_icon_size(&self, icon_size: gtk::IconSize); - fn set_narrow_ellipsize(&self, mode: pango::EllipsizeMode); fn set_policy(&self, policy: ViewSwitcherPolicy); fn set_stack>(&self, stack: Option<&P>); - fn connect_property_icon_size_notify(&self, f: F) -> SignalHandlerId; - fn connect_property_narrow_ellipsize_notify( &self, f: F, @@ -443,14 +428,6 @@ pub trait ViewSwitcherExt: 'static { } impl> ViewSwitcherExt for O { - fn get_icon_size(&self) -> gtk::IconSize { - unsafe { - from_glib(handy_sys::hdy_view_switcher_get_icon_size( - self.as_ref().to_glib_none().0, - )) - } - } - fn get_narrow_ellipsize(&self) -> pango::EllipsizeMode { unsafe { from_glib(handy_sys::hdy_view_switcher_get_narrow_ellipsize( @@ -475,15 +452,6 @@ impl> ViewSwitcherExt for O { } } - fn set_icon_size(&self, icon_size: gtk::IconSize) { - unsafe { - handy_sys::hdy_view_switcher_set_icon_size( - self.as_ref().to_glib_none().0, - icon_size.to_glib(), - ); - } - } - fn set_narrow_ellipsize(&self, mode: pango::EllipsizeMode) { unsafe { handy_sys::hdy_view_switcher_set_narrow_ellipsize( @@ -511,30 +479,6 @@ impl> ViewSwitcherExt for O { } } - fn connect_property_icon_size_notify(&self, f: F) -> SignalHandlerId { - unsafe extern "C" fn notify_icon_size_trampoline( - this: *mut handy_sys::HdyViewSwitcher, - _param_spec: glib_sys::gpointer, - f: glib_sys::gpointer, - ) where - P: IsA, - { - let f: &F = &*(f as *const F); - f(&ViewSwitcher::from_glib_borrow(this).unsafe_cast_ref()) - } - unsafe { - let f: Box_ = Box_::new(f); - connect_raw( - self.as_ptr() as *mut _, - b"notify::icon-size\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( - notify_icon_size_trampoline:: as *const (), - )), - Box_::into_raw(f), - ) - } - } - fn connect_property_narrow_ellipsize_notify( &self, f: F, diff --git a/libhandy/src/auto/view_switcher_bar.rs b/libhandy/src/auto/view_switcher_bar.rs index 1b80b41..f33fd69 100644 --- a/libhandy/src/auto/view_switcher_bar.rs +++ b/libhandy/src/auto/view_switcher_bar.rs @@ -41,7 +41,6 @@ impl Default for ViewSwitcherBar { #[derive(Clone, Default)] pub struct ViewSwitcherBarBuilder { - icon_size: Option, policy: Option, reveal: Option, stack: Option, @@ -90,9 +89,6 @@ impl ViewSwitcherBarBuilder { pub fn build(self) -> ViewSwitcherBar { let mut properties: Vec<(&str, &dyn ToValue)> = vec![]; - if let Some(ref icon_size) = self.icon_size { - properties.push(("icon-size", icon_size)); - } if let Some(ref policy) = self.policy { properties.push(("policy", policy)); } @@ -214,11 +210,6 @@ impl ViewSwitcherBarBuilder { ret } - pub fn icon_size(mut self, icon_size: i32) -> Self { - self.icon_size = Some(icon_size); - self - } - pub fn policy(mut self, policy: ViewSwitcherPolicy) -> Self { self.policy = Some(policy); self @@ -413,24 +404,18 @@ impl ViewSwitcherBarBuilder { pub const NONE_VIEW_SWITCHER_BAR: Option<&ViewSwitcherBar> = None; pub trait ViewSwitcherBarExt: 'static { - fn get_icon_size(&self) -> gtk::IconSize; - fn get_policy(&self) -> ViewSwitcherPolicy; fn get_reveal(&self) -> bool; fn get_stack(&self) -> Option; - fn set_icon_size(&self, icon_size: gtk::IconSize); - fn set_policy(&self, policy: ViewSwitcherPolicy); fn set_reveal(&self, reveal: bool); fn set_stack>(&self, stack: Option<&P>); - fn connect_property_icon_size_notify(&self, f: F) -> SignalHandlerId; - fn connect_property_policy_notify(&self, f: F) -> SignalHandlerId; fn connect_property_reveal_notify(&self, f: F) -> SignalHandlerId; @@ -439,14 +424,6 @@ pub trait ViewSwitcherBarExt: 'static { } impl> ViewSwitcherBarExt for O { - fn get_icon_size(&self) -> gtk::IconSize { - unsafe { - from_glib(handy_sys::hdy_view_switcher_bar_get_icon_size( - self.as_ref().to_glib_none().0, - )) - } - } - fn get_policy(&self) -> ViewSwitcherPolicy { unsafe { from_glib(handy_sys::hdy_view_switcher_bar_get_policy( @@ -471,15 +448,6 @@ impl> ViewSwitcherBarExt for O { } } - fn set_icon_size(&self, icon_size: gtk::IconSize) { - unsafe { - handy_sys::hdy_view_switcher_bar_set_icon_size( - self.as_ref().to_glib_none().0, - icon_size.to_glib(), - ); - } - } - fn set_policy(&self, policy: ViewSwitcherPolicy) { unsafe { handy_sys::hdy_view_switcher_bar_set_policy( @@ -507,30 +475,6 @@ impl> ViewSwitcherBarExt for O { } } - fn connect_property_icon_size_notify(&self, f: F) -> SignalHandlerId { - unsafe extern "C" fn notify_icon_size_trampoline( - this: *mut handy_sys::HdyViewSwitcherBar, - _param_spec: glib_sys::gpointer, - f: glib_sys::gpointer, - ) where - P: IsA, - { - let f: &F = &*(f as *const F); - f(&ViewSwitcherBar::from_glib_borrow(this).unsafe_cast_ref()) - } - unsafe { - let f: Box_ = Box_::new(f); - connect_raw( - self.as_ptr() as *mut _, - b"notify::icon-size\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( - notify_icon_size_trampoline:: as *const (), - )), - Box_::into_raw(f), - ) - } - } - fn connect_property_policy_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_policy_trampoline( this: *mut handy_sys::HdyViewSwitcherBar, diff --git a/libhandy/src/auto/view_switcher_title.rs b/libhandy/src/auto/view_switcher_title.rs index dc217b7..e4e4c0c 100644 --- a/libhandy/src/auto/view_switcher_title.rs +++ b/libhandy/src/auto/view_switcher_title.rs @@ -42,7 +42,6 @@ impl Default for ViewSwitcherTitle { #[derive(Clone, Default)] pub struct ViewSwitcherTitleBuilder { - icon_size: Option, policy: Option, stack: Option, subtitle: Option, @@ -93,9 +92,6 @@ impl ViewSwitcherTitleBuilder { pub fn build(self) -> ViewSwitcherTitle { let mut properties: Vec<(&str, &dyn ToValue)> = vec![]; - if let Some(ref icon_size) = self.icon_size { - properties.push(("icon-size", icon_size)); - } if let Some(ref policy) = self.policy { properties.push(("policy", policy)); } @@ -223,11 +219,6 @@ impl ViewSwitcherTitleBuilder { ret } - pub fn icon_size(mut self, icon_size: i32) -> Self { - self.icon_size = Some(icon_size); - self - } - pub fn policy(mut self, policy: ViewSwitcherPolicy) -> Self { self.policy = Some(policy); self @@ -432,8 +423,6 @@ impl ViewSwitcherTitleBuilder { pub const NONE_VIEW_SWITCHER_TITLE: Option<&ViewSwitcherTitle> = None; pub trait ViewSwitcherTitleExt: 'static { - fn get_icon_size(&self) -> gtk::IconSize; - fn get_policy(&self) -> ViewSwitcherPolicy; fn get_stack(&self) -> Option; @@ -446,8 +435,6 @@ pub trait ViewSwitcherTitleExt: 'static { fn get_view_switcher_enabled(&self) -> bool; - fn set_icon_size(&self, icon_size: gtk::IconSize); - fn set_policy(&self, policy: ViewSwitcherPolicy); fn set_stack>(&self, stack: Option<&P>); @@ -458,8 +445,6 @@ pub trait ViewSwitcherTitleExt: 'static { fn set_view_switcher_enabled(&self, enabled: bool); - fn connect_property_icon_size_notify(&self, f: F) -> SignalHandlerId; - fn connect_property_policy_notify(&self, f: F) -> SignalHandlerId; fn connect_property_stack_notify(&self, f: F) -> SignalHandlerId; @@ -480,14 +465,6 @@ pub trait ViewSwitcherTitleExt: 'static { } impl> ViewSwitcherTitleExt for O { - fn get_icon_size(&self) -> gtk::IconSize { - unsafe { - from_glib(handy_sys::hdy_view_switcher_title_get_icon_size( - self.as_ref().to_glib_none().0, - )) - } - } - fn get_policy(&self) -> ViewSwitcherPolicy { unsafe { from_glib(handy_sys::hdy_view_switcher_title_get_policy( @@ -538,15 +515,6 @@ impl> ViewSwitcherTitleExt for O { } } - fn set_icon_size(&self, icon_size: gtk::IconSize) { - unsafe { - handy_sys::hdy_view_switcher_title_set_icon_size( - self.as_ref().to_glib_none().0, - icon_size.to_glib(), - ); - } - } - fn set_policy(&self, policy: ViewSwitcherPolicy) { unsafe { handy_sys::hdy_view_switcher_title_set_policy( @@ -592,30 +560,6 @@ impl> ViewSwitcherTitleExt for O { } } - fn connect_property_icon_size_notify(&self, f: F) -> SignalHandlerId { - unsafe extern "C" fn notify_icon_size_trampoline( - this: *mut handy_sys::HdyViewSwitcherTitle, - _param_spec: glib_sys::gpointer, - f: glib_sys::gpointer, - ) where - P: IsA, - { - let f: &F = &*(f as *const F); - f(&ViewSwitcherTitle::from_glib_borrow(this).unsafe_cast_ref()) - } - unsafe { - let f: Box_ = Box_::new(f); - connect_raw( - self.as_ptr() as *mut _, - b"notify::icon-size\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( - notify_icon_size_trampoline:: as *const (), - )), - Box_::into_raw(f), - ) - } - } - fn connect_property_policy_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_policy_trampoline( this: *mut handy_sys::HdyViewSwitcherTitle, diff --git a/subprojects/libhandy.wrap b/subprojects/libhandy.wrap index 9c6dd0b..d3493a9 100644 --- a/subprojects/libhandy.wrap +++ b/subprojects/libhandy.wrap @@ -1,3 +1,3 @@ [wrap-git] url = https://gitlab.gnome.org/GNOME/libhandy.git -revision = ca9430d8e65d968013687f9b58b21d15187e74e5 +revision = c7aaf6f4f50b64ee55fcfee84000e9525fc5f93a