diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-15 20:00:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-15 20:00:02 +0000 |
commit | b5290908f7ee34c85d197c5382a194f18f06f0f2 (patch) | |
tree | f5c10246c4b55204fc12dc921507d35d281e8a87 /src/lib | |
parent | dbbf5c6f679877488dfb6c84b5ce15784c02f15d (diff) | |
download | gnunet-gtk-b5290908f7ee34c85d197c5382a194f18f06f0f2.tar.gz gnunet-gtk-b5290908f7ee34c85d197c5382a194f18f06f0f2.zip |
-remove tailing whitespaces
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/animations.c | 16 | ||||
-rw-r--r-- | src/lib/eventloop.c | 2 | ||||
-rw-r--r-- | src/lib/glade.c | 2 | ||||
-rw-r--r-- | src/lib/misc.c | 2 |
4 files changed, 11 insertions, 11 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 | */ |
228 | static void | 228 | static void |
229 | redraw_tree_view (struct GNUNET_FS_AnimationTreeViewHandle *atv) | 229 | redraw_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 | } |
diff --git a/src/lib/eventloop.c b/src/lib/eventloop.c index 3e3972fa..8433a8dc 100644 --- a/src/lib/eventloop.c +++ b/src/lib/eventloop.c | |||
@@ -214,7 +214,7 @@ GNUNET_GTK_main_loop_get_builder (struct GNUNET_GTK_MainLoop *ml) | |||
214 | 214 | ||
215 | 215 | ||
216 | int | 216 | int |
217 | GNUNET_GTK_main_loop_build_window (struct GNUNET_GTK_MainLoop *ml, | 217 | GNUNET_GTK_main_loop_build_window (struct GNUNET_GTK_MainLoop *ml, |
218 | gpointer data) | 218 | gpointer data) |
219 | { | 219 | { |
220 | ml->builder = GNUNET_GTK_get_new_builder (ml->main_window_file, data); | 220 | ml->builder = GNUNET_GTK_get_new_builder (ml->main_window_file, data); |
diff --git a/src/lib/glade.c b/src/lib/glade.c index 5d646ef6..407e23f0 100644 --- a/src/lib/glade.c +++ b/src/lib/glade.c | |||
@@ -138,7 +138,7 @@ GNUNET_FS_GTK_remove_treestore_subtree (GtkTreeStore * ts, | |||
138 | GtkTreeIter * root) | 138 | GtkTreeIter * root) |
139 | { | 139 | { |
140 | GtkTreeIter child; | 140 | GtkTreeIter child; |
141 | 141 | ||
142 | while (gtk_tree_model_iter_children (GTK_TREE_MODEL (ts), &child, root)) | 142 | while (gtk_tree_model_iter_children (GTK_TREE_MODEL (ts), &child, root)) |
143 | GNUNET_FS_GTK_remove_treestore_subtree (ts, &child); | 143 | GNUNET_FS_GTK_remove_treestore_subtree (ts, &child); |
144 | gtk_tree_store_remove (ts, root); | 144 | gtk_tree_store_remove (ts, root); |
diff --git a/src/lib/misc.c b/src/lib/misc.c index d52058a3..72d16382 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file src/lib/misc.c | 22 | * @file src/lib/misc.c |
23 | * @brief misc functions | 23 | * @brief misc functions |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | */ | 25 | */ |
26 | #include "gnunet_gtk.h" | 26 | #include "gnunet_gtk.h" |