Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Delta Between Two Patch Sets: ui/gtk3/iconwidget.vala

Issue 5517048: Merge the devel branch (Closed) Base URL: git@github.com:phuang/ibus.git@devel
Left Patch Set: Fix review issues Created 13 years, 1 month ago
Right Patch Set: Rebase on HEAD Created 13 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
(Both sides are equal)
1 /* vim:set et sts=4 sw=4: 1 /* vim:set et sts=4 sw=4:
2 * 2 *
3 * ibus - The Input Bus 3 * ibus - The Input Bus
4 * 4 *
5 * Copyright(c) 2011 Peng Huang <shawn.p.huang@gmail.com> 5 * Copyright(c) 2011 Peng Huang <shawn.p.huang@gmail.com>
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public 8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or(at your option) any later version. 10 * version 2 of the License, or(at your option) any later version.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 float height = (float)pixbuf.get_height(); 47 float height = (float)pixbuf.get_height();
48 float scale = size / (width > height ? width : height); 48 float scale = size / (width > height ? width : height);
49 width *= scale; 49 width *= scale;
50 height *= scale; 50 height *= scale;
51 51
52 pixbuf = pixbuf.scale_simple((int)width, (int)height, Gdk.InterpType.BIL INEAR); 52 pixbuf = pixbuf.scale_simple((int)width, (int)height, Gdk.InterpType.BIL INEAR);
53 set_from_pixbuf(pixbuf); 53 set_from_pixbuf(pixbuf);
54 show(); 54 show();
55 } 55 }
56 } 56 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b