From d7d417af454634afb163e929d4ba0618bc3a754d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 1 Apr 2001 14:09:39 +0000 Subject: [PATCH] Small change to load the .glade file from the current dir too when pressing the about menu item. Original commit message from CVS: Small change to load the .glade file from the current dir too when pressing the about menu item. --- gstplay/callbacks.c | 13 ++++++++++++- gstplay/gstmediaplay.glade | 4 +++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/gstplay/callbacks.c b/gstplay/callbacks.c index 3e35234d9b..781173f894 100644 --- a/gstplay/callbacks.c +++ b/gstplay/callbacks.c @@ -6,6 +6,9 @@ #include #include +#include +#include + #include "gstplay.h" #include "callbacks.h" @@ -45,7 +48,15 @@ on_preferences1_activate (GtkMenuItem *menuitem, void on_about_activate(GtkWidget *widget, gpointer data) { GladeXML *xml; - xml = glade_xml_new(DATADIR "gstmediaplay.glade", "about"); + struct stat statbuf; + + if (stat(DATADIR"gstmediaplay.glade", &statbuf) == 0) { + xml = glade_xml_new (DATADIR"gstmediaplay.glade", "about"); + } + else { + xml = glade_xml_new ("gstmediaplay.glade", "about"); + } + /* connect the signals in the interface */ glade_xml_signal_autoconnect(xml); } diff --git a/gstplay/gstmediaplay.glade b/gstplay/gstmediaplay.glade index ba39ffbe16..448409d2e0 100644 --- a/gstplay/gstmediaplay.glade +++ b/gstplay/gstmediaplay.glade @@ -148,7 +148,7 @@ False - False + True @@ -443,6 +443,7 @@ Ronald Bultje <rbultje@ronald.bitfreak.net> Sun, 06 Aug 2000 15:55:52 GMT GNOME_STOCK_BUTTON_OK + GTK_RELIEF_NORMAL @@ -458,6 +459,7 @@ Ronald Bultje <rbultje@ronald.bitfreak.net> Sun, 06 Aug 2000 15:53:48 GMT GNOME_STOCK_BUTTON_CANCEL + GTK_RELIEF_NORMAL