Displaying 20 results from an estimated 25 matches for "gtk_main_quit".
2007 Aug 22
0
3 commits - libswfdec/swfdec_sprite_movie.c player/swfplay.c
...it a/player/swfplay.c b/player/swfplay.c
index 996deb2..7521acf 100644
--- a/player/swfplay.c
+++ b/player/swfplay.c
@@ -62,7 +62,11 @@ static void
do_fscommand (SwfdecPlayer *player, const char *command, const char *value, gpointer window)
{
if (g_str_equal (command, "quit")) {
- gtk_main_quit ();
+ static gboolean already_quit = FALSE;
+ if (!already_quit) {
+ gtk_main_quit ();
+ already_quit = TRUE;
+ }
}
/* FIXME: add more */
}
diff-tree b822fe6102c568328608dcce05a412c848005f88 (from c5efffeed0afc0e64f4d01a4323c9137189bf41f)
Author: Benjamin Otte <otte at...
2007 Aug 24
0
2 commits - player/swfplay.c
...(GtkWindow *window, const char *filename)
{
@@ -62,11 +64,8 @@ static void
do_fscommand (SwfdecPlayer *player, const char *command, const char *value, gpointer window)
{
if (g_str_equal (command, "quit")) {
- static gboolean already_quit = FALSE;
- if (!already_quit) {
- gtk_main_quit ();
- already_quit = TRUE;
- }
+ g_assert (loop);
+ g_main_loop_quit (loop);
}
/* FIXME: add more */
}
@@ -150,6 +149,7 @@ main (int argc, char *argv[])
g_object_unref (loader);
return 1;
}
+ loop = g_main_loop_new (NULL, TRUE);
player = swfdec_gtk_player_new (...
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_object.c NEWS player/swfplay.c
...23e3f8f..996deb2 100644
--- a/player/swfplay.c
+++ b/player/swfplay.c
@@ -59,6 +59,15 @@ view_swf (SwfdecPlayer *player, gboolean
}
static void
+do_fscommand (SwfdecPlayer *player, const char *command, const char *value, gpointer window)
+{
+ if (g_str_equal (command, "quit")) {
+ gtk_main_quit ();
+ }
+ /* FIXME: add more */
+}
+
+static void
print_trace (SwfdecPlayer *player, const char *message, gpointer unused)
{
g_print ("%s\n", message);
@@ -93,7 +102,7 @@ main (int argc, char *argv[])
SwfdecPlayer *player;
GError *error = NULL;
gboolean use_image = FALSE,...
2018 Nov 06
3
[PATCH v2 0/2] p2v: add Shutdown option
This small series for p2v refactors the Reboot menu of the conversion
dialog into something slightly more general, and add the possibility to
shut the machine down.
Lots of work to deal with old GTK versions ...
Changes from v1:
- fix shutdown command
Pino Toscano (2):
p2v: turn Reboot button into a Shutdown popup menu button
p2v: add a Shutdown action (RHBZ#1642044)
p2v/gui.c |
2015 May 06
3
[PATCH 0/3] p2v: Add Configure Network button (RHBZ#1167921).
https://bugzilla.redhat.com/show_bug.cgi?id=1167921
2018 Nov 05
4
[PATCH 0/2] p2v: add Shutdown option
This small series for p2v refactors the Reboot menu of the conversion
dialog into something slightly more general, and add the possibility to
shut the machine down.
Lots of work to deal with old GTK versions ...
Pino Toscano (2):
p2v: turn Reboot button into a Shutdown popup menu button
p2v: add a Shutdown action (RHBZ#1642044)
p2v/gui.c | 119
2007 Aug 16
0
Branch 'vivi' - 23 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_sprite_movie.c test/trace vivified/core
...I_VDOCK (box), widget);
widget = vivi_command_line_new (app);
- gtk_container_add (GTK_CONTAINER (box), widget);
+ vivi_vdock_add (VIVI_VDOCK (box), widget);
gtk_container_foreach (GTK_CONTAINER (widget), try_grab_focus, NULL);
- g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
+ g_signal_connect (window, "delete-event", G_CALLBACK (delete_event), app);
+ g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), app);
gtk_widget_show_all (window);
}
diff-tree ece89b8a8842215f3e1e68a09181e1b6ebadf8e3 (from 49807e47ac5b6560070a29a...
2007 Aug 21
0
Branch 'vivi' - 10 commits - libswfdec/swfdec_button_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c vivified/core vivified/dock vivified/ui
..._object (builder, "movies"));
+ g_object_set (widget, "application", app, NULL);
+ vivi_vdock_add (VIVI_VDOCK (box), widget);
+
g_signal_connect (window, "delete-event", G_CALLBACK (delete_event), app);
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), app);
gtk_widget_show_all (window);
diff --git a/vivified/ui/vivi_movies.c b/vivified/ui/vivi_movies.c
new file mode 100644
index 0000000..a4c8e37
--- /dev/null
+++ b/vivified/ui/vivi_movies.c
@@ -0,0 +1,40 @@
+/* Vivified
+ * Copyright (C) 2007 Benjamin Otte <otte at gnome.org>
+ *
+ *...
2007 Feb 22
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_js.c libswfdec/swfdec_js_mouse.c libswfdec/swfdec_listener.c libswfdec/swfdec_listener.h libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...t_get_data (player, "loader");
+
+ swfdec_player_set_loader_with_variables (player, loader, variables);
+ if (!swfdec_player_is_initialized (player)) {
+ g_printerr ("File \"%s\" is not a file Swfdec can play\n", loader->url);
+ g_object_unref (player);
+ gtk_main_quit ();
+ return FALSE;
+ }
+ return FALSE;
+}
+
int
main (int argc, char *argv[])
{
@@ -348,13 +373,9 @@ main (int argc, char *argv[])
if (do_break)
g_signal_connect (player, "script-added", G_CALLBACK (do_break_cb), NULL);
view_swf (player, scale, use_image);
- swfdec_p...
2007 Aug 14
0
Branch 'vivi' - 11 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am libswfdec/swfdec.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h vivified/core
...;
@@ -314,3 +321,13 @@ vivi_application_step (ViviApplication *
app->playback_count = n_times;
}
+void
+vivi_application_quit (ViviApplication *app)
+{
+ g_return_if_fail (VIVI_IS_APPLICATION (app));
+
+ app->playback_state = VIVI_APPLICATION_EXITING;
+ app->playback_count = 1;
+ gtk_main_quit ();
+}
+
diff --git a/vivified/core/vivi_application.h b/vivified/core/vivi_application.h
index 2f4fd33..d1f0da7 100644
--- a/vivified/core/vivi_application.h
+++ b/vivified/core/vivi_application.h
@@ -87,6 +87,7 @@ void vivi_application_play (ViviAppli
void vivi_application_stop (ViviApplic...
2007 Aug 09
0
Branch 'vivi' - 6 commits - configure.ac vivified/core vivified/dock vivified/Makefile.am vivified/ui
...gnal_connect (widget, "activate", G_CALLBACK (entry_activate_cb), app);
- gtk_box_pack_end (GTK_BOX (box), widget, FALSE, TRUE, 0);
+ widget = vivi_command_line_new (app);
+ gtk_container_add (GTK_CONTAINER (box), widget);
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
gtk_widget_show_all (window);
diff --git a/vivified/ui/vivi_commandline.c b/vivified/ui/vivi_commandline.c
new file mode 100644
index 0000000..ced3e15
--- /dev/null
+++ b/vivified/ui/vivi_commandline.c
@@ -0,0 +1,75 @@
+/* Vivified
+ * Copyright (C) 2007 Benjamin Otte <otte at gnome....
2007 Jul 31
0
10 commits - doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_buffer.c libswfdec/swfdec_debugger.c libswfdec/swfdec.h
...nitialized (player)) {
- g_printerr ("File \"%s\" is not a file Swfdec can play\n", loader->url);
+ g_printerr ("File \"%s\" is not a file Swfdec can play\n",
+ swfdec_url_get_url (swfdec_loader_get_url (loader)));
g_object_unref (player);
gtk_main_quit ();
return FALSE;
diff --git a/player/swfdec_slow_loader.c b/player/swfdec_slow_loader.c
index 1cad9de..c568316 100644
--- a/player/swfdec_slow_loader.c
+++ b/player/swfdec_slow_loader.c
@@ -22,7 +22,7 @@
#endif
#include "swfdec_slow_loader.h"
-#include <libswfdec/swfdec_loade...
2007 Jan 22
0
Branch 'interpreter' - 3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_swf_decoder.c test/Makefile.am test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_tag.c test/swfedit_tag.h test/swfedit_token.c test/swfedit_token.h
...(filename, &error);
+ if (file == NULL) {
+ g_printerr ("Error openeing file %s: %s\n", filename, error->message);
+ g_error_free (error);
+ return FALSE;
+ }
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
+
+ treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (file));
+ gtk_container_add (GTK_CONTAINER (window), treeview);
+ gtk_widget_show_all (window);
+
+ renderer = gtk_cell_renderer_text_new ();
+ column = gtk_tree_view_column_new_with_attributes ("Name", renderer,
+...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...destroyed_cb (GtkWindow *window, SwfdecPlayerManager *manager)
-{
- g_signal_connect (manager, "notify::interrupted", G_CALLBACK (force_continue), NULL);
- if (swfdec_player_manager_get_interrupted (manager))
- swfdec_player_manager_continue (manager);
- g_object_unref (manager);
- gtk_main_quit ();
-}
-
-static void
-disconnect_all (gpointer from, GObject *object)
-{
- g_signal_handlers_disconnect_matched (from, G_SIGNAL_MATCH_DATA,
- 0, 0, NULL, NULL, object);
- g_object_weak_unref (G_OBJECT (from), disconnect_all, object);
-}
-
-static void
-signal_auto_connect (gpointer object,...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...rinterr ("Error opening file %s: %s\n", filename, error->message);
g_error_free (error);
return FALSE;
}
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_title (GTK_WINDOW (window), filename);
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
+ box = gtk_vbox_new (FALSE, 3);
+ gtk_container_add (GTK_CONTAINER (window), box);
+
scroll = gtk_scrolled_window_new (NULL, NULL);
- gtk_container_add (GTK_CONTAINER (window), scroll);
+ gtk_box_pack_start (GTK_BOX (box), scroll, TRUE, TRUE, 0);
treeview = gtk_tree_view_new...
2007 Aug 13
0
Branch 'vivi' - 24 commits - configure.ac libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h vivified/core vivified/dock vivified/ui
...t char *filename)
gtk_container_add (GTK_CONTAINER (box), widget);
widget = vivi_command_line_new (app);
gtk_container_add (GTK_CONTAINER (box), widget);
+ gtk_container_foreach (GTK_CONTAINER (widget), try_grab_focus, NULL);
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
gtk_widget_show_all (window);
diff-tree eff171fc6e57dcc745125672485ba2e55463d47d (from 746566d83ba51568101d1d71483201cbfbc96e1c)
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Aug 13 19:28:20 2007 +0200
add shortcut mode for calling functions
diff --git a/vivified/ui/...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
..._object (builder, "movies"));
+ g_object_set (widget, "application", app, NULL);
+ vivi_vdock_add (VIVI_VDOCK (box), widget);
+
g_signal_connect (window, "delete-event", G_CALLBACK (delete_event), app);
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), app);
gtk_widget_show_all (window);
diff --git a/vivified/ui/vivi_movies.c b/vivified/ui/vivi_movies.c
new file mode 100644
index 0000000..a4c8e37
--- /dev/null
+++ b/vivified/ui/vivi_movies.c
@@ -0,0 +1,40 @@
+/* Vivified
+ * Copyright (C) 2007 Benjamin Otte <otte at gnome.org>
+ *
+ *...
2007 Aug 21
0
Branch 'vivi' - 15 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_types.h vivified/core vivified/ui
...t);
widget = vivi_command_line_new (app);
vivi_vdock_add (VIVI_VDOCK (box), widget);
@@ -82,6 +90,7 @@ setup (const char *filename, const char
g_signal_connect (window, "delete-event", G_CALLBACK (delete_event), app);
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), app);
gtk_widget_show_all (window);
+ g_object_unref (builder);
}
int
diff --git a/vivified/ui/vivi_player.c b/vivified/ui/vivi_player.c
index 4732d68..876eb77 100644
--- a/vivified/ui/vivi_player.c
+++ b/vivified/ui/vivi_player.c
@@ -21,10 +21,8 @@
#include "config.h"
#endif...
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
..._new (GTK_WINDOW_TOPLEVEL);
- gtk_window_set_title (GTK_WINDOW (window), filename);
+ basename = g_path_get_basename (filename);
+ if (basename) {
+ gtk_window_set_title (GTK_WINDOW (window), basename);
+ g_free (basename);
+ }
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
box = gtk_vbox_new (FALSE, 3);
@@ -92,7 +98,7 @@ open_window (char *filename)
renderer = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes ("Name", renderer,
- "text", SWFEDIT_COLUMN_NAME, NULL);
+ "text", SWFE...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...e (error);
- return FALSE;
- }
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- basename = g_path_get_basename (filename);
- if (basename) {
- gtk_window_set_title (GTK_WINDOW (window), basename);
- g_free (basename);
- }
- g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
-
- box = gtk_vbox_new (FALSE, 3);
- gtk_container_add (GTK_CONTAINER (window), box);
-
- scroll = gtk_scrolled_window_new (NULL, NULL);
- gtk_box_pack_start (GTK_BOX (box), scroll, TRUE, TRUE, 0);
-
- treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (file));
- gtk_container_a...