~ubuntu-branches/ubuntu/wily/epiphany-browser/wily

« back to all changes in this revision

Viewing changes to src/window-commands.c

Tags: upstream-3.10.1
ImportĀ upstreamĀ versionĀ 3.10.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include "ephy-embed-container.h"
32
32
#include "ephy-embed-prefs.h"
33
33
#include "ephy-embed-shell.h"
34
 
#include "ephy-embed-single.h"
35
34
#include "ephy-embed-utils.h"
36
35
#include "ephy-embed.h"
37
36
#include "ephy-favicon-helpers.h"
990
989
        dialog = gtk_dialog_new_with_buttons (_("Create Web Application"),
991
990
                                              GTK_WINDOW (window),
992
991
                                              GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
993
 
                                              GTK_STOCK_CANCEL,
 
992
                                              _("_Cancel"),
994
993
                                              GTK_RESPONSE_CANCEL,
995
994
                                              _("C_reate"),
996
995
                                              GTK_RESPONSE_OK,
1058
1057
}
1059
1058
 
1060
1059
void
1061
 
window_cmd_file_work_offline (GtkAction *action,
1062
 
                              EphyWindow *window)
1063
 
{
1064
 
        /* TODO: WebKitGTK+ does not currently support offline status. */
1065
 
#if 0
1066
 
        EphyEmbedSingle *single;
1067
 
        gboolean offline;
1068
 
 
1069
 
        single = EPHY_EMBED_SINGLE (ephy_embed_shell_get_embed_single (ephy_embed_shell_get_default ()));
1070
 
        offline = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
1071
 
        ephy_embed_single_set_network_status (single, !offline);
1072
 
#endif
1073
 
}
1074
 
 
1075
 
void
1076
1060
window_cmd_file_close_window (GtkAction *action,
1077
1061
                              EphyWindow *window)
1078
1062
{
1675
1659
        }
1676
1660
}
1677
1661
 
 
1662
void
 
1663
window_cmd_help_contents (GtkAction *action,
 
1664
                          GtkWidget *window)
 
1665
{
 
1666
        ephy_gui_help (window, NULL);
 
1667
}
 
1668
 
1678
1669
#define ABOUT_GROUP "About"
1679
1670
 
1680
1671
void
1957
1948
                gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
1958
1949
                                                          _("Pressing F7 turns caret browsing on or off. This feature "
1959
1950
                                                            "places a moveable cursor in web pages, allowing you to move "
1960
 
                                                            "around with your keyboard. Do you want to enable caret browsing on?"));
 
1951
                                                            "around with your keyboard. Do you want to enable caret browsing?"));
1961
1952
                gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Enable"), GTK_RESPONSE_ACCEPT);
1962
1953
                gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
1963
1954