summary refs log tree commit diff stats
path: root/plugins/mpcinfo
AgeCommit message (Collapse)Author
2013-04-14Relocate plugin iconsBerke Viktor
2013-04-01Remove another bunch of obsolete junkBerke Viktor
2012-12-23fix incorrect FSF addressDan Mashal
2012-12-17MPC: don't spam no player running to chatTingPing
2012-11-04Use configdir instead of *xchatdir*Berke Viktor
2012-10-30Rebrand get_info(xchatdir) but remain compatible for Perl and PythonBerke Viktor
2012-10-30Rebranding for the rest of plugin*Berke Viktor
2012-10-30Rebranding for XCHAT_EAT_*Berke Viktor
2012-10-30Rebranding for XCHAT_PRI_*Berke Viktor
2012-10-30Remove hexchat-plugin.h duplicateBerke Viktor
2012-10-24A lot more rebrandingBerke Viktor
2012-10-21Move warning level to property sheetBerke Viktor
2012-10-05Fix mpcInfo-xp not using the WDK toolsetBerke Viktor
2012-10-03Now really finish the reversionBerke Viktor
2012-10-03Revert to VS2010 part4Berke Viktor
2012-10-02Oops, wrong find'n'replaceBerke Viktor
2012-10-02Remove hardcoding as much as possibleBerke Viktor
2012-10-02Change platform toolset to Visual Studio 2012Berke Viktor
2012-07-21Add _AMD64_ definition for x64 builds, make Visual Studio even happierBerke Viktor
2012-07-21Add trailing backslashes to Output and Intermediate directories, make Visual ↵Berke Viktor
Studio happy
2012-07-14get rid of *.user files and ignore themxhmikosr
2012-07-13Rename DLL files, rename X-SASL to SASLBerke Viktor
2012-07-13Rename files, delete old windows makefilesBerke Viktor
2012-07-11Rebranding on the file levelBerke Viktor
2012-06-15Add .user files and .gitignoreBerke Viktor
2012-06-15Add x64 support to the VS solutionBerke Viktor
2012-06-15LOTS of fixes to the VS solutionBerke Viktor
2012-06-10Add all plugins to solution except WMPABerke Viktor
2011-02-28add wdk changes to named branchberkeviktor@aol.com
2011-02-24nuke the repoberkeviktor@aol.com
2011-01-26menu integration for mpcinfoberkeviktor@aol.com
2011-01-25some mpcinfo cosmetics and deinit()berkeviktor@aol.com
2011-01-25build system support for mpcinfoberkeviktor@aol.com
2011-01-25msvc compilation fixesberkeviktor@aol.com
2011-01-25initial sources for mpcinfoberkeviktor@aol.com
pan>shift; my $hbox; while( $widget->parent ) { if( $widget->parent->isa( "Gtk2::HBox" ) ) { return $widget->parent; } $widget = $widget->parent; } } my $input_box = get_inputbox(); if( $input_box ) { my $hbox = get_hbox( $input_box ); if( $hbox ) { my $label = Gtk2::Label->new(); $label->set_alignment( 0.5, ($label->get_alignment)[1] ); $hbox->pack_end( $label, 0, 0, 5 ); $label->show(); my $update_label = sub { my $ctx_type = context_info->{"type"}; hook_timer( 0, sub { if( $ctx_type == 2 || $ctx_type == 3 ) { my $count = length get_info "inputbox"; $label->set_text( $count ? $count : "" ); } else { $label->set_text( "" ); } return REMOVE; }); return EAT_NONE; }; hook_print( "Key Press", $update_label ); hook_print( "Focus Tab", $update_label ); hook_print( "Focus Window", $update_label ); hook_command( "", sub { $label->set_text( "" ); return EAT_NONE; } ); my @handlers; my $buffer = $input_box->get_buffer; my $handler = sub { $update_label->(); return TRUE }; if( $buffer->isa( "Gtk2::TextBuffer" ) ) { push @handlers, $buffer->signal_connect( "changed", $handler ); } elsif( $buffer->isa( "Gtk2::EntryBuffer" ) ) { push @handlers, $buffer->signal_connect( "deleted-text", $handler ); $buffer->signal_connect( "inserted-text", $handler ); } register( "Character Counter", "1.0.0", "Display the number of characters in the inputbox", sub { $hbox->remove( $label ); $buffer->signal_handler_disconnect( $_ ) for @handlers; } ); } else { prnt "Counldn't find hbox"; } } else { prnt "Couldn't fint input box"; }