mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove conditional g1/g2 compilation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9234 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -22,8 +22,6 @@
|
||||
#include "misc-gnome-utils.h"
|
||||
|
||||
/* ============================================================== */
|
||||
#ifdef GNOME2_PORT_IS_READY
|
||||
/* Use the following for the gnome2 port only -- */
|
||||
|
||||
void
|
||||
xxxgtk_textview_set_text (GtkTextView *text, const char *str)
|
||||
@@ -45,25 +43,4 @@ xxxgtk_textview_get_text (GtkTextView *text)
|
||||
}
|
||||
|
||||
|
||||
#else /*GNOME2_PORT_IS_READY */
|
||||
/* ============================================================== */
|
||||
|
||||
void
|
||||
xxxgtk_text_set_text (GtkText *text, const char *str)
|
||||
{
|
||||
gint pos=0;
|
||||
if (!str) str = "";
|
||||
gtk_editable_delete_text (GTK_EDITABLE (text), 0, -1);
|
||||
gtk_editable_insert_text (GTK_EDITABLE (text), str,
|
||||
strlen(str), &pos);
|
||||
|
||||
}
|
||||
|
||||
const char *
|
||||
xxxgtk_text_get_text (GtkText *text)
|
||||
{
|
||||
return gtk_editable_get_chars (GTK_EDITABLE(text), 0, -1);
|
||||
}
|
||||
|
||||
#endif
|
||||
/* ===================== END OF FILE ============================ */
|
||||
|
||||
@@ -19,16 +19,10 @@
|
||||
#ifndef __GTT_UTIL_H__
|
||||
#define __GTT_UTIL_H__
|
||||
|
||||
#include <gtk/gtktext.h>
|
||||
#define GNOME2_PORT_IS_READY
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
/* Some gtk-like utilities */
|
||||
#ifdef GNOME2_PORT_IS_READY
|
||||
void xxxgtk_textview_set_text (GtkTextView *text, const char *str);
|
||||
const char * xxxgtk_textview_get_text (GtkTextView *text);
|
||||
#else
|
||||
void xxxgtk_text_set_text (GtkText *text, const char *str);
|
||||
const char * xxxgtk_text_get_text (GtkText *text);
|
||||
#endif
|
||||
|
||||
#endif /* __GTT_UTIL_H__ */
|
||||
|
||||
Reference in New Issue
Block a user