diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-10-03 15:54:52 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-10-03 15:54:52 +0000 |
commit | 70ae6a0e8336bd80f12cd97130f047f4ed33a9c2 (patch) | |
tree | 4fe213a3d298d5b564276b0c06515cdd422894c1 /gtk/gtkrecentchooserdefault.c | |
parent | 29d0ac8db57daf64d99d92c0e162a395982c265f (diff) | |
download | gtk+-70ae6a0e8336bd80f12cd97130f047f4ed33a9c2.tar.gz |
Apply a patch by Behdad Esfahbod to reduce relocations. (#359053)
2006-10-03 Matthias Clasen <mclasen@redhat.com>
* gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to
reduce relocations. (#359053)
Diffstat (limited to 'gtk/gtkrecentchooserdefault.c')
-rw-r--r-- | gtk/gtkrecentchooserdefault.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c index c56e1722c9..1a9f131480 100644 --- a/gtk/gtkrecentchooserdefault.c +++ b/gtk/gtkrecentchooserdefault.c @@ -163,9 +163,6 @@ static const GtkTargetEntry recent_list_source_targets[] = { { "text/uri-list", 0, TEXT_URI_LIST } }; -static const int num_recent_list_source_targets = (sizeof (recent_list_source_targets) - / sizeof (recent_list_source_targets[0])); - /* Icon size for if we can't get it from the theme */ #define FALLBACK_ICON_SIZE 48 #define FALLBACK_ITEM_LIMIT 20 @@ -445,7 +442,7 @@ gtk_recent_chooser_default_constructor (GType type, gtk_drag_source_set (impl->recent_view, GDK_BUTTON1_MASK, recent_list_source_targets, - num_recent_list_source_targets, + G_N_ELEMENTS (recent_list_source_targets), GDK_ACTION_COPY); impl->filter_combo_hbox = gtk_hbox_new (FALSE, 12); |