linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #02889
[Branch ~linuxdcpp-team/linuxdcpp/trunk] Rev 403: Set window title on tab label change even if mainwindow isn't active
------------------------------------------------------------
revno: 403
committer: Razzloss <razzloss@xxxxxxxxx>
branch nick: master
timestamp: Fri 2011-01-07 18:04:03 +0200
message:
Set window title on tab label change even if mainwindow isn't active
modified:
linux/bookentry.cc
linux/bookentry.hh
--
lp:linuxdcpp
https://code.launchpad.net/~linuxdcpp-team/linuxdcpp/trunk
Your team LinuxDC++ Team is subscribed to branch lp:linuxdcpp.
To unsubscribe from this branch go to https://code.launchpad.net/~linuxdcpp-team/linuxdcpp/trunk/+edit-subscription
=== modified file 'linux/bookentry.cc'
--- linux/bookentry.cc 2010-09-13 01:25:49 +0000
+++ linux/bookentry.cc 2011-01-07 16:04:03 +0000
@@ -115,7 +115,7 @@
updateLabel_gui();
// Update the main window title if the current tab is selected.
- if (isActive_gui())
+ if (isSelected_gui())
WulforManager::get()->getMainWindow()->setTitle(getLabelText());
}
@@ -214,6 +214,13 @@
return mw->isActive_gui() && mw->currentPage_gui() == getContainer();
}
+bool BookEntry::isSelected_gui()
+{
+ MainWindow *mw = WulforManager::get()->getMainWindow();
+
+ return mw->currentPage_gui() == getContainer();
+}
+
void BookEntry::updateLabel_gui()
{
const char *format = "%s";
=== modified file 'linux/bookentry.hh'
--- linux/bookentry.hh 2010-09-08 02:51:30 +0000
+++ linux/bookentry.hh 2011-01-07 16:04:03 +0000
@@ -41,6 +41,7 @@
void setUrgent_gui();
void setActive_gui();
bool isActive_gui();
+ bool isSelected_gui();
virtual void show() = 0;
private: