((pos) == GTK_ICON_ENTRY_PRIMARY || \
(pos) == GTK_ICON_ENTRY_SECONDARY)
-#define GTK_ICON_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_ICON_ENTRY, GtkIconEntryPrivate))
-
typedef struct
{
GdkPixbuf *pixbuf;
static void
gtk_icon_entry_init (GtkIconEntry *entry)
{
+ entry->priv = G_TYPE_INSTANCE_GET_PRIVATE (entry, GTK_TYPE_ICON_ENTRY,
+ GtkIconEntryPrivate);
+
g_signal_connect_after (entry, "expose-event",
G_CALLBACK (entry_expose_event), entry);
}
GtkIconEntryPrivate *priv;
EntryIconInfo *icon_info;
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
icon_info = &priv->icons[icon_pos];
if (icon_info->pixbuf == NULL)
int i;
entry = GTK_ICON_ENTRY (widget);
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
GTK_WIDGET_CLASS (parent_class)->realize (widget);
int i;
entry = GTK_ICON_ENTRY (widget);
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
GTK_WIDGET_CLASS (parent_class)->unrealize (widget);
EntryIconInfo *icon_info;
GtkIconEntryPrivate *priv;
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
icon_info = &priv->icons[icon_pos];
g_object_ref (icon_info->pixbuf);
gint x, y, width, height;
entry = GTK_ICON_ENTRY (widget);
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
icon_info = &priv->icons[icon_pos];
if (icon_info->pixbuf == NULL || !GTK_WIDGET_REALIZED (widget))
g_return_val_if_fail (event != NULL, FALSE);
entry = GTK_ICON_ENTRY (widget);
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
if (GTK_WIDGET_DRAWABLE (widget))
{
int i;
entry = GTK_ICON_ENTRY (widget);
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
for (i = 0; i < MAX_ICONS; i++)
{
int i;
entry = GTK_ICON_ENTRY (widget);
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
for (i = 0; i < MAX_ICONS; i++)
{
int i;
entry = GTK_ICON_ENTRY (widget);
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
for (i = 0; i < MAX_ICONS; i++)
{
int i;
entry = GTK_ICON_ENTRY (widget);
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
for (i = 0; i < MAX_ICONS; i++)
{
GtkIconEntryPrivate *priv;
int i;
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
for (i = 0; i < MAX_ICONS; i++)
{
g_return_if_fail (GTK_IS_ICON_ENTRY (entry));
g_return_if_fail (IS_VALID_ICON_ENTRY_POSITION (icon_pos));
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
icon_info = &priv->icons[icon_pos];
if (pixbuf == icon_info->pixbuf)
g_return_if_fail (GTK_IS_ICON_ENTRY (entry));
g_return_if_fail (IS_VALID_ICON_ENTRY_POSITION (icon_pos));
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
icon_info = &priv->icons[icon_pos];
if (pixbuf == icon_info->pixbuf)
g_return_if_fail (GTK_IS_ICON_ENTRY (entry));
g_return_if_fail (IS_VALID_ICON_ENTRY_POSITION (icon_pos));
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
icon_info = &priv->icons[icon_pos];
screen = gtk_widget_get_screen (GTK_WIDGET (entry));
GError *error = NULL;
GtkIconInfo *info;
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
icon_info = &priv->icons[icon_pos];
screen = gtk_widget_get_screen (GTK_WIDGET (entry));
GtkIconEntryPrivate *priv;
GdkCursor *cursor;
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
icon_info = &priv->icons[icon_pos];
icon_info->cursor_type = cursor_type;
EntryIconInfo *icon_info;
GtkIconEntryPrivate *priv;
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
g_return_if_fail (entry != NULL);
g_return_if_fail (GTK_IS_ICON_ENTRY (entry));
g_return_val_if_fail (GTK_IS_ICON_ENTRY (entry), NULL);
g_return_val_if_fail (IS_VALID_ICON_ENTRY_POSITION (icon_pos), NULL);
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
return priv->icons[icon_pos].pixbuf;
}
g_return_val_if_fail (GTK_IS_ICON_ENTRY (entry), NULL);
g_return_val_if_fail (IS_VALID_ICON_ENTRY_POSITION (icon_pos), NULL);
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
icon_info = &priv->icons[icon_pos];
return icon_info->storage_type == _GTK_IMAGE_GICON ? icon_info->gicon : NULL;
g_return_val_if_fail (GTK_IS_ICON_ENTRY (entry), FALSE);
g_return_val_if_fail (IS_VALID_ICON_ENTRY_POSITION (icon_pos), FALSE);
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
return priv->icons[icon_pos].highlight;
}
g_return_if_fail (GTK_IS_ICON_ENTRY (entry));
g_return_if_fail (IS_VALID_ICON_ENTRY_POSITION (icon_pos));
- priv = GTK_ICON_ENTRY_GET_PRIVATE (entry);
+ priv = entry->priv;
icon_info = &priv->icons[icon_pos];