Merge lp:~gero-bare/pantheon-files/clang-build into lp:~elementary-apps/pantheon-files/trunk

Proposed by Gero.Bare
Status: Merged
Merge reported by: xapantu
Merged at revision: not available
Proposed branch: lp:~gero-bare/pantheon-files/clang-build
Merge into: lp:~elementary-apps/pantheon-files/trunk
Diff against target: 518 lines (+32/-307)
12 files modified
INSTALL (+3/-0)
libcore/CMakeLists.txt (+1/-3)
libcore/eel-gdk-extensions.c (+0/-142)
libcore/eel-gdk-extensions.h (+0/-57)
libcore/eel-gtk-extensions.c (+19/-88)
libcore/eel-gtk-extensions.h (+0/-8)
libwidgets/tests/CMakeLists.txt (+1/-1)
src/CMakeLists.txt (+2/-1)
src/fm-columns-view.c (+1/-2)
src/fm-directory-view.c (+2/-2)
src/fm-directory-view.h (+2/-1)
src/fm-list-view.c (+1/-2)
To merge this branch: bzr merge lp:~gero-bare/pantheon-files/clang-build
Reviewer Review Type Date Requested Status
Rico Tzschichholz Pending
Cody Garver Pending
Review via email: mp+217321@code.launchpad.net

This proposal supersedes a proposal from 2014-04-24.

Description of the change

This branch introduces the capabilities to build pantheon-files with clang out of box.

