[gnome-control-center] display: clean up declarations
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] display: clean up declarations
- Date: Sun, 21 Nov 2010 01:39:00 +0000 (UTC)
commit a4ac7717daff914902a91156d3290bee404ed8c7
Author: William Jon McCann <jmccann redhat com>
Date: Sat Nov 20 18:35:02 2010 -0500
display: clean up declarations
panels/display/xrandr-capplet.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/panels/display/xrandr-capplet.c b/panels/display/xrandr-capplet.c
index e9c7b04..013605d 100644
--- a/panels/display/xrandr-capplet.c
+++ b/panels/display/xrandr-capplet.c
@@ -1670,12 +1670,12 @@ static void
paint_output (App *app, cairo_t *cr, int i)
{
int w, h;
- double scale = compute_scale (app);
+ double scale;
double x, y;
int total_w, total_h;
- GList *connected_outputs = list_connected_outputs (app, &total_w, &total_h);
- GnomeOutputInfo *output = g_list_nth (connected_outputs, i)->data;
- PangoLayout *layout = get_display_name (app, output);
+ GList *connected_outputs;
+ GnomeOutputInfo *output;
+ PangoLayout *layout;
PangoRectangle ink_extent, log_extent;
GdkRectangle viewport;
GdkColor output_color;
@@ -1683,6 +1683,12 @@ paint_output (App *app, cairo_t *cr, int i)
double available_w;
double factor;
+ scale = compute_scale (app);
+
+ connected_outputs = list_connected_outputs (app, &total_w, &total_h);
+ output = g_list_nth (connected_outputs, i)->data;
+ layout = get_display_name (app, output);
+
cairo_save (cr);
foo_scroll_area_get_viewport (FOO_SCROLL_AREA (app->area), &viewport);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]