projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tidying.
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
gtkmm
/
dockbook.cpp
diff --git
a/synfig-studio/trunk/src/gtkmm/dockbook.cpp
b/synfig-studio/trunk/src/gtkmm/dockbook.cpp
index
a7470f9
..
62047f7
100644
(file)
--- a/
synfig-studio/trunk/src/gtkmm/dockbook.cpp
+++ b/
synfig-studio/trunk/src/gtkmm/dockbook.cpp
@@
-6,6
+6,7
@@
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-38,6
+39,8
@@
#include <gtkmm/eventbox.h>
#include <gtkmm/menu.h>
#include <gtkmm/eventbox.h>
#include <gtkmm/menu.h>
+#include "general.h"
+
#endif
/* === U S I N G =========================================================== */
#endif
/* === U S I N G =========================================================== */
@@
-79,9
+82,7
@@
void
DockBook::clear()
{
while(get_n_pages())
DockBook::clear()
{
while(get_n_pages())
- {
remove(static_cast<Dockable&>(*get_nth_page(get_n_pages()-1)));
remove(static_cast<Dockable&>(*get_nth_page(get_n_pages()-1)));
- }
}
void
}
void
@@
-240,6
+241,7
@@
DockBook::tab_button_pressed(GdkEventButton* event, Dockable* dockable)
return false;
Gtk::Menu *tabmenu=manage(new class Gtk::Menu());
return false;
Gtk::Menu *tabmenu=manage(new class Gtk::Menu());
+ tabmenu->signal_hide().connect(sigc::bind(sigc::ptr_fun(&delete_widget), tabmenu));
tabmenu->items().push_back(
Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("gtk-close"),
tabmenu->items().push_back(
Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("gtk-close"),