Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (31 sloc) 0.894 kB
#include "gtknode.h"
gboolean gn_glade_init(char *filename) {
const char *rootnode = NULL;
extern GladeXML *xml;
if ( ! (xml = glade_xml_new(filename, rootnode, NULL)) )
return FALSE;
glade_xml_signal_autoconnect(xml);
return TRUE;
}
void erl(GtkWidget *widget) {
const char *widgetname;
gchar bf[24];
GSignalInvocationHint *ihint = g_signal_get_invocation_hint(widget);
const gchar *signalname = g_signal_name(ihint->signal_id);
if ( (widgetname = glade_get_widget_name(widget)) ) {
gn_send_signal(widgetname, signalname);
} else {
gn_store_obj(bf,G_OBJECT (widget));
gn_send_signal(bf, signalname);
}
}
void gn_erl(GtkWidget *widget){
erl(widget);
}
void gn_sighandler(GtkWidget *widget){
erl(widget);
}
GtkWidget* gn_check_widget_name(char* widget_name) {
extern GladeXML *xml;
return glade_xml_get_widget(xml, widget_name);
}
Jump to Line
Something went wrong with that request. Please try again.