summaryrefslogtreecommitdiff
path: root/gtk/gtkrecentchooserdefault.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-10-03 15:54:52 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-10-03 15:54:52 +0000
commit70ae6a0e8336bd80f12cd97130f047f4ed33a9c2 (patch)
tree4fe213a3d298d5b564276b0c06515cdd422894c1 /gtk/gtkrecentchooserdefault.c
parent29d0ac8db57daf64d99d92c0e162a395982c265f (diff)
downloadgtk+-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.c5
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);