/** * HexChat Theme Manager * * Copyright (C) 2012 Patrick Griffs * Copyright (C) 2012 Berke Viktor * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ namespace thememan { partial class HTM { /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null; /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HTM)); this.themelist = new System.Windows.Forms.ListBox(); this.themecolor0 = new System.Windows.Forms.Label(); this.themecolor1 = new System.Windows.Forms.Label(); this.themecolor2 = new System.Windows.Forms.Label(); this.themecolor3 = new System.Windows.Forms.Label(); this.themecolor4 = new System.Windows.Forms.Label(); this.themecolor5 = new System.Windows.Forms.Label(); this.themecolor6 = new System.Windows.Forms.Label(); this.themecolor7 = new System.Windows.Forms.Label(); this.themecolor8 = new System.Windows.Forms.Label(); this.themecolor9 = new System.Windows.Forms.Label(); this.themecolora = new System.Windows.Forms.Label(); this.themecolorb = new System.Windows.Forms.Label(); this.themecolorc = new System.Windows.Forms.Label(); this.themecolord = new System.Windows.Forms.Label(); this.themecolore = new System.Windows.Forms.Label(); this.themecolorf = new System.Windows.Forms.Label(); this.themecolorfg = new System.Windows.Forms.Label(); this.themecolortextbg = new System.Windows.Forms.Label(); this.importbutton = new System.Windows.Forms.Button(); this.applybutton = new System.Windows.Forms.Button(); this.themecolorfgmarked = new System.Windows.Forms.Label(); this.deleteButton = new System.Windows.Forms.Button(); this.SuspendLayout(); // // themelist // this.themelist.FormattingEnabled = true; this.themelist.Location = new System.Drawing.Point(12, 12); this.themelist.Name = "themelist"; this.themelist.Size = new System.Drawing.Size(160, 199); this.themelist.TabIndex = 0; this.themelist.SelectedIndexChanged += new System.EventHandler(this.theme_selected); // // themecolor0 // this.themecolor0.BackColor = System.Drawing.SystemColors.HotTrack; this.themecolor0.Location = new System.Drawing.Point(189, 36); this.themecolor0.Name = "themecolor0"; this.themecolor0.Size = new System.Drawing.Size(40, 40); this.themecolor0.TabIndex = 6; // // themecolor1 // this.themecolor1.BackColor = System.Drawing.SystemColors.HotTrack; this.themecolor1.Location = new System.Drawing.Point(239, 36); this.themecolor1.Name = "themecolor1"; this.themecolor1.Size = new System.Drawing.Size(40, 40); this.themecolor1.TabIndex = 10; // // themecolor2 // this.themecolor2.BackColor = System.Drawing.SystemColors.HotTrack; this.themecolor2.Location = new System.Drawing.Point(289, 36); this.themecolor2.Name = "themecolor2"; this.themecolor2.Size = new System.Drawing.Size(40, 40); this.themecolor2.TabIndex = 14; // // themecolor3 // this.themecolor3.BackColor = System.Drawing.SystemColors.HotTrack; this.themecolor3.Location = new System.Drawing.Point(339, 36); this.themecolor3.Name = "themecolor3"; this.themecolor3.Size = new System.Drawing.Size(40, 40); this.themecolor3.TabIndex = 18; // // themecolor4 // this.themecolor4.BackColor = System.Drawing.SystemColors.HotTrack; this.themecolor4.Location = new System.Drawing.Point(189, 87); this.themecolor4.Name = "themecolor4"; this.themecolor4.Size = new System.Drawing.Size(40, 40); this.themecolor4.TabIndex = 4; // // themecolor5 // this.themecolor5.BackColor = System.Drawing.SystemColors.HotTrack; this.themecolor5.Location = new System.Drawing.Point(239, 87); this.themecolor5.Name = "themecolor5"; this.themecolor5.Size = new System.Drawing.Size(40, 40); this.themecolor5.TabIndex = 8; // // themecolor6 // this.themecolor6.BackColor = System.Drawing.SystemColors.HotTrack; this.themecolor6.Location = new System.Drawing.Point(289, 87); this.themecolor6.Name = "themecolor6"; this.themecolor6.Size = new System.Drawing.Size(40, 40); this.themecolor6.TabIndex = 12; // // themecolor7 // this.themecolor7.BackColor = System.Drawing.SystemColors.HotTrack;
use strict;
use warnings;
use Xchat qw(:all);
use Glib qw(TRUE FALSE);
use Gtk2 -init;

sub get_inputbox {
	my $widget = Glib::Object->new_from_pointer( get_info( "win_ptr" ), 0 );
	my $input_box;

	my @containers = ($widget);

	while( @containers ) {
		my $container = shift @containers;

		for my $child ( $container->get_children ) {
			if( $child->get( "name" ) eq 'xchat-inputbox' ) {
				$input_box = $child;
				last;
			} elsif( $child->isa( "Gtk2::Container" )