[gnome-commander/gcmd-1-3] Define NUM_FILE_TYPE_PIXMAPS as G_N_ELEMENTS(file_type_pixmap_files)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-3] Define NUM_FILE_TYPE_PIXMAPS as G_N_ELEMENTS(file_type_pixmap_files)
- Date: Sat, 12 Sep 2009 11:57:11 +0000 (UTC)
commit 5e23a43e21d2947f13a5f87d919b2d187664f031
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sat Sep 12 00:24:40 2009 +0200
Define NUM_FILE_TYPE_PIXMAPS as G_N_ELEMENTS(file_type_pixmap_files)
src/imageloader.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/imageloader.cc b/src/imageloader.cc
index e6c176f..f6baeec 100644
--- a/src/imageloader.cc
+++ b/src/imageloader.cc
@@ -28,9 +28,6 @@
using namespace std;
-#define NUM_FILE_TYPE_PIXMAPS 8
-
-
struct CacheEntry
{
gboolean dead_end;
@@ -41,7 +38,7 @@ struct CacheEntry
};
-static const gchar *file_type_pixmap_files[NUM_FILE_TYPE_PIXMAPS] = {
+static const gchar *file_type_pixmap_files[] = {
"file-type-icons/file_type_regular.xpm",
"file-type-icons/file_type_regular.xpm",
"file-type-icons/file_type_dir.xpm",
@@ -53,6 +50,9 @@ static const gchar *file_type_pixmap_files[NUM_FILE_TYPE_PIXMAPS] = {
};
+#define NUM_FILE_TYPE_PIXMAPS G_N_ELEMENTS(file_type_pixmap_files)
+
+
static const gchar *pixmap_files[NUM_PIXMAPS] = {"",
"gnome_cmd_arrow_up.xpm",
"gnome_cmd_arrow_down.xpm",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]