All pastes #183771 Raw Edit

Stuff

public c v1 · immutable
#183771 ·published 2006-09-27 06:52 UTC
rendered paste body
#include<libintl.h>#include<locale.h>#define _(String) gettext (String)#define gettext_noop(String) String#define N_(String) gettext_noop (String)int main(int argc, char ** argv){    gtk_init(&argc,&argv);    gchar * smmser;    //set the locale stuff    setlocale(LC_ALL,"");    bindtextdomain("beryl-settings","/usr/share/locale");    textdomain("beryl-settings");    //end locale    smmser=g_strconcat(g_get_home_dir(),"/.beryl",NULL);    g_mkdir_with_parents(smmser,00755);    g_chmod(smmser,00755);    g_free(smmser);    if (!g_thread_supported()) g_thread_init(NULL);    dbus_g_thread_init();    dbcon = dbus_bus_get (DBUS_BUS_SESSION,NULL);    if (!dbcon)        g_error("couldn't get dbus.");    dbus_connection_setup_with_g_main(dbcon,NULL); //    send_option_changed_signal("_","active_plugins");    load_schema_files();    setup_main_window();    gtk_main();    return 0;}