261
265
e_shell_window_private_constructed (EShellWindow *shell_window)
263
267
EShellWindowPrivate *priv = shell_window->priv;
265
EShellSettings *shell_settings;
268
269
GConfBridge *bridge;
269
270
GtkAction *action;
270
271
GtkAccelGroup *accel_group;
272
GtkActionGroup *action_group;
274
272
GtkUIManager *ui_manager;
281
279
const gchar *key;
284
GtkActionGroup *action_group;
284
287
window = GTK_WINDOW (shell_window);
286
289
shell = e_shell_window_get_shell (shell_window);
288
shell_settings = e_shell_get_shell_settings (shell);
291
291
ui_manager = e_shell_window_get_ui_manager (shell_window);
292
292
e_shell_configure_ui_manager (shell, E_UI_MANAGER (ui_manager));
362
362
shell_window, "notify::active-view",
363
363
G_CALLBACK (e_shell_window_update_search_menu), NULL);
365
#if 0 /* XXX Lockdown keys have moved to gsettings-desktop-schemas,
366
* so disable lockdown integration until we're ready for
368
365
#ifndef G_OS_WIN32
369
366
/* Support lockdown. */
368
settings = g_settings_new ("org.gnome.desktop.lockdown");
371
370
action_group = ACTION_GROUP (LOCKDOWN_PRINTING);
373
g_object_bind_property (
374
shell_settings, "disable-printing",
373
settings, "disable-printing",
375
374
action_group, "visible",
376
G_BINDING_SYNC_CREATE |
377
G_BINDING_INVERT_BOOLEAN);
375
G_SETTINGS_BIND_GET |
376
G_SETTINGS_BIND_INVERT_BOOLEAN);
379
378
action_group = ACTION_GROUP (LOCKDOWN_PRINT_SETUP);
381
g_object_bind_property (
382
shell_settings, "disable-print-setup",
381
settings, "disable-print-setup",
383
382
action_group, "visible",
384
G_BINDING_SYNC_CREATE |
385
G_BINDING_INVERT_BOOLEAN);
383
G_SETTINGS_BIND_GET |
384
G_SETTINGS_BIND_INVERT_BOOLEAN);
387
386
action_group = ACTION_GROUP (LOCKDOWN_SAVE_TO_DISK);
389
g_object_bind_property (
390
shell_settings, "disable-save-to-disk",
389
settings, "disable-save-to-disk",
391
390
action_group, "visible",
392
G_BINDING_SYNC_CREATE |
393
G_BINDING_INVERT_BOOLEAN);
391
G_SETTINGS_BIND_GET |
392
G_SETTINGS_BIND_INVERT_BOOLEAN);
394
g_object_unref (settings);
394
395
#endif /* G_OS_WIN32 */
397
397
/* Bind GObject properties to GObject properties. */