diff options
author | Henrik Kinnunen <fluxgen@fluxbox.org> | 2008-05-09 17:39:02 (GMT) |
---|---|---|
committer | Henrik Kinnunen <fluxgen@fluxbox.org> | 2008-05-09 17:39:02 (GMT) |
commit | c31638038aabd93c74373c7ee00fbefbc68d28ae (patch) | |
tree | da658ad65f64c24495cfdc169449250efb5caac0 /src/Screen.cc | |
parent | 05fa2be09642ff135eb32a4528103adf89cd71e7 (diff) | |
download | fluxbox_pavel-c31638038aabd93c74373c7ee00fbefbc68d28ae.zip fluxbox_pavel-c31638038aabd93c74373c7ee00fbefbc68d28ae.tar.bz2 |
Fixed so tooltip window in the iconbar when the title changes.
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 48a5c10..1ae5fbc 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -342,9 +342,9 @@ BScreen::BScreen(FbTk::ResourceManager &rm, | |||
342 | m_pressed_winbutton_theme(new WinButtonTheme(scrn, ".pressed", ".Pressed", *m_focused_windowtheme)), | 342 | m_pressed_winbutton_theme(new WinButtonTheme(scrn, ".pressed", ".Pressed", *m_focused_windowtheme)), |
343 | m_menutheme(new FbTk::MenuTheme(scrn)), | 343 | m_menutheme(new FbTk::MenuTheme(scrn)), |
344 | m_root_window(scrn), | 344 | m_root_window(scrn), |
345 | m_geom_window(m_root_window, *this, *m_focused_windowtheme), | 345 | m_geom_window(new OSDWindow(m_root_window, *this, *m_focused_windowtheme)), |
346 | m_pos_window(m_root_window, *this, *m_focused_windowtheme), | 346 | m_pos_window(new OSDWindow(m_root_window, *this, *m_focused_windowtheme)), |
347 | m_tooltip_window(m_root_window, *this, *m_focused_windowtheme), | 347 | m_tooltip_window(new TooltipWindow(m_root_window, *this, *m_focused_windowtheme)), |
348 | m_dummy_window(scrn, -1, -1, 1, 1, 0, true, false, CopyFromParent, | 348 | m_dummy_window(scrn, -1, -1, 1, 1, 0, true, false, CopyFromParent, |
349 | InputOnly), | 349 | InputOnly), |
350 | resource(rm, screenname, altscreenname), | 350 | resource(rm, screenname, altscreenname), |
@@ -486,7 +486,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm, | |||
486 | 486 | ||
487 | renderGeomWindow(); | 487 | renderGeomWindow(); |
488 | renderPosWindow(); | 488 | renderPosWindow(); |
489 | m_tooltip_window.setDelay(*resource.tooltip_delay); | 489 | m_tooltip_window->setDelay(*resource.tooltip_delay); |
490 | 490 | ||
491 | // setup workspaces and workspace menu | 491 | // setup workspaces and workspace menu |
492 | int nr_ws = *resource.workspaces; | 492 | int nr_ws = *resource.workspaces; |
@@ -1827,12 +1827,12 @@ void BScreen::showPosition(int x, int y) { | |||
1827 | 1827 | ||
1828 | char label[256]; | 1828 | char label[256]; |
1829 | sprintf(label, "X:%5d x Y:%5d", x, y); | 1829 | sprintf(label, "X:%5d x Y:%5d", x, y); |
1830 | m_pos_window.showText(label); | 1830 | m_pos_window->showText(label); |
1831 | } | 1831 | } |
1832 | 1832 | ||
1833 | 1833 | ||
1834 | void BScreen::hidePosition() { | 1834 | void BScreen::hidePosition() { |
1835 | m_pos_window.hide(); | 1835 | m_pos_window->hide(); |
1836 | } | 1836 | } |
1837 | 1837 | ||
1838 | // can be negative when base_width/height > min_width/height | 1838 | // can be negative when base_width/height > min_width/height |
@@ -1848,23 +1848,23 @@ void BScreen::showGeometry(int gx, int gy) { | |||
1848 | "W: %4d x H: %4d", | 1848 | "W: %4d x H: %4d", |
1849 | "Format for width and height window, %4d for width, and %4d for height").c_str(), | 1849 | "Format for width and height window, %4d for width, and %4d for height").c_str(), |
1850 | gx, gy); | 1850 | gx, gy); |
1851 | m_geom_window.showText(label); | 1851 | m_geom_window->showText(label); |
1852 | } | 1852 | } |
1853 | 1853 | ||
1854 | 1854 | ||
1855 | void BScreen::showTooltip(const std::string &text) { | 1855 | void BScreen::showTooltip(const std::string &text) { |
1856 | if (*resource.tooltip_delay >= 0) | 1856 | if (*resource.tooltip_delay >= 0) |
1857 | m_tooltip_window.showText(text); | 1857 | m_tooltip_window->showText(text); |
1858 | } | 1858 | } |
1859 | 1859 | ||
1860 | void BScreen::hideTooltip() { | 1860 | void BScreen::hideTooltip() { |
1861 | if (*resource.tooltip_delay >= 0) | 1861 | if (*resource.tooltip_delay >= 0) |
1862 | m_tooltip_window.hide(); | 1862 | m_tooltip_window->hide(); |
1863 | } | 1863 | } |
1864 | 1864 | ||
1865 | 1865 | ||
1866 | void BScreen::hideGeometry() { | 1866 | void BScreen::hideGeometry() { |
1867 | m_geom_window.hide(); | 1867 | m_geom_window->hide(); |
1868 | } | 1868 | } |
1869 | 1869 | ||
1870 | void BScreen::setLayer(FbTk::XLayerItem &item, int layernum) { | 1870 | void BScreen::setLayer(FbTk::XLayerItem &item, int layernum) { |
@@ -1912,14 +1912,14 @@ void BScreen::renderGeomWindow() { | |||
1912 | _FB_XTEXT(Screen, GeometrySpacing, | 1912 | _FB_XTEXT(Screen, GeometrySpacing, |
1913 | "W: %04d x H: %04d", "Representative maximum sized text for width and height dialog").c_str(), | 1913 | "W: %04d x H: %04d", "Representative maximum sized text for width and height dialog").c_str(), |
1914 | 0, 0); | 1914 | 0, 0); |
1915 | m_geom_window.resize(label); | 1915 | m_geom_window->resize(label); |
1916 | m_geom_window.reconfigTheme(); | 1916 | m_geom_window->reconfigTheme(); |
1917 | } | 1917 | } |
1918 | 1918 | ||
1919 | 1919 | ||
1920 | void BScreen::renderPosWindow() { | 1920 | void BScreen::renderPosWindow() { |
1921 | m_pos_window.resize("0:00000 x 0:00000"); | 1921 | m_pos_window->resize("0:00000 x 0:00000"); |
1922 | m_pos_window.reconfigTheme(); | 1922 | m_pos_window->reconfigTheme(); |
1923 | } | 1923 | } |
1924 | 1924 | ||
1925 | void BScreen::updateSize() { | 1925 | void BScreen::updateSize() { |