~james-w/ubuntu/karmic/kerneloops/disable-stable

« back to all changes in this revision

Viewing changes to kerneloops-applet.c

  • Committer: Bazaar Package Importer
  • Author(s): James Westby
  • Date: 2009-06-11 13:15:41 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090611131541-4ig7u8nu20xe5mv4
Tags: 0.12+git20090217-1ubuntu1
* Merge from Debian, remaining changes:
  - Add a "submit-pipe" configuration option for passing the oops to
    another tool. Set it to pipe to apport for Ubuntu.
  - Ensure that the newline is not included in the value when parsing
    string values (LP: #344813)
  - Add Homepage field.
  - Create a kernoops system user and run the daemon as that, using
    start-stop-daemon. (Running in the adm group ensures it can
    read the logs).
    - Add postinst/postrm to add/remove the user.
    - Depend on adduser.
    - Tweak the dbus conf so that the new user can own the dbus names.
  - Append -O0 to CFLAGS when building in debug mode honoring noopt
    DEB_BUILD_OPTIONS.
  - Honor nocheck in DEB_BUILD_OPTIONS.
  - Change log-file option to point to /var/log/kern.log instead of
    /var/log/messages.
  - Debianise the default location.
  - If the notification daemon doesn't support actions then use
    a dialog instead.
* Remove debian/applied-patches as updating them is too much headache.
* Remove Vcs URIs as they don't point to the one used for packaging.
* The Makefile now deletes the test/*.dbg files, so debian/rules doesn't
  have to.
* Don't stop the daemon in runlevels 0 or 6 as sendsigs can quite happily
  kill it for us.

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
        GtkWidget *sw;
146
146
        GtkWidget *view;
147
147
        GtkTextBuffer *buffer;
 
148
        GtkWidget *button_cancel;
 
149
        GtkWidget *button_send;
148
150
        GtkTextTag *fixed;
149
151
        GtkTextIter iter;
150
152
        struct stat statb;
180
182
        gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW (sw),
181
183
                                       GTK_POLICY_AUTOMATIC,
182
184
                                       GTK_POLICY_AUTOMATIC);
183
 
 
184
 
        /* Text view */
185
 
        view = gtk_text_view_new ();
 
185
        view = gtk_text_view_new();
186
186
        buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW (view));
187
 
        fixed = gtk_text_buffer_create_tag(buffer, "font", "font", "monospace", NULL);
 
187
        fixed = gtk_text_buffer_create_tag (buffer, "font", "font", "monospace", NULL);
188
188
        gtk_text_buffer_get_iter_at_line_offset(buffer, &iter, 0, 0);
189
 
        gtk_text_buffer_insert_with_tags(buffer, &iter, detail_data, -1, fixed, NULL);
 
189
        gtk_text_buffer_insert_with_tags(buffer, &iter, detail_data, -1,
 
190
                                                fixed, NULL);
190
191
        free(detail_data);
 
192
        gtk_container_add (GTK_CONTAINER (sw), view);
191
193
 
192
 
        gtk_container_add(GTK_CONTAINER (sw), view);
193
194
        gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE);
194
195
 
195
196
        return sw;