* Boston, MA 02111-1307, USA.
*/
-#include <config.h>
+#include "config.h"
+
+#undef GTK_DISABLE_DEPRECATED /* GtkTooltips */
+
#include "gtkmenutoolbutton.h"
-#include "gtkintl.h"
#include "gtktogglebutton.h"
#include "gtkarrow.h"
#include "gtkhbox.h"
#include "gtkmenu.h"
#include "gtkmain.h"
#include "gtkprivate.h"
+#include "gtkintl.h"
#include "gtkalias.h"
enum
{
PROP_0,
- PROP_MENU,
- LAST_PROP
+ PROP_MENU
};
static gint signals[LAST_SIGNAL];
if (priv->box)
{
+ gchar *tmp;
+
+ /* Transfer a possible tooltip to the new box */
+ g_object_get (priv->box, "tooltip-markup", &tmp, NULL);
+
+ if (tmp)
+ {
+ g_object_set (box, "tooltip-markup", tmp, NULL);
+ g_free (tmp);
+ }
+
/* Note: we are not destroying the button and the arrow_button
* here because they were removed from their container above
*/