[glade] GladePreview: Use g_find_program_in_path() to launch the previewer.



commit 68d57265e1efcad1fe3b1611d63c57c01b23a7ea
Author: Tristan Van Berkom <tristan upstairslabs com>
Date:   Tue Dec 10 14:59:01 2013 +0900

    GladePreview: Use g_find_program_in_path() to launch the previewer.

 gladeui/glade-preview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gladeui/glade-preview.c b/gladeui/glade-preview.c
index 028163f..1340737 100644
--- a/gladeui/glade-preview.c
+++ b/gladeui/glade-preview.c
@@ -213,7 +213,7 @@ glade_preview_launch (GladeWidget *widget, const gchar *buffer)
 
   g_return_val_if_fail (GLADE_IS_WIDGET (widget), NULL);
 
-  executable = g_build_filename (glade_app_get_bin_dir (), GLADE_PREVIEWER, NULL);
+  executable = g_find_program_in_path (GLADE_PREVIEWER);
 
   project = glade_widget_get_project (widget);
   filename = glade_project_get_path (project);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]