summaryrefslogtreecommitdiff
path: root/gtk/gtkdragsource.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-12-01 04:44:29 +0100
committerBenjamin Otte <otte@redhat.com>2015-12-02 00:29:30 +0100
commit4a42aa5229e0ba80cf4673c67575ef57d60ae6c5 (patch)
tree07105523d8a985130f75681fd0922ebe412cb27f /gtk/gtkdragsource.c
parente99eba4415d138f8eadcb9858b3196e6e5aecc75 (diff)
downloadgtk+-4a42aa5229e0ba80cf4673c67575ef57d60ae6c5.tar.gz
imagedefinition: Remove icon-size
The size of icons is a property that is relevant to who is rendering the icon, not to the icon itself. Example: Starting a DND operation from an entry icon should cause the icon to resize (from the entr icon's size to the DND icon size).
Diffstat (limited to 'gtk/gtkdragsource.c')
-rw-r--r--gtk/gtkdragsource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkdragsource.c b/gtk/gtkdragsource.c
index 5a4602234e..6713b99736 100644
--- a/gtk/gtkdragsource.c
+++ b/gtk/gtkdragsource.c
@@ -396,7 +396,7 @@ gtk_drag_source_set_icon_stock (GtkWidget *widget,
g_return_if_fail (site != NULL);
gtk_image_definition_unref (site->image_def);
- site->image_def = gtk_image_definition_new_stock (stock_id, GTK_ICON_SIZE_DND);
+ site->image_def = gtk_image_definition_new_stock (stock_id);
}
/**
@@ -422,7 +422,7 @@ gtk_drag_source_set_icon_name (GtkWidget *widget,
g_return_if_fail (site != NULL);
gtk_image_definition_unref (site->image_def);
- site->image_def = gtk_image_definition_new_icon_name (icon_name, GTK_ICON_SIZE_DND);
+ site->image_def = gtk_image_definition_new_icon_name (icon_name);
}
/**
@@ -448,6 +448,6 @@ gtk_drag_source_set_icon_gicon (GtkWidget *widget,
g_return_if_fail (site != NULL);
gtk_image_definition_unref (site->image_def);
- site->image_def = gtk_image_definition_new_gicon (icon, GTK_ICON_SIZE_DND);
+ site->image_def = gtk_image_definition_new_gicon (icon);
}