Made this delay by a tenth of a second. This seems to make it not reload
2004-03-11 Chris Lahey <clahey@rigger.boston.ximian.com> * gnome-settings-background.c (applier_idle): Made this delay by a tenth of a second. This seems to make it not reload the background more than once. 2004-03-12 Chris Lahey <clahey@rigger.boston.ximian.com> * applier.c (refresh_render): Move the image reload into a separate function. (size_changed_cb): Handle screen resolution changes. 2004-03-11 Chris Lahey <clahey@rigger.boston.ximian.com> * applier.c (bg_applier_apply_prefs): If the image is going to be scaled or stretched, load it at the size it's going to be displayed. (need_wallpaper_load_p): If the wallpaper type changed, unless it changed between TILED and CENTERED, we need to reload the image.
This commit is contained in:
parent
0f53df3f1d
commit
ab3bfd09ba
6 changed files with 318 additions and 62 deletions
|
@ -701,6 +701,7 @@ accel_edited_callback (GtkCellRendererText *cell,
|
|||
KeyEntry *key_entry, tmp_key;
|
||||
GError *err = NULL;
|
||||
char *str;
|
||||
guint32 c;
|
||||
|
||||
model = gtk_tree_view_get_model (view);
|
||||
gtk_tree_model_get_iter (model, &iter, path);
|
||||
|
@ -754,6 +755,29 @@ accel_edited_callback (GtkCellRendererText *cell,
|
|||
return;
|
||||
}
|
||||
|
||||
/* see if a user really wants to lose an alphanumeric key to a binding */
|
||||
if (keyval != 0 &&
|
||||
(mask == 0 || mask == EGG_VIRTUAL_SHIFT_MASK) && /* only unmodified */
|
||||
(c = gdk_keyval_to_unicode (keyval)) != 0)
|
||||
{
|
||||
char *name = egg_virtual_accelerator_name (keyval, keycode, mask);
|
||||
GtkWidget *dialog =
|
||||
gtk_message_dialog_new (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (view))),
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
|
||||
GTK_MESSAGE_WARNING,
|
||||
GTK_BUTTONS_YES_NO,
|
||||
_("The '%s' key types something. Are you sure you want to lose it to a keybinding ?"),
|
||||
name);
|
||||
g_free (name);
|
||||
gtk_dialog_run (GTK_DIALOG (dialog));
|
||||
gtk_widget_destroy (dialog);
|
||||
|
||||
/* set it back to its previous value. */
|
||||
egg_cell_renderer_keys_set_accelerator (EGG_CELL_RENDERER_KEYS (cell),
|
||||
key_entry->keyval, key_entry->keycode, key_entry->mask);
|
||||
return;
|
||||
}
|
||||
|
||||
str = binding_name (keyval, keycode, mask, FALSE);
|
||||
|
||||
gconf_client_set_string (gconf_client_get_default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue