From 20729d8af17cb2abed769b4f3154a126971083a0 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 1 Jun 2007 02:37:48 +0000 Subject: [PATCH] add the animateIconify option --- src/appearance.c | 14 ++++ src/obconf.glade | 186 +++++++++++++++++++++++++++++++++++++---------- src/strings.c | 2 + 3 files changed, 164 insertions(+), 38 deletions(-) diff --git a/src/appearance.c b/src/appearance.c index 61d2228..293e43f 100644 --- a/src/appearance.c +++ b/src/appearance.c @@ -38,6 +38,10 @@ void appearance_setup_tab() gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), tree_get_bool("theme/keepBorder", TRUE)); + w = get_widget("animate_iconify"); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), + tree_get_bool("theme/animateIconify", TRUE)); + w = get_widget("title_layout"); layout = tree_get_string("theme/titleLayout", "NLIMC"); gtk_entry_set_text(GTK_ENTRY(w), layout); @@ -77,6 +81,16 @@ void on_window_border_toggled(GtkToggleButton *w, gpointer data) tree_set_bool("theme/keepBorder", b); } +void on_animate_iconify_toggled(GtkToggleButton *w, gpointer data) +{ + gboolean b; + + if (mapping) return; + + b = gtk_toggle_button_get_active(w); + tree_set_bool("theme/animateIconify", b); +} + void on_title_layout_changed(GtkEntry *w, gpointer data) { gchar *layout; diff --git a/src/obconf.glade b/src/obconf.glade index d104408..8d11a90 100644 --- a/src/obconf.glade +++ b/src/obconf.glade @@ -420,53 +420,112 @@ 0 - - True - - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - False - False - - - - - + True False 0 - + True - True - _Windows retain a border when undecorated - True - GTK_RELIEF_NORMAL - True - False - False - True - + False + 0 + + + + True + + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + True + False + 0 + + + + True + False + 0 + + + + True + True + _Windows retain a border when undecorated + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + 0 + False + False + + + + + 0 + True + True + + + + + + True + True + Animate _iconify and restore + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + 0 + False + False + + + + + 0 + True + True + + 0 - False - False + True + True @@ -1785,6 +1844,57 @@ C - The close button True + + + + True + False + 6 + + + + True + False + 0 + + + + True + + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + 0 + True + True + + + + + 0 + True + True + + False diff --git a/src/strings.c b/src/strings.c index 492c031..14f4389 100644 --- a/src/strings.c +++ b/src/strings.c @@ -13,6 +13,7 @@ gchar *s = N_("Theme"); gchar *s = N_("Windows"); gchar *s = N_(" "); gchar *s = N_("_Windows retain a border when undecorated"); +gchar *s = N_("Animate _iconify and restore"); gchar *s = N_("Window Titles"); gchar *s = N_(" "); gchar *s = N_("_Button order:"); @@ -54,6 +55,7 @@ gchar *s = N_("Amount of resistance against other _windows:"); gchar *s = N_("px"); gchar *s = N_("Amount of resistance against screen _edges:"); gchar *s = N_("px"); +gchar *s = N_(" "); gchar *s = N_("Windows"); gchar *s = N_("Focusing Windows"); gchar *s = N_(" "); -- 2.39.2