~ubuntu-branches/ubuntu/oneiric/alarm-clock/oneiric

« back to all changes in this revision

Viewing changes to debian/patches/gtk-builder-proper-error-handling

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Niebur
  • Date: 2009-12-23 11:43:59 UTC
  • mfrom: (9.2.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091223114359-znajerjtb229shgh
Tags: 1.2.5-1
* update watch file
* New Upstream Version (Closes: #558591)
* remove the gtk-builder-proper-error-handling patch, fixed upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- a/src/main.c
2
 
+++ b/src/main.c
3
 
@@ -90,10 +90,11 @@
4
 
        
5
 
        g_set_application_name(_("Alarm Clock"));
6
 
        
7
 
+        GError *builder_err = NULL;
8
 
        gxml = gtk_builder_new ();
9
 
-       if (!gtk_builder_add_from_file (gxml, GTK_BUILDER_FILE, NULL))
10
 
+       if (!gtk_builder_add_from_file (gxml, GTK_BUILDER_FILE, &builder_err))
11
 
        {
12
 
-               g_print ("Cannot load GTK Builder file.\n");
13
 
+                g_print ("Cannot load GTK Builder file: %s\n", builder_err->message);
14
 
                exit(1);
15
 
        }
16