[epiphany/overview] ephy-overview: use a single #define for the thumbnail size



commit 18e51c46bfc216cdd51cb20354636d25e9e9cef7
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Fri Aug 3 18:20:02 2012 +0200

    ephy-overview: use a single #define for the thumbnail size

 lib/ephy-snapshot-service.c |    4 ----
 lib/ephy-snapshot-service.h |    4 ++++
 src/ephy-overview.c         |    5 ++---
 3 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/lib/ephy-snapshot-service.c b/lib/ephy-snapshot-service.c
index c709325..746260f 100644
--- a/lib/ephy-snapshot-service.c
+++ b/lib/ephy-snapshot-service.c
@@ -33,10 +33,6 @@
 
 #define EPHY_SNAPSHOT_SERVICE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EPHY_TYPE_SNAPSHOT_SERVICE, EphySnapshotServicePrivate))
 
-/* Values taken from the Web mockups. */
-#define EPHY_THUMBNAIL_WIDTH 175
-#define EPHY_THUMBNAIL_HEIGHT 175
-
 struct _EphySnapshotServicePrivate
 {
   GnomeDesktopThumbnailFactory *factory;
diff --git a/lib/ephy-snapshot-service.h b/lib/ephy-snapshot-service.h
index 90246e0..bff6922 100644
--- a/lib/ephy-snapshot-service.h
+++ b/lib/ephy-snapshot-service.h
@@ -56,6 +56,10 @@ struct _EphySnapshotServiceClass
   GObjectClass parent_class;
 };
 
+/* Values taken from the Web mockups. */
+#define EPHY_THUMBNAIL_WIDTH 172
+#define EPHY_THUMBNAIL_HEIGHT 172
+
 typedef void (* EphySnapshotServiceCallback) (GdkPixbuf *snapshot,
                                               gpointer user_data);
 
diff --git a/src/ephy-overview.c b/src/ephy-overview.c
index 65cadd7..0a5dbc3 100644
--- a/src/ephy-overview.c
+++ b/src/ephy-overview.c
@@ -22,6 +22,7 @@
 #include "config.h"
 #include "ephy-active-store.h"
 #include "ephy-frecent-store.h"
+#include "ephy-snapshot-service.h"
 #include "ephy-history-service.h"
 #include "ephy-overview.h"
 #include "ephy-shell.h"
@@ -44,8 +45,6 @@ struct _EphyOverviewPrivate
   GtkWidget *bottom_view;
 };
 
-#define EPHY_OVERVIEW_ICON_SIZE 175
-
 G_DEFINE_TYPE (EphyOverview, ephy_overview, GTK_TYPE_GRID)
 
 static void
@@ -129,7 +128,7 @@ ephy_overview_get_icon (const gchar *icon_name)
 
 	pixbuf = gtk_icon_theme_load_icon (icon_theme,
                                      icon_name,
-                                     EPHY_OVERVIEW_ICON_SIZE,
+                                     EPHY_THUMBNAIL_WIDTH,
                                      0,
                                      &error);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]