Mercurial > audlegacy
changeset 1971:9fd04055d6cc trunk
[svn] - add show window decorations option to appearance preferences. closes #167.
author | yaz |
---|---|
date | Sun, 12 Nov 2006 18:33:35 -0800 |
parents | 94a720c9bfef |
children | edc01e85648d |
files | ChangeLog audacious/glade/prefswin.glade audacious/prefswin.c |
diffstat | 3 files changed, 72 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Nov 12 12:50:16 2006 -0800 +++ b/ChangeLog Sun Nov 12 18:33:35 2006 -0800 @@ -1,3 +1,12 @@ +2006-11-12 20:50:16 +0000 William Pitcock <nenolod@nenolod.net> + revision [2915] + - only GModule would be so dumb to push all symbols to the global + namespace by default. I hate GLib. + + trunk/audacious/pluginenum.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2006-11-12 14:55:04 +0000 William Pitcock <nenolod@nenolod.net> revision [2913] - some newui stuff (and also turn it off again, giacomo will need to look at a few things)
--- a/audacious/glade/prefswin.glade Sun Nov 12 12:50:16 2006 -0800 +++ b/audacious/glade/prefswin.glade Sun Nov 12 18:33:35 2006 -0800 @@ -1358,6 +1358,46 @@ <property name="fill">False</property> </packing> </child> + + <child> + <widget class="GtkAlignment" id="alignment89"> + <property name="visible">True</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xscale">1</property> + <property name="yscale">1</property> + <property name="top_padding">0</property> + <property name="bottom_padding">0</property> + <property name="left_padding">12</property> + <property name="right_padding">0</property> + + <child> + <widget class="GtkCheckButton" id="checkbutton12"> + <property name="visible">True</property> + <property name="tooltip" translatable="yes">This enables the window mangaer to show decorations for windows.</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">Show window manager decoration</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <property name="active">False</property> + <property name="inconsistent">False</property> + <property name="draw_indicator">True</property> + <accessibility> + <atkproperty name="AtkObject::accessible_name" translatable="yes">Show window manager decorations</atkproperty> + <atkproperty name="AtkObject::accessible_description" translatable="yes">This enables the window manager to show decorations for windows.</atkproperty> + </accessibility> + <signal name="toggled" handler="on_show_wm_decorations_toggled" last_modification_time="Sun, 12 Nov 2006 11:27:49 GMT"/> + <signal name="realize" handler="on_show_wm_decorations_realize" after="yes" last_modification_time="Sun, 12 Nov 2006 11:28:06 GMT"/> + </widget> + </child> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> </widget> <packing> <property name="padding">0</property>
--- a/audacious/prefswin.c Sun Nov 12 12:50:16 2006 -0800 +++ b/audacious/prefswin.c Sun Nov 12 18:33:35 2006 -0800 @@ -2117,6 +2117,25 @@ cfg.use_xmms_style_fileselector = gtk_toggle_button_get_active(button); } +static void +on_show_wm_decorations_realize(GtkToggleButton * button, + gpointer data) +{ + gtk_toggle_button_set_active(button, cfg.show_wm_decorations); +} + +static void +on_show_wm_decorations_toggled(GtkToggleButton * button, + gpointer data) +{ + extern GtkWidget *equalizerwin; + cfg.show_wm_decorations = gtk_toggle_button_get_active(button); + gtk_window_set_decorated(GTK_WINDOW(mainwin), cfg.show_wm_decorations); + gtk_window_set_decorated(GTK_WINDOW(playlistwin), cfg.show_wm_decorations); + gtk_window_set_decorated(GTK_WINDOW(equalizerwin), cfg.show_wm_decorations); + +} + /* FIXME: complete the map */ FUNC_MAP_BEGIN(prefswin_func_map) FUNC_MAP_ENTRY(on_input_plugin_view_realize) @@ -2200,6 +2219,10 @@ /* XMMS fileselector option -nenolod */ FUNC_MAP_ENTRY(on_xmms_style_fileselector_toggled) FUNC_MAP_ENTRY(on_xmms_style_fileselector_realize) + + /* show window manager decorations */ + FUNC_MAP_ENTRY(on_show_wm_decorations_toggled) + FUNC_MAP_ENTRY(on_show_wm_decorations_realize) FUNC_MAP_END void