FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 01-09-2012, 07:25 PM
Chris Lumens
 
Default Make the DiskOverview icon quite a bit smaller.

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-09-2012, 07:59 PM
David Lehman
 
Default Make the DiskOverview icon quite a bit smaller.

All three look good to me.

On Mon, 2012-01-09 at 15:25 -0500, Chris Lumens wrote:
> 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: {


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

Thread Tools




All times are GMT. The time now is 07:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org