aboutsummaryrefslogtreecommitdiff
path: root/src/lib/animations.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-15 20:00:02 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-15 20:00:02 +0000
commitb5290908f7ee34c85d197c5382a194f18f06f0f2 (patch)
treef5c10246c4b55204fc12dc921507d35d281e8a87 /src/lib/animations.c
parentdbbf5c6f679877488dfb6c84b5ce15784c02f15d (diff)
downloadgnunet-gtk-b5290908f7ee34c85d197c5382a194f18f06f0f2.tar.gz
gnunet-gtk-b5290908f7ee34c85d197c5382a194f18f06f0f2.zip
-remove tailing whitespaces
Diffstat (limited to 'src/lib/animations.c')
-rw-r--r--src/lib/animations.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/animations.c b/src/lib/animations.c
index ff87f670..7944870a 100644
--- a/src/lib/animations.c
+++ b/src/lib/animations.c
@@ -44,7 +44,7 @@ struct GNUNET_FS_AnimationContext
44 * This is a doublye-linked list. 44 * This is a doublye-linked list.
45 */ 45 */
46 struct GNUNET_FS_AnimationContext *next; 46 struct GNUNET_FS_AnimationContext *next;
47 47
48 /** 48 /**
49 * This is a doublye-linked list. 49 * This is a doublye-linked list.
50 */ 50 */
@@ -169,7 +169,7 @@ GNUNET_GTK_animation_context_destroy (struct GNUNET_FS_AnimationContext *ac)
169 if (NULL == ac) 169 if (NULL == ac)
170 return; 170 return;
171 g_object_unref (ac->pixbuf); 171 g_object_unref (ac->pixbuf);
172 g_object_unref (ac->iter); 172 g_object_unref (ac->iter);
173 g_object_unref (ac->ani); 173 g_object_unref (ac->ani);
174 GNUNET_CONTAINER_DLL_remove (animation_head, 174 GNUNET_CONTAINER_DLL_remove (animation_head,
175 animation_tail, 175 animation_tail,
@@ -210,7 +210,7 @@ tick_animation (struct GNUNET_FS_AnimationContext *ac)
210 gint height; 210 gint height;
211 211
212 if (!gdk_pixbuf_animation_iter_advance (ac->iter, NULL)) 212 if (!gdk_pixbuf_animation_iter_advance (ac->iter, NULL))
213 return 0; 213 return 0;
214 pixbuf = gdk_pixbuf_animation_iter_get_pixbuf (ac->iter); 214 pixbuf = gdk_pixbuf_animation_iter_get_pixbuf (ac->iter);
215 width = gdk_pixbuf_get_width (pixbuf); 215 width = gdk_pixbuf_get_width (pixbuf);
216 height = gdk_pixbuf_get_height (pixbuf); 216 height = gdk_pixbuf_get_height (pixbuf);
@@ -227,13 +227,13 @@ tick_animation (struct GNUNET_FS_AnimationContext *ac)
227 */ 227 */
228static void 228static void
229redraw_tree_view (struct GNUNET_FS_AnimationTreeViewHandle *atv) 229redraw_tree_view (struct GNUNET_FS_AnimationTreeViewHandle *atv)
230{ 230{
231 GdkWindow *gw; 231 GdkWindow *gw;
232 GdkRectangle r; 232 GdkRectangle r;
233 GdkRectangle tr; 233 GdkRectangle tr;
234 gint x; 234 gint x;
235 gint width; 235 gint width;
236 236
237 gw = gtk_widget_get_window (GTK_WIDGET (atv->tv)); 237 gw = gtk_widget_get_window (GTK_WIDGET (atv->tv));
238 if (! gtk_widget_get_realized (GTK_WIDGET (atv->tv))) 238 if (! gtk_widget_get_realized (GTK_WIDGET (atv->tv)))
239 return; 239 return;
@@ -244,14 +244,14 @@ redraw_tree_view (struct GNUNET_FS_AnimationTreeViewHandle *atv)
244 width = r.width; 244 width = r.width;
245 gtk_tree_view_convert_bin_window_to_widget_coords (atv->tv, x, 0, &r.x, NULL); 245 gtk_tree_view_convert_bin_window_to_widget_coords (atv->tv, x, 0, &r.x, NULL);
246 gtk_tree_view_convert_bin_window_to_widget_coords (atv->tv, x + width, 0, &r.width, NULL); 246 gtk_tree_view_convert_bin_window_to_widget_coords (atv->tv, x + width, 0, &r.width, NULL);
247 247
248 /* Get visible area of the treeview, in tree coordinates */ 248 /* Get visible area of the treeview, in tree coordinates */
249 gtk_tree_view_get_visible_rect (atv->tv, &tr); 249 gtk_tree_view_get_visible_rect (atv->tv, &tr);
250 250
251 /* Convert y and height of the visible area to widget coordinates */ 251 /* Convert y and height of the visible area to widget coordinates */
252 gtk_tree_view_convert_tree_to_widget_coords (atv->tv, 0, tr.y, NULL, &r.y); 252 gtk_tree_view_convert_tree_to_widget_coords (atv->tv, 0, tr.y, NULL, &r.y);
253 gtk_tree_view_convert_tree_to_widget_coords (atv->tv, 0, tr.y + tr.height, NULL, &r.height); 253 gtk_tree_view_convert_tree_to_widget_coords (atv->tv, 0, tr.y + tr.height, NULL, &r.height);
254 254
255 /* r now encloses only column image_col, redraw it */ 255 /* r now encloses only column image_col, redraw it */
256 gdk_window_invalidate_rect (gw, &r, TRUE); 256 gdk_window_invalidate_rect (gw, &r, TRUE);
257} 257}