[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-dev] Set window title (gtk).
From: |
annonygmouse |
Subject: |
[Gnash-dev] Set window title (gtk). |
Date: |
Sat, 29 Jul 2006 13:11:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; ca-AD; rv:1.7.13) Gecko/20060621 Debian/1.7.13-0.2 |
Here's a patch that puts the name of the file played in gnash as
the title of the window (gtk version).
If you think it's interesting enough, please apply.
Kind regards
SebastiĆ
? gnash
? gtk.lo
? gtk_glue_gtkglext.lo
? gui.lo
? libgnashgui.la
Index: gnash.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/gnash.cpp,v
retrieving revision 1.19
diff -u -r1.19 gnash.cpp
--- gnash.cpp 27 Jul 2006 12:10:25 -0000 1.19
+++ gnash.cpp 29 Jul 2006 11:09:23 -0000
@@ -325,7 +325,7 @@
gui.init(argc, &argv);
- gui.createWindow(width, height);
+ gui.createWindow(infile, width, height);
// Load the actual movie.
gnash::movie_definition *md;
Index: gtk.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/gtk.cpp,v
retrieving revision 1.14
diff -u -r1.14 gtk.cpp
--- gtk.cpp 27 Jul 2006 00:15:22 -0000 1.14
+++ gtk.cpp 29 Jul 2006 11:09:24 -0000
@@ -82,7 +82,7 @@
}
bool
-GtkGui::createWindow(int width, int height)
+GtkGui::createWindow(char *title, int width, int height)
{
GNASH_REPORT_FUNCTION;
@@ -91,6 +91,7 @@
dbglogfile << "Created XEmbedded window" << endl;
} else {
_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_title(GTK_WINDOW(_window), title);
dbglogfile << "Created top level window" << endl;
}
Index: gtksup.h
===================================================================
RCS file: /sources/gnash/gnash/gui/gtksup.h,v
retrieving revision 1.11
diff -u -r1.11 gtksup.h
--- gtksup.h 15 Jul 2006 16:02:23 -0000 1.11
+++ gtksup.h 29 Jul 2006 11:09:24 -0000
@@ -70,7 +70,7 @@
GtkGui(unsigned long xid, float scale, bool loop, unsigned int depth);
virtual ~GtkGui();
virtual bool init(int argc, char **argv[]);
- virtual bool createWindow(int width, int height);
+ virtual bool createWindow( char *title, int width, int height);
virtual bool run(void *arg);
virtual bool createMenu();
virtual bool setupEvents();
Index: gui.h
===================================================================
RCS file: /sources/gnash/gnash/gui/gui.h,v
retrieving revision 1.8
diff -u -r1.8 gui.h
--- gui.h 27 Jul 2006 00:15:22 -0000 1.8
+++ gui.h 29 Jul 2006 11:09:24 -0000
@@ -64,7 +64,7 @@
bool init(int xid, int argc, char **argv[]);
bool createWindow(int xid, int width, int height);
- virtual bool createWindow(int width, int height) = 0;
+ virtual bool createWindow(char *title, int width, int height) = 0;
virtual bool run(void *) = 0;
virtual bool createMenu() = 0;
virtual bool setupEvents() = 0;
- [Gnash-dev] Set window title (gtk).,
annonygmouse <=