[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Graveman-cvs] Changes to graveman/current/src/support.c
From: |
sylvain cresto |
Subject: |
[Graveman-cvs] Changes to graveman/current/src/support.c |
Date: |
Thu, 21 Apr 2005 19:16:48 -0400 |
Index: graveman/current/src/support.c
diff -u graveman/current/src/support.c:1.10 graveman/current/src/support.c:1.11
--- graveman/current/src/support.c:1.10 Wed Apr 20 01:00:31 2005
+++ graveman/current/src/support.c Thu Apr 21 23:16:45 2005
@@ -26,6 +26,12 @@
static GdkCursor *_cursor = NULL;
+/* glade-xml.c */
+static const gchar *glade_xml_tooltips_key = "GladeXML::tooltips";
+static GQuark glade_xml_tooltips_id = 0;
+/* glade-xml.c */
+
+
GtkWidget *glade_to_hash(GladeXML *Axml, GHashTable *Ahash, gchar *Akey)
{
GtkWidget *Lobj = glade_xml_get_widget(Axml, Akey);
@@ -125,6 +131,7 @@
Agrave->xml = glade_xml_new(Lfullname, NULL, NULL);
+
if (!Agrave->xml) {
g_free(Agrave);
g_critical(_("error cannot load '%s': %s"), Lfullname, g_strerror(errno));
@@ -136,6 +143,27 @@
return Agrave;
}
+void sc_init()
+{
+ glade_xml_tooltips_id = g_quark_from_static_string(glade_xml_tooltips_key);
+}
+
+/* activer / desactiver les tooltips */
+void sc_tooltips(GtkWidget *Awin, gboolean Aetat)
+{
+ GtkTooltips *Ltooltips = NULL;
+
+ Ltooltips = GTK_TOOLTIPS(g_object_get_qdata(G_OBJECT(Awin),
glade_xml_tooltips_id));
+
+ if (GTK_IS_TOOLTIPS(Ltooltips)) {
+ if (Aetat) {
+ gtk_tooltips_enable(Ltooltips);
+ } else {
+ gtk_tooltips_disable(Ltooltips);
+ }
+ }
+}
+
Tgrave *sc_grave_destroy(Tgrave *Agrave)
{
g_return_val_if_fail(Agrave != NULL, NULL);