Original commit message from CVS:
Small change to load the .glade file from the current dir too when
pressing the about menu item.
#include <glade/glade.h>
#include <gst/gst.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
#include "gstplay.h"
#include "callbacks.h"
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);
}
</signal>
<label>_Extended</label>
<active>False</active>
- <always_show_toggle>False</always_show_toggle>
+ <always_show_toggle>True</always_show_toggle>
</widget>
<widget>
<last_modification_time>Sun, 06 Aug 2000 15:55:52 GMT</last_modification_time>
</signal>
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
+ <relief>GTK_RELIEF_NORMAL</relief>
</widget>
<widget>
<last_modification_time>Sun, 06 Aug 2000 15:53:48 GMT</last_modification_time>
</signal>
<stock_button>GNOME_STOCK_BUTTON_CANCEL</stock_button>
+ <relief>GTK_RELIEF_NORMAL</relief>
</widget>
</widget>