For this reason were added dependencies (gmodule 2, and the math library) to the cmake recipe (probably this dependencies are resolved in gcc by default I don't know).

The dependency of XParseGeometry was removed because introduces Xlib dependency, now gtk handles it.

Dead code removed.

Another changes are some function prototypes that are missing and prevents clang build.

Changed g_return_if_fail with the correct g_return_val_if_fail to match function prototypes.

Fix an uninitialized variable that crash the binary.

To post a comment you must log in.
Revision history for this message
Cody Garver (codygarver) wrote : Posted in a previous version of this proposal

x11 as a dependency does not look good

Revision history for this message
Gero.Bare (gero-bare) wrote : Posted in a previous version of this proposal

> x11 as a dependency does not look good

Cody Garver thanks for the comment, but it is needed, there are symbols that won't allow to compile sorry.

If that's a problem I think that I could make some changes but I don't know.

Revision history for this message
Gero.Bare (gero-bare) wrote : Posted in a previous version of this proposal

> x11 as a dependency does not look good

Ok Cody Garver Now the X11 dependency is fixed. I removed a whole bunch of dead code.

Fixed some bugs and clang build it happily.

This is the advantage of being able to use another compiler. If it wasn't for that I would never being able to discover our dependency in Xlib.

Now the ability to build with clang seems to be more the result of this patch than its aim.

Please I would be more than happy to ear some comments.

Revision history for this message
Cody Garver (codygarver) wrote : Posted in a previous version of this proposal

I am happy to see x11 code gone. However, it looks like it has at least once side effect. The window does not remember its dimensions if you change them.

Also, please clean up using the code style guide http://elementaryos.org/docs/code/code-style

Once the branch is ready again, I will go hunt down a better reviewer than me.

review: Needs Fixing
Revision history for this message
Gero.Bare (gero-bare) wrote : Posted in a previous version of this proposal

Thanks for the style guide. I would love also a guide to work and submit.. all the procedure because I'm learning by doing and not by reading (or thinking).

Ok I think we are done. If someone finds another issue...

Revision history for this message
Cody Garver (codygarver) wrote :

Rico, do you mind reviewing this?

Revision history for this message
xapantu (xapantu) wrote :

I did not see your branch, sorry. I did also some of these changes to be able to compile with clang. I will merge the rest of your changes with my branch and then with the trunk as soon as possible.

Thanks for your work :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'INSTALL'
2--- INSTALL 2013-12-23 21:18:29 +0000
3+++ INSTALL 2014-04-26 02:25:06 +0000
4@@ -38,3 +38,6 @@
5
6 To install only libcore and libwidgets use the following command:
7 cmake .. -DLIB_ONLY=true
8+
9+ To build with clang just add CC=clang before cmake call:
10+ CC=clang cmake .. -DCMAKE_INSTALL_PREFIX=/usr
11\ No newline at end of file
12
13=== modified file 'libcore/CMakeLists.txt'
14--- libcore/CMakeLists.txt 2014-02-24 21:28:17 +0000
15+++ libcore/CMakeLists.txt 2014-04-26 02:25:06 +0000
16@@ -41,7 +41,6 @@
17 eel-fcts.c
18 eel-i18n.c
19 eel-gtk-extensions.c
20- eel-gdk-extensions.c
21 eel-gdk-pixbuf-extensions.c
22 eel-pango-extensions.c
23 eel-glib-extensions.c
24@@ -71,7 +70,6 @@
25 eel-accessibility.h
26 eel-debug.h
27 eel-fcts.h
28- eel-gdk-extensions.h
29 eel-gdk-pixbuf-extensions.h
30 eel-gio-extensions.h
31 eel-glib-extensions.h
32@@ -137,7 +135,7 @@
33 VERSION ${MARLINCORE_VERSION}
34 SOVERSION ${MARLINCORE_SOVERSION})
35
36-target_link_libraries (${PKGNAME} ${DEPS_LIBRARIES})
37+target_link_libraries (${PKGNAME} ${DEPS_LIBRARIES} m)
38
39 install (TARGETS ${PKGNAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/)
40
41
42=== removed file 'libcore/eel-gdk-extensions.c'
43--- libcore/eel-gdk-extensions.c 2013-09-09 03:08:16 +0000
44+++ libcore/eel-gdk-extensions.c 1970-01-01 00:00:00 +0000
45@@ -1,142 +0,0 @@
46-/* eel-gdk-extensions.c: Graphics routines to augment what's in gdk.
47- *
48- * Copyright (C) 1999, 2000 Eazel, Inc.
49- *
50- * The Gnome Library is free software; you can redistribute it and/or
51- * modify it under the terms of the GNU Library General Public License as
52- * published by the Free Software Foundation; either version 2 of the
53- * License, or (at your option) any later version.
54- *
55- * The Gnome Library is distributed in the hope that it will be useful,
56- * but WITHOUT ANY WARRANTY; without even the implied warranty of
57- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
58- * Library General Public License for more details.
59- *
60- * You should have received a copy of the GNU Library General Public
61- * License along with the Gnome Library; see the file COPYING.LIB. If not,
62- * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
63- * Boston, MA 02111-1307, USA.
64- *
65- * Authors: Darin Adler <darin@eazel.com>,
66- * Pavel Cisler <pavel@eazel.com>,
67- * Ramiro Estrugo <ramiro@eazel.com>
68- */
69-
70-#include "eel-gdk-extensions.h"
71-
72-#include "eel-glib-extensions.h"
73-#include "eel-string.h"
74-#include <gdk-pixbuf/gdk-pixbuf.h>
75-#include <gdk/gdk.h>
76-#include <gdk/gdkx.h>
77-#include <stdlib.h>
78-#include <pango/pango.h>
79-
80-/**
81- * eel_gdk_rgba_is_dark:
82- *
83- * Return true if the given color is `dark'
84- */
85-/*gboolean
86- eel_gdk_rgba_is_dark (const GdkRGBA *color)
87- {
88- int intensity;
89-
90- intensity = ((((int) (color->red) >> 8) * 77)
91- + (((int) (color->green) >> 8) * 150)
92- + (((int) (color->blue) >> 8) * 28)) >> 8;
93-
94- return intensity < 128;
95- }*/
96-
97-EelGdkGeometryFlags
98-eel_gdk_parse_geometry (const char *string, int *x_return, int *y_return,
99- guint *width_return, guint *height_return)
100-{
101- int x11_flags;
102- EelGdkGeometryFlags gdk_flags;
103-
104- g_return_val_if_fail (string != NULL, EEL_GDK_NO_VALUE);
105- g_return_val_if_fail (x_return != NULL, EEL_GDK_NO_VALUE);
106- g_return_val_if_fail (y_return != NULL, EEL_GDK_NO_VALUE);
107- g_return_val_if_fail (width_return != NULL, EEL_GDK_NO_VALUE);
108- g_return_val_if_fail (height_return != NULL, EEL_GDK_NO_VALUE);
109-
110- x11_flags = XParseGeometry (string, x_return, y_return,
111- width_return, height_return);
112-
113- gdk_flags = EEL_GDK_NO_VALUE;
114- if (x11_flags & XValue) {
115- gdk_flags |= EEL_GDK_X_VALUE;
116- }
117- if (x11_flags & YValue) {
118- gdk_flags |= EEL_GDK_Y_VALUE;
119- }
120- if (x11_flags & WidthValue) {
121- gdk_flags |= EEL_GDK_WIDTH_VALUE;
122- }
123- if (x11_flags & HeightValue) {
124- gdk_flags |= EEL_GDK_HEIGHT_VALUE;
125- }
126- if (x11_flags & XNegative) {
127- gdk_flags |= EEL_GDK_X_NEGATIVE;
128- }
129- if (x11_flags & YNegative) {
130- gdk_flags |= EEL_GDK_Y_NEGATIVE;
131- }
132-
133- return gdk_flags;
134-}
135-
136-#if 0
137-void
138-eel_cairo_draw_layout_with_drop_shadow (cairo_t *cr,
139- GdkRGBA *text_color,
140- GdkRGBA *shadow_color,
141- int x,
142- int y,
143- PangoLayout *layout)
144-{
145- cairo_save (cr);
146-
147- gdk_cairo_set_source_rgba (cr, shadow_color);
148- cairo_move_to (cr, x+1, y+1);
149- pango_cairo_show_layout (cr, layout);
150-
151- gdk_cairo_set_source_rgba (cr, text_color);
152- cairo_move_to (cr, x, y);
153- pango_cairo_show_layout (cr, layout);
154-
155- cairo_restore (cr);
156-}
157-
158-#define CLAMP_COLOR(v) (t = (v), CLAMP (t, 0, 1))
159-#define SATURATE(v) ((1.0 - saturation) * intensity + saturation * (v))
160-
161-void
162-eel_make_color_inactive (GdkRGBA *color)
163-{
164- double intensity, saturation;
165- gdouble t;
166-
167- saturation = 0.7;
168- intensity = color->red * 0.30 + color->green * 0.59 + color->blue * 0.11;
169- color->red = SATURATE (color->red);
170- color->green = SATURATE (color->green);
171- color->blue = SATURATE (color->blue);
172-
173- if (intensity > 0.5) {
174- color->red *= 0.9;
175- color->green *= 0.9;
176- color->blue *= 0.9;
177- } else {
178- color->red *= 1.25;
179- color->green *= 1.25;
180- color->blue *= 1.25;
181- }
182-
183- color->red = CLAMP_COLOR (color->red);
184- color->green = CLAMP_COLOR (color->green);
185- color->blue = CLAMP_COLOR (color->blue);
186-}
187-#endif
188
189=== removed file 'libcore/eel-gdk-extensions.h'
190--- libcore/eel-gdk-extensions.h 2011-05-07 19:35:56 +0000
191+++ libcore/eel-gdk-extensions.h 1970-01-01 00:00:00 +0000
192@@ -1,57 +0,0 @@
193-/* eel-gdk-extensions.h: Graphics routines to augment what's in gdk.
194- *
195- * Copyright (C) 1999, 2000 Eazel, Inc.
196- *
197- * The Gnome Library is free software; you can redistribute it and/or
198- * modify it under the terms of the GNU Library General Public License as
199- * published by the Free Software Foundation; either version 2 of the
200- * License, or (at your option) any later version.
201- *
202- * The Gnome Library is distributed in the hope that it will be useful,
203- * but WITHOUT ANY WARRANTY; without even the implied warranty of
204- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
205- * Library General Public License for more details.
206- *
207- * You should have received a copy of the GNU Library General Public
208- * License along with the Gnome Library; see the file COPYING.LIB. If not,
209- * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
210- * Boston, MA 02111-1307, USA.
211- *
212- * Authors: Darin Adler <darin@eazel.com>,
213- * Ramiro Estrugo <ramiro@eazel.com>
214- */
215-
216-#ifndef EEL_GDK_EXTENSIONS_H
217-#define EEL_GDK_EXTENSIONS_H
218-
219-#include <gdk/gdk.h>
220-
221-/* Bits returned by eel_gdk_parse_geometry */
222-typedef enum {
223- EEL_GDK_NO_VALUE = 0x00,
224- EEL_GDK_X_VALUE = 0x01,
225- EEL_GDK_Y_VALUE = 0x02,
226- EEL_GDK_WIDTH_VALUE = 0x04,
227- EEL_GDK_HEIGHT_VALUE = 0x08,
228- EEL_GDK_ALL_VALUES = 0x0f,
229- EEL_GDK_X_NEGATIVE = 0x10,
230- EEL_GDK_Y_NEGATIVE = 0x20
231-} EelGdkGeometryFlags;
232-
233-//gboolean eel_gdk_rgba_is_dark (const GdkRGBA *color);
234-
235-/* Wrapper for XParseGeometry */
236-EelGdkGeometryFlags eel_gdk_parse_geometry (const char *string,
237- int *x_return,
238- int *y_return,
239- guint *width_return,
240- guint *height_return);
241-/*void eel_cairo_draw_layout_with_drop_shadow (cairo_t *cr,
242- GdkRGBA *text_color,
243- GdkRGBA *shadow_color,
244- int x,
245- int y,
246- PangoLayout *layout);
247-void eel_make_color_inactive (GdkRGBA *color);*/
248-
249-#endif /* EEL_GDK_EXTENSIONS_H */
250
251=== modified file 'libcore/eel-gtk-extensions.c'
252--- libcore/eel-gtk-extensions.c 2013-08-10 20:20:23 +0000
253+++ libcore/eel-gtk-extensions.c 2014-04-26 02:25:06 +0000
254@@ -104,76 +104,6 @@
255 *height = MIN (*height, gdk_screen_height());
256 }
257
258-/**
259- * eel_gtk_window_set_initial_geometry:
260- *
261- * Sets the position and size of a GtkWindow before the
262- * GtkWindow is shown. It is an error to call this on a window that
263- * is already on-screen. Takes into account screen size, and does
264- * some sanity-checking on the passed-in values.
265- * If no originals coordinates are given the window would be centered
266- *
267- * @window: A non-visible GtkWindow
268- * @geometry_flags: A EelGdkGeometryFlags value defining which of
269- * the following parameters have defined values
270- * @left: pixel coordinate for left of window
271- * @top: pixel coordinate for top of window
272- * @width: width of window in pixels
273- * @height: height of window in pixels
274- */
275-void
276-eel_gtk_window_set_initial_geometry (GtkWindow *window,
277- EelGdkGeometryFlags geometry_flags,
278- int left,
279- int top,
280- guint width,
281- guint height)
282-{
283- GdkScreen *screen;
284- int real_left, real_top;
285- int screen_width, screen_height;
286-
287- g_return_if_fail (GTK_IS_WINDOW (window));
288-
289- /* Setting the default size doesn't work when the window is already showing.
290- * Someday we could make this move an already-showing window, but we don't
291- * need that functionality yet.
292- */
293- g_return_if_fail (!gtk_widget_get_visible (GTK_WIDGET (window)));
294-
295- if ((geometry_flags & EEL_GDK_X_VALUE) && (geometry_flags & EEL_GDK_Y_VALUE)) {
296- real_left = left;
297- real_top = top;
298-
299- screen = gtk_window_get_screen (window);
300- screen_width = gdk_screen_get_width (screen);
301- screen_height = gdk_screen_get_height (screen);
302-
303- /* This is sub-optimal. GDK doesn't allow us to set win_gravity
304- * to South/East types, which should be done if using negative
305- * positions (so that the right or bottom edge of the window
306- * appears at the specified position, not the left or top).
307- * However it does seem to be consistent with other GNOME apps.
308- */
309- if (geometry_flags & EEL_GDK_X_NEGATIVE) {
310- real_left = screen_width - real_left;
311- }
312- if (geometry_flags & EEL_GDK_Y_NEGATIVE) {
313- real_top = screen_height - real_top;
314- }
315-
316- sanity_check_window_position (&real_left, &real_top);
317- gtk_window_move (window, real_left, real_top);
318- } else {
319- if (left == -1 && top == -1) {
320- /* no position coordinates found, let's center the window */
321- gtk_window_set_position (window, GTK_WIN_POS_CENTER);
322- }
323- }
324-
325- sanity_check_window_dimensions (&width, &height);
326- gtk_window_set_default_size (GTK_WINDOW (window), (int)width, (int)height);
327-}
328
329 /**
330 * eel_gtk_window_set_initial_geometry_from_string:
331@@ -199,10 +129,6 @@
332 guint minimum_height,
333 gboolean ignore_position)
334 {
335- int left, top;
336- guint width, height;
337- EelGdkGeometryFlags geometry_flags;
338-
339 g_return_if_fail (GTK_IS_WINDOW (window));
340 g_return_if_fail (geometry_string != NULL);
341
342@@ -212,22 +138,27 @@
343 */
344 g_return_if_fail (!gtk_widget_get_visible (GTK_WIDGET (window)));
345
346- width = height = 0;
347- left = top = -1;
348- geometry_flags = eel_gdk_parse_geometry (geometry_string, &left, &top, &width, &height);
349-
350- /* Make sure the window isn't smaller than makes sense for this window.
351- * Other sanity checks are performed in set_initial_geometry.
352- */
353- width = MAX (width, minimum_width);
354+ if( !gtk_window_parse_geometry (window, geometry_string) ){
355+ g_print ("%s geometry set failed %s", G_STRFUNC, geometry_string);
356+ }
357+ guint width,height,left,top;
358+ gtk_window_get_size (window, &width, &height);
359+ gtk_window_get_position (window, &left, &top);
360+
361+ /*Use reasonable sizes*/
362+ width = MAX (width, minimum_width);
363 height = MAX (height, minimum_height);
364-
365- /* Ignore saved window position if requested. */
366- if (ignore_position) {
367- geometry_flags &= ~(EEL_GDK_X_VALUE | EEL_GDK_Y_VALUE);
368+
369+ /*this saves the configuration*/
370+ gtk_window_set_default_size (window, width, height);
371+
372+ /* Ignore saved window position if requested or if it's off by too much*/
373+ if ( ignore_position
374+ || (gdk_screen_width() < (left + width - MINIMUM_ON_SCREEN_WIDTH))
375+ || (gdk_screen_height() < (top + height - MINIMUM_ON_SCREEN_HEIGHT)) ){
376+
377+ gtk_window_move (window, 0,0);
378 }
379-
380- eel_gtk_window_set_initial_geometry (window, geometry_flags, left, top, width, height);
381 }
382
383 GtkMenuItem *
384
385=== modified file 'libcore/eel-gtk-extensions.h'
386--- libcore/eel-gtk-extensions.h 2013-08-10 20:20:23 +0000
387+++ libcore/eel-gtk-extensions.h 2014-04-26 02:25:06 +0000
388@@ -27,7 +27,6 @@
389 #define EEL_GTK_EXTENSIONS_H
390
391 #include <gtk/gtk.h>
392-#include "eel-gdk-extensions.h"
393
394 #define EEL_DEFAULT_POPUP_MENU_DISPLACEMENT 2
395
396@@ -38,13 +37,6 @@
397 guint minimum_height,
398 gboolean ignore_position);
399
400-void eel_gtk_window_set_initial_geometry (GtkWindow *window,
401- EelGdkGeometryFlags geometry_flags,
402- int left,
403- int top,
404- guint width,
405- guint height);
406-
407 //void eel_gtk_adjustment_set_value (GtkAdjustment *adjustment, float value);
408 GtkMenuItem *eel_gtk_menu_append_separator (GtkMenu *menu);
409
410
411=== modified file 'libwidgets/tests/CMakeLists.txt'
412--- libwidgets/tests/CMakeLists.txt 2014-01-24 18:36:41 +0000
413+++ libwidgets/tests/CMakeLists.txt 2014-04-26 02:25:06 +0000
414@@ -22,6 +22,6 @@
415 add_executable(widgets-test ${VALA_C})
416
417 link_directories(${DEPS_LIBRARY_DIRS})
418-target_link_libraries(widgets-test marlinwidgets ${DEPS_LIBRARIES})
419+target_link_libraries(widgets-test marlinwidgets ${DEPS_LIBRARIES} m)
420 add_dependencies(widgets-test marlinwidgets)
421 add_test_executable(widgets-test)
422\ No newline at end of file
423
424=== modified file 'src/CMakeLists.txt'
425--- src/CMakeLists.txt 2014-04-20 11:28:04 +0000
426+++ src/CMakeLists.txt 2014-04-26 02:25:06 +0000
427@@ -16,6 +16,7 @@
428 granite>=0.3.0
429 glib-2.0>=2.29.0
430 gthread-2.0
431+ gmodule-2.0
432 gio-2.0
433 gio-unix-2.0
434 pango>=1.1.2
435@@ -164,7 +165,7 @@
436 marlin-connect-server-dialog.c
437 ${VALA_C} )
438
439-target_link_libraries (../pantheon-files m marlincore marlinwidgets ${DEPS_LIBRARIES})
440+target_link_libraries (../pantheon-files marlincore marlinwidgets ${DEPS_LIBRARIES} m)
441 add_dependencies (../pantheon-files marlincore marlinwidgets)
442
443 IF (WITH_UNITY AND UNITY_FOUND)
444
445=== modified file 'src/fm-columns-view.c'
446--- src/fm-columns-view.c 2014-03-24 20:34:55 +0000
447+++ src/fm-columns-view.c 2014-04-26 02:25:06 +0000
448@@ -734,7 +734,7 @@
449 GtkTreePath **end_path)
450
451 {
452- g_return_if_fail (FM_IS_COLUMNS_VIEW (view));
453+ g_return_val_if_fail (FM_IS_COLUMNS_VIEW (view), FALSE);
454 return gtk_tree_view_get_visible_range (FM_COLUMNS_VIEW (view)->tree,
455 start_path, end_path);
456 }
457@@ -855,4 +855,3 @@
458 fm_directory_view_class->zoom_normal = fm_columns_view_zoom_normal;
459 fm_directory_view_class->zoom_level_changed = fm_columns_view_zoom_level_changed;
460 }
461-
462
463=== modified file 'src/fm-directory-view.c'
464--- src/fm-directory-view.c 2014-04-18 00:56:20 +0000
465+++ src/fm-directory-view.c 2014-04-26 02:25:06 +0000
466@@ -2204,7 +2204,7 @@
467 }
468
469 /* Open */
470- GList *selection;
471+ GList *selection = NULL;
472 const char *menu_path = "/MenuBar/File/Open Placeholder/Open With/Applications Placeholder";
473 const char *popup_path = "/background/Open Placeholder/Open With/Applications Placeholder";
474
475@@ -4031,4 +4031,4 @@
476 //view->details->templates_invalid = TRUE;
477
478 update_menus (view);
479-}
480\ No newline at end of file
481+}
482
483=== modified file 'src/fm-directory-view.h'
484--- src/fm-directory-view.h 2014-02-08 20:15:12 +0000
485+++ src/fm-directory-view.h 2014-04-26 02:25:06 +0000
486@@ -406,6 +406,7 @@
487 void fm_directory_view_add_subdirectory (FMDirectoryView *view, GOFDirectoryAsync *directory);
488 void fm_directory_view_remove_subdirectory (FMDirectoryView *view, GOFDirectoryAsync *directory);
489 void fm_directory_view_column_add_location (FMDirectoryView *dview, GFile *location);
490+void fm_directory_view_add_to_selection_gof_file (FMDirectoryView *view, GOFFile *file);
491 void fm_directory_view_load_location (FMDirectoryView *directory_view, GFile *location);
492 void fm_directory_view_activate_selected_items (FMDirectoryView *view, MarlinViewWindowOpenFlags flags);
493 void fm_directory_view_preview_selected_items (FMDirectoryView *view);
494@@ -440,5 +441,5 @@
495 void fm_directory_view_select_first_for_empty_selection (FMDirectoryView *view);
496 void fm_directory_view_select_gof_file (FMDirectoryView *view, GOFFile *file);
497 void fm_directory_view_select_glib_files (FMDirectoryView *view, GList *files);
498-
499+void prepare_to_select_added_files (FMDirectoryView *view);
500 #endif /* FM_DIRECTORY_VIEW_H */
501
502=== modified file 'src/fm-list-view.c'
503--- src/fm-list-view.c 2014-03-24 20:34:55 +0000
504+++ src/fm-list-view.c 2014-04-26 02:25:06 +0000
505@@ -858,7 +858,7 @@
506 GtkTreePath **end_path)
507
508 {
509- g_return_if_fail (FM_IS_LIST_VIEW (view));
510+ g_return_val_if_fail (FM_IS_LIST_VIEW (view), FALSE);
511 return gtk_tree_view_get_visible_range (FM_LIST_VIEW (view)->tree,
512 start_path, end_path);
513 }
514@@ -991,4 +991,3 @@
515 fm_directory_view_class->zoom_normal = fm_list_view_zoom_normal;
516 fm_directory_view_class->zoom_level_changed = fm_list_view_zoom_level_changed;
517 }
518-

Subscribers

People subscribed via source and target branches

to all changes: