mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
aboutdialog: Clean up for logo being a texture
This commit is contained in:
parent
22472c1924
commit
e8b2493680
@ -575,7 +575,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
|
||||
* Since: 2.6
|
||||
*/
|
||||
props[PROP_LOGO] =
|
||||
g_param_spec_boxed ("logo",
|
||||
g_param_spec_object ("logo",
|
||||
P_("Logo"),
|
||||
P_("A logo for the about box. If this is not set, it defaults to gtk_window_get_default_icon_list()"),
|
||||
GDK_TYPE_TEXTURE,
|
||||
@ -955,9 +955,9 @@ gtk_about_dialog_get_property (GObject *object,
|
||||
break;
|
||||
case PROP_LOGO:
|
||||
if (gtk_image_get_storage_type (GTK_IMAGE (priv->logo_image)) == GTK_IMAGE_TEXTURE)
|
||||
g_value_set_boxed (value, gtk_image_get_texture (GTK_IMAGE (priv->logo_image)));
|
||||
g_value_set_object (value, gtk_image_get_texture (GTK_IMAGE (priv->logo_image)));
|
||||
else
|
||||
g_value_set_boxed (value, NULL);
|
||||
g_value_set_object (value, NULL);
|
||||
break;
|
||||
case PROP_LOGO_ICON_NAME:
|
||||
if (gtk_image_get_storage_type (GTK_IMAGE (priv->logo_image)) == GTK_IMAGE_ICON_NAME)
|
||||
@ -1817,7 +1817,7 @@ gtk_about_dialog_set_logo (GtkAboutDialog *about,
|
||||
GtkAboutDialogPrivate *priv;
|
||||
|
||||
g_return_if_fail (GTK_IS_ABOUT_DIALOG (about));
|
||||
g_return_if_fail (GDK_IS_TEXTURE (logo));
|
||||
g_return_if_fail (logo == NULL || GDK_IS_TEXTURE (logo));
|
||||
|
||||
priv = about->priv;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user