summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2008-03-15 02:12:19 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2008-03-15 02:12:19 +0100
commit1cc9f52423628c0c22a3128ad11143c9c49e531b (patch)
tree8db61ae8fb225ff4ee284881c89258b1b4f33d2e
parente4828690ed75c5f5b1694118cc279e74c14b9217 (diff)
downloadmdk-1cc9f52423628c0c22a3128ad11143c9c49e531b.tar.gz
mdk-1cc9f52423628c0c22a3128ad11143c9c49e531b.tar.bz2
Adapted to new GtkTooltip API.
-rw-r--r--mixgtk/mixgtk_mixvm.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/mixgtk/mixgtk_mixvm.c b/mixgtk/mixgtk_mixvm.c
index bb51872..d0ccc05 100644
--- a/mixgtk/mixgtk_mixvm.c
+++ b/mixgtk/mixgtk_mixvm.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mixgtk_mixvm.c :
* Implementation of the functions declared in mixgtk_mixvm.h
* ------------------------------------------------------------------
- * Copyright (C) 2001, 2002, 2004, 2006, 2007 Free Software Foundation, Inc.
+ * Copyright (C) 2001, 2002, 2004, 2006, 2007, 2008 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -33,7 +33,6 @@
#define REGISTER_NO_ (MIXGTK_WIDGET_rI6 - MIXGTK_WIDGET_rA + 1)
static GtkEntry *reg_entries_[REGISTER_NO_];
-static GtkTooltips *tips_ = NULL;
static GtkEntry *loc_entry_;
static GtkWidget *goto_ = NULL;
static GtkEntry *goto_entry_ = NULL;
@@ -70,8 +69,6 @@ mixgtk_mixvm_init (mix_vm_t *vm)
vm_ = vm;
- if (!tips_) tips_ = gtk_tooltips_new ();
-
for (k = 0; k < REGISTER_NO_; ++k)
{
reg_entries_[k] =
@@ -407,9 +404,8 @@ update_register_ (mixgtk_widget_id_t reg)
gtk_entry_set_text (reg_entries_[reg - MIXGTK_WIDGET_rA], BUFFER);
g_snprintf (BUFFER, 20, "%s%ld", mix_word_is_negative (tipval)? "-" : "",
mix_word_magnitude (tipval));
- gtk_tooltips_set_tip (tips_,
- GTK_WIDGET (reg_entries_[reg - MIXGTK_WIDGET_rA]),
- BUFFER, NULL);
+ gtk_widget_set_tooltip_text (
+ GTK_WIDGET (reg_entries_[reg - MIXGTK_WIDGET_rA]), BUFFER);
}