mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
icontheme: Add a missing getter
We want to have a get_display() method on every object that is tied to the display, so add one here.
This commit is contained in:
parent
ff7bcf738c
commit
9fdb71cbd2
@ -4928,6 +4928,7 @@ GTK_TYPE_ICON_LOOKUP_FLAGS
|
|||||||
GtkIconThemeError
|
GtkIconThemeError
|
||||||
gtk_icon_theme_new
|
gtk_icon_theme_new
|
||||||
gtk_icon_theme_get_for_display
|
gtk_icon_theme_get_for_display
|
||||||
|
gtk_icon_theme_get_display
|
||||||
gtk_icon_theme_set_search_path
|
gtk_icon_theme_set_search_path
|
||||||
gtk_icon_theme_get_search_path
|
gtk_icon_theme_get_search_path
|
||||||
gtk_icon_theme_add_search_path
|
gtk_icon_theme_add_search_path
|
||||||
|
@ -4136,3 +4136,21 @@ gtk_icon_theme_lookup_by_gicon (GtkIconTheme *self,
|
|||||||
|
|
||||||
return icon;
|
return icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gtk_icon_theme_get_display:
|
||||||
|
* @self: a #GtkIconTheme
|
||||||
|
*
|
||||||
|
* Returns the display that the GtkIconTheme object was
|
||||||
|
* created for.
|
||||||
|
*
|
||||||
|
* Returns: (nullable) (transfer none): the display of @icon_theme
|
||||||
|
*/
|
||||||
|
GdkDisplay *
|
||||||
|
gtk_icon_theme_get_display (GtkIconTheme *self)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (GTK_IS_ICON_THEME (self), NULL);
|
||||||
|
|
||||||
|
return self->display;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -86,6 +86,9 @@ GtkIconTheme *gtk_icon_theme_new (void);
|
|||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
GtkIconTheme *gtk_icon_theme_get_for_display (GdkDisplay *display);
|
GtkIconTheme *gtk_icon_theme_get_for_display (GdkDisplay *display);
|
||||||
|
|
||||||
|
GDK_AVAILABLE_IN_ALL
|
||||||
|
GdkDisplay * gtk_icon_theme_get_display (GtkIconTheme *self);
|
||||||
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
void gtk_icon_theme_set_search_path (GtkIconTheme *self,
|
void gtk_icon_theme_set_search_path (GtkIconTheme *self,
|
||||||
const char * const *path);
|
const char * const *path);
|
||||||
|
Loading…
Reference in New Issue
Block a user