[PATCH 1/3] Make the DiskOverview icon quite a bit smaller.

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

 



200px makes it take up entirely too much of the screen.  125px is a better
compromise between the look we're going for and screen space usage.
---
 widgets/src/DiskOverview.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/widgets/src/DiskOverview.c b/widgets/src/DiskOverview.c
index 6ebdb9f..73a423a 100644
--- a/widgets/src/DiskOverview.c
+++ b/widgets/src/DiskOverview.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011  Red Hat, Inc.
+ * Copyright (C) 2011-2012  Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -52,6 +52,8 @@ enum {
 #define DEFAULT_OS            ""
 #define DEFAULT_POPUP_INFO    ""
 
+#define ICON_SIZE             125
+
 struct _AnacondaDiskOverviewPrivate {
     GtkWidget *vbox;
     GtkWidget *kind;
@@ -195,7 +197,7 @@ static void anaconda_disk_overview_init(AnacondaDiskOverview *widget) {
 
     /* Create the spoke's icon. */
     widget->priv->kind = gtk_image_new_from_icon_name(DEFAULT_KIND, GTK_ICON_SIZE_DIALOG);
-    gtk_image_set_pixel_size(GTK_IMAGE(widget->priv->kind), 200);
+    gtk_image_set_pixel_size(GTK_IMAGE(widget->priv->kind), ICON_SIZE);
 
     /* Create the description label. */
     widget->priv->description_label = gtk_label_new(NULL);
@@ -282,7 +284,7 @@ static void anaconda_disk_overview_set_property(GObject *object, guint prop_id,
 
         case PROP_KIND:
             gtk_image_set_from_icon_name(GTK_IMAGE(priv->kind), g_value_get_string(value), GTK_ICON_SIZE_DIALOG);
-            gtk_image_set_pixel_size(GTK_IMAGE(priv->kind), 200);
+            gtk_image_set_pixel_size(GTK_IMAGE(priv->kind), ICON_SIZE);
             break;
 
         case PROP_CAPACITY: {
-- 
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux