]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove the standalone clear button for the soundlist filter
authorterencehill <piuntn@gmail.com>
Sat, 3 Aug 2013 14:53:24 +0000 (16:53 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 3 Aug 2013 14:53:24 +0000 (16:53 +0200)
qcsrc/menu/xonotic/dialog_multiplayer_musicplayer.c

index 83a1f04b02f779c4061ef9d4ecb29872dd4321b2..4ff4579127e46c989943dba40aa526de8f9792be 100644 (file)
@@ -21,19 +21,15 @@ entity makeXonoticMusicPlayerTab()
 void XonoticMusicPlayerTab_fill(entity me)
 {
        entity e;
-       entity btn;
        entity soundList, playList;
        float columns_nospacing = (me.columns - 0.2);
 
        me.TR(me);
                me.TD(me, 1, 0.5, e = makeXonoticTextLabel(0, _("Filter:")));
-               me.TD(me, 1, 0.5, btn = makeXonoticButton(_("Clear"), '0 0 0'));
-                       btn.onClick = InputBox_Clear_Click;
-               me.TD(me, 1, 2, e = makeXonoticInputBox(0, string_null));
+               me.TD(me, 1, 2.5, e = makeXonoticInputBox(0, string_null));
                        soundList = makeXonoticSoundList();
                        e.onChange = SoundList_Filter_Change;
                        e.onChangeEntity = soundList;
-                       btn.onClickEntity = e;
                        soundList.controlledTextbox = e;
                        playList = makeXonoticPlayList();
                        soundList.playlist = playList;