Removed std:: from in front of strcmp and added a string.h
This commit is contained in:
parent
2ce8fbdcf9
commit
5484981693
@ -1,3 +1,5 @@
|
|||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <osg/Stats>
|
#include <osg/Stats>
|
||||||
@ -50,9 +52,9 @@ class ExampleOSGGTKDrawingArea : public OSGGTKDrawingArea {
|
|||||||
GTK_LABEL(gtk_bin_get_child(GTK_BIN(widget)))
|
GTK_LABEL(gtk_bin_get_child(GTK_BIN(widget)))
|
||||||
);
|
);
|
||||||
|
|
||||||
if(not std::strncmp(text, "Close", 5)) gtk_main_quit();
|
if(not strncmp(text, "Close", 5)) gtk_main_quit();
|
||||||
|
|
||||||
else if(not std::strncmp(text, "Open File", 9)) {
|
else if(not strncmp(text, "Open File", 9)) {
|
||||||
GtkWidget* of = gtk_file_chooser_dialog_new(
|
GtkWidget* of = gtk_file_chooser_dialog_new(
|
||||||
"Please select an OSG file...",
|
"Please select an OSG file...",
|
||||||
GTK_WINDOW(gtk_widget_get_toplevel(getWidget())),
|
GTK_WINDOW(gtk_widget_get_toplevel(getWidget())),
|
||||||
|
Loading…
Reference in New Issue
Block a user