2005-07-05 Diego Gonzalez <diego@pemas.net
Patch by Jaap A. Haitsma <jaap@haitsma.org> * gnome-about-me.c: Remove use of bonobo, we don't need it. * gnome-about-me.c: Reorder some of the code and simplify file chooser, also avoid having more than on instance of the file chooser dialog opened. * gnome-about-me.glade: remove some garbage that was left * gnome-about-me.desktop.in.in: set the correct bugzilla component and icon. * Makefile.am: fix so that the custom dialog works in glade (bug 309353) * Set dialog icon (bug 309342)
This commit is contained in:
parent
f37d2a8268
commit
f0ff8f7cc3
6 changed files with 83 additions and 130 deletions
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
@ -257,6 +256,7 @@ set_image_from_data (EImageChooser *chooser,
|
|||
else if (chooser->priv->image_height < new_height
|
||||
|| chooser->priv->image_width < new_width) {
|
||||
/* we need to scale down */
|
||||
g_print ("we need to scale down\n");
|
||||
if (new_height > new_width)
|
||||
scale = (float)chooser->priv->image_height / new_height;
|
||||
else
|
||||
|
@ -264,7 +264,7 @@ set_image_from_data (EImageChooser *chooser,
|
|||
}
|
||||
else {
|
||||
/* we need to scale up */
|
||||
printf ("we need to scale up\n");
|
||||
g_print ("we need to scale up\n");
|
||||
if (new_height > new_width)
|
||||
scale = (float)new_height / chooser->priv->image_height;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue