Commit 3f890cec authored by Nalin Dahyabhai's avatar Nalin Dahyabhai

silence a compiler warning.

* src/vteapp.c: silence a compiler warning.
parent c52b22bd
2003-09-11 nalin
* src/vteapp.c: silence a compiler warning.
2003-09-11 nalin 2003-09-11 nalin
* README: ask for LC_* in addition to LANG if weird spacing errors * README: ask for LC_* in addition to LANG if weird spacing errors
crop up. crop up.
......
...@@ -382,6 +382,12 @@ take_xconsole_ownership(GtkWidget *widget, gpointer data) ...@@ -382,6 +382,12 @@ take_xconsole_ownership(GtkWidget *widget, gpointer data)
G_OBJECT(widget)); G_OBJECT(widget));
} }
static void
add_weak_pointer(GObject *object, GtkWidget **target)
{
g_object_add_weak_pointer(object, (gpointer*)target);
}
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
...@@ -745,8 +751,8 @@ main(int argc, char **argv) ...@@ -745,8 +751,8 @@ main(int argc, char **argv)
} }
/* Go for it! */ /* Go for it! */
g_object_add_weak_pointer(G_OBJECT(widget), (gpointer*)&widget); add_weak_pointer(G_OBJECT(widget), &widget);
g_object_add_weak_pointer(G_OBJECT(window), (gpointer*)&window); add_weak_pointer(G_OBJECT(window), &window);
gtk_widget_show_all(window); gtk_widget_show_all(window);
gtk_main(); gtk_main();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment