build fixes for gcc 2.x. thanks to fizz for reporting and providing a patch.
This commit is contained in:
parent
a166914a27
commit
9932b80f73
|
@ -44,10 +44,12 @@ static GtkTextBuffer * textbuf = NULL;
|
|||
static GtkTextTag*
|
||||
get_or_create_tag (GtkTextTagTable * table, const char * key)
|
||||
{
|
||||
GtkTextTag * tag;
|
||||
|
||||
g_assert (table);
|
||||
g_assert (key && *key);
|
||||
|
||||
GtkTextTag * tag = gtk_text_tag_table_lookup (table, key);
|
||||
tag = gtk_text_tag_table_lookup (table, key);
|
||||
if (!tag) {
|
||||
tag = gtk_text_tag_new (key);
|
||||
gtk_text_tag_table_add (table, tag);
|
||||
|
|
|
@ -443,8 +443,11 @@ errcb(GtkWidget *widget, int resp SHUTUP, gpointer data) {
|
|||
gtk_widget_destroy(widget);
|
||||
}
|
||||
|
||||
typedef void (PopupFunc)(GtkWidget*, GdkEventButton*);
|
||||
|
||||
/* pop up the context menu if a user right-clicks.
|
||||
if the row they right-click on isn't selected, select it. */
|
||||
|
||||
gboolean
|
||||
on_tree_view_button_pressed (GtkWidget * view,
|
||||
GdkEventButton * event,
|
||||
|
@ -469,7 +472,6 @@ on_tree_view_button_pressed (GtkWidget * view,
|
|||
gtk_tree_path_free(path);
|
||||
}
|
||||
|
||||
typedef void (PopupFunc)(GtkWidget*, GdkEventButton*);
|
||||
((PopupFunc*)func)(view, event);
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in New Issue