~robert-ancell/unity-control-center/gtk-stock-deprecated

« back to all changes in this revision

Viewing changes to panels/datetime/datetime-prefs.c

  • Committer: Robert Ancell
  • Date: 2014-02-18 03:09:04 UTC
  • Revision ID: robert.ancell@canonical.com-20140218030904-twozv81b094dkzxg
Stop using deprecated GtkStock

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
  gtk_entry_set_text (GTK_ENTRY (self->priv->tz_entry), name);
219
219
  g_free (name);
220
220
 
221
 
  gtk_entry_set_icon_from_stock (GTK_ENTRY (self->priv->tz_entry),
222
 
                                 GTK_ENTRY_ICON_SECONDARY, NULL);
 
221
  gtk_entry_set_icon_from_icon_name (GTK_ENTRY (self->priv->tz_entry),
 
222
                                     GTK_ENTRY_ICON_SECONDARY, NULL);
223
223
}
224
224
 
225
225
static void
634
634
  g_free (name);
635
635
  g_free (zone);
636
636
 
637
 
  gtk_entry_set_icon_from_stock (entry, GTK_ENTRY_ICON_SECONDARY,
638
 
                                 correct ? NULL : GTK_STOCK_DIALOG_ERROR);
 
637
  gtk_entry_set_icon_from_icon_name (entry, GTK_ENTRY_ICON_SECONDARY,
 
638
                                     correct ? NULL : "dialog-error");
639
639
  gtk_entry_set_icon_tooltip_text (entry, GTK_ENTRY_ICON_SECONDARY,
640
640
                                   _("You need to choose a location to change the time zone."));
641
641
  gtk_entry_set_icon_activatable (entry, GTK_ENTRY_ICON_SECONDARY, FALSE);