Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Xacobeo CPAN distribution.

Report information
The Basics
Id: 41187
Status: resolved
Priority: 0/
Queue: Xacobeo

People
Owner: Nobody in particular
Requestors: jozef [...] kutej.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.03
Fixed in: (no value)



Subject: include filename in application title
attached is the patch that sets title of the main window to "Xacobeo" + the file name of the file that is viewed.
Subject: set-title.patch
From 31da8d22c9d4855b0e4c00c162a0b7212d09053d Mon Sep 17 00:00:00 2001 From: Jozef Kutej <jozef@kutej.net> Date: Mon, 24 Nov 2008 15:58:41 +0100 Subject: [PATCH] set_title to Xacobeo + opened filename --- bin/xacobeo | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/bin/xacobeo b/bin/xacobeo index 2a8e8b4..f556cc5 100755 --- a/bin/xacobeo +++ b/bin/xacobeo @@ -119,6 +119,7 @@ my %ENTITIES = qw( " &quot; ); +our $APP_NAME = 'Xacobeo'; # Main entry point exit main(); @@ -158,6 +159,7 @@ sub construct_gui { # Set the application's icon my $logo = Gtk2::Gdk::Pixbuf->new_from_file(catfile($folder, 'share', 'xacobeo', 'xacobeo.svg')); $self->glade->get_widget('window')->set_icon($logo); + $self->glade->get_widget('window')->set_title($APP_NAME); $self->glade->get_widget('about')->set_logo($logo); @@ -306,6 +308,9 @@ sub load_file { # Update the text widget my $glade = $self->glade; + # set main window title + $glade->get_widget('window')->set_title($APP_NAME.' - '.$file); + my $buffer = $glade->get_widget('xml-document')->get_buffer(); $buffer->delete($buffer->get_start_iter, $buffer->get_end_iter); $self->render_xml_into_buffer($buffer, $document->xml); -- 1.5.6.5
Nice addition, thanks for the patch.