summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-12-13 20:01:54 -0600
committerScott Balneaves <[email protected]>2012-12-13 20:01:54 -0600
commit0eb2befbdb3b986cfe2a6ac3429951f463a10a7c (patch)
tree7b10751550bf6cbe176471417700d2826415e8a7
parent9c36e768c1636dd1e1d68dc7029a6f5918bb55d2 (diff)
downloadmate-control-center-0eb2befbdb3b986cfe2a6ac3429951f463a10a7c.tar.bz2
mate-control-center-0eb2befbdb3b986cfe2a6ac3429951f463a10a7c.tar.xz
Make the image size correspond to the scaling
-rw-r--r--capplets/about-me/mate-about-me-dialog.ui4
-rw-r--r--capplets/about-me/mate-about-me.c6
2 files changed, 4 insertions, 6 deletions
diff --git a/capplets/about-me/mate-about-me-dialog.ui b/capplets/about-me/mate-about-me-dialog.ui
index 5324d220..c57f267c 100644
--- a/capplets/about-me/mate-about-me-dialog.ui
+++ b/capplets/about-me/mate-about-me-dialog.ui
@@ -57,8 +57,8 @@
<property name="spacing">12</property>
<child>
<object class="GtkButton" id="button-image">
- <property name="width_request">80</property>
- <property name="height_request">80</property>
+ <property name="width_request">100</property>
+ <property name="height_request">100</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
diff --git a/capplets/about-me/mate-about-me.c b/capplets/about-me/mate-about-me.c
index 6362d2f1..b48cbdee 100644
--- a/capplets/about-me/mate-about-me.c
+++ b/capplets/about-me/mate-about-me.c
@@ -38,8 +38,8 @@
#include "capplet-util.h"
-#define MAX_HEIGHT 150
-#define MAX_WIDTH 150
+#define MAX_HEIGHT 100
+#define MAX_WIDTH 100
#define EMAIL_SLOTS 4
@@ -175,7 +175,6 @@ about_me_update_photo (MateAboutMe *me)
"compression", "9", NULL);
g_free (data);
- g_free (scaled);
data = (guchar *) scaled_data;
length = scaled_length;
}
@@ -192,7 +191,6 @@ about_me_update_photo (MateAboutMe *me)
}
g_free (file);
- g_free (data);
g_object_unref (pixbuf);
} else if (me->image_changed && !me->have_image) {