~ubuntu-branches/ubuntu/quantal/epiphany-extensions/quantal

« back to all changes in this revision

Viewing changes to extensions/extensions-manager-ui/extensions-manager-ui.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-04-09 07:34:35 UTC
  • mfrom: (1.1.40 upstream) (2.3.10 sid)
  • Revision ID: james.westby@ubuntu.com-20100409073435-ypgwviw41tw8307a
Tags: 2.30.0-4
* debian/control.in:
  + (Build-) depend on epiphany-browser >= 2.30.2 for the new
    and finally correct extensions directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  Copyright © 2004 Adam Hooper
 
3
 *  Copyright © 2010 Igalia S.L.
3
4
 *
4
5
 *  This program is free software; you can redistribute it and/or modify
5
6
 *  it under the terms of the GNU General Public License as published by
115
116
                                   int response,
116
117
                                   GObject *dialog)
117
118
{
118
 
        if (response == GTK_RESPONSE_HELP)
 
119
        GdkScreen *screen;
 
120
        GError *error = NULL;
 
121
 
 
122
        if (response != GTK_RESPONSE_HELP)
119
123
        {
120
 
                ephy_gui_help (GTK_WINDOW (widget),
121
 
                               "epiphany-extensions",
122
 
                               "epi-ext-manager");
 
124
                g_object_unref (dialog);
123
125
                return;
124
126
        }
125
127
 
126
 
        g_object_unref (dialog);
 
128
        screen = gtk_widget_get_screen (widget);
 
129
        gtk_show_uri (screen, "ghelp:epiphany-extensions?epi-ext-manager",
 
130
                      gtk_get_current_event_time (), &error);
 
131
 
 
132
        if (error)
 
133
        {
 
134
                GtkWidget *errord;
 
135
                errord = gtk_message_dialog_new (GTK_WINDOW (widget),
 
136
                                                 GTK_DIALOG_DESTROY_WITH_PARENT,
 
137
                                                 GTK_MESSAGE_ERROR,
 
138
                                                 GTK_BUTTONS_OK,
 
139
                                                 _("Could not display help: %s"),
 
140
                                                 error->message);
 
141
                g_error_free (error);
 
142
                g_signal_connect (errord, "response",
 
143
                                  G_CALLBACK (gtk_widget_destroy), NULL);
 
144
                gtk_widget_show (errord);
 
145
        }
127
146
}
128
147
 
129
148
static void
421
440
 
422
441
        ephy_dialog_construct (EPHY_DIALOG (dialog),
423
442
                               properties,
424
 
                               SHARE_DIR "/glade/extensions-manager-ui.ui",
 
443
                               SHARE_DIR "/ui/extensions-manager-ui.ui",
425
444
                               "extensions_manager_ui",
426
445
                               GETTEXT_PACKAGE);
427
446