mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-29 03:34:16 +00:00
Add "reload" and "prompt-for-location" signals. Bind F5 to "reload" and
2005-08-05 Christian Neumair <chris@gnome-de.org> * src/nautilus-window.c: (nautilus_window_class_init): * src/nautilus-window.h: Add "reload" and "prompt-for-location" signals. Bind F5 to "reload" and Alt-d to "prompt-for-location". Fixes #305252, #312353.
This commit is contained in:
parent
26725eb78c
commit
6ad5491da1
3 changed files with 31 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-08-05 Christian Neumair <chris@gnome-de.org>
|
||||
|
||||
* src/nautilus-window.c: (nautilus_window_class_init):
|
||||
* src/nautilus-window.h:
|
||||
Add "reload" and "prompt-for-location" signals. Bind F5 to "reload"
|
||||
and Alt-d to "prompt-for-location". Fixes #305252, #312353.
|
||||
|
||||
2005-08-04 Sunil Mohan Adapa <sunil@atc.tcs.co.in>
|
||||
|
||||
* configure.in: Added "te" to ALL_LINGUAS.
|
||||
|
|
|
@ -105,6 +105,8 @@ enum {
|
|||
|
||||
enum {
|
||||
GO_UP,
|
||||
RELOAD,
|
||||
PROMPT_FOR_LOCATION,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
|
@ -1492,11 +1494,32 @@ nautilus_window_class_init (NautilusWindowClass *class)
|
|||
g_signal_accumulator_true_handled, NULL,
|
||||
eel_marshal_BOOLEAN__BOOLEAN,
|
||||
G_TYPE_BOOLEAN, 1, G_TYPE_BOOLEAN);
|
||||
signals[RELOAD] =
|
||||
g_signal_new ("reload",
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (NautilusWindowClass, reload),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
signals[PROMPT_FOR_LOCATION] =
|
||||
g_signal_new ("prompt-for-location",
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||
G_STRUCT_OFFSET (NautilusWindowClass, prompt_for_location),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
binding_set = gtk_binding_set_by_class (class);
|
||||
gtk_binding_entry_add_signal (binding_set, GDK_BackSpace, 0,
|
||||
"go_up", 1,
|
||||
G_TYPE_BOOLEAN, FALSE);
|
||||
gtk_binding_entry_add_signal (binding_set, GDK_F5, 0,
|
||||
"reload", 0);
|
||||
gtk_binding_entry_add_signal (binding_set, GDK_d, GDK_MOD1_MASK,
|
||||
"prompt-for-location", 0);
|
||||
|
||||
class->reload = nautilus_window_reload;
|
||||
class->go_up = nautilus_window_go_up_signal;
|
||||
}
|
||||
|
|
|
@ -75,6 +75,7 @@ typedef struct {
|
|||
void (* set_throbber_active) (NautilusWindow *window,
|
||||
gboolean active);
|
||||
void (* set_allow_up) (NautilusWindow *window, gboolean allow);
|
||||
void (* reload) (NautilusWindow *window);
|
||||
void (* prompt_for_location) (NautilusWindow *window);
|
||||
void (* get_default_size) (NautilusWindow *window, guint *default_width, guint *default_height);
|
||||
void (* show_window) (NautilusWindow *window);
|
||||
|
|
Loading…
Reference in a new issue