search for: gtk_init

Displaying 16 results from an estimated 16 matches for "gtk_init".

2014 Sep 23
1
Re: [PATCH 01/13] syntax-check: dirty hack to pass bindtextdomain check
...1 insertion(+), 1 deletion(-) > > diff --git a/p2v/gui.c b/p2v/gui.c > index a50307d..2df5017 100644 > --- a/p2v/gui.c > +++ b/p2v/gui.c > @@ -69,7 +69,7 @@ static GtkWidget *run_dlg, > *cancel_button; > > /* The entry point from the main program. > - * Note that gtk_init etc have already been called in main(). > + * Note that gtk_init etc have already been called in main_(). > */ > void > gui_application (struct config *config) Maybe it would be better to just remove () from the commit; after all, earlier in that comment gtk_init has no () either....
2015 Mar 10
1
[PATCH] gui: fix a syntax-check issue of bindtextdomain
...2v/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2v/gui.c b/p2v/gui.c index 60f226e..f661f49 100644 --- a/p2v/gui.c +++ b/p2v/gui.c @@ -70,7 +70,7 @@ static GtkWidget *run_dlg, *cancel_button, *reboot_button; /* The entry point from the main program. - * Note that gtk_init etc have already been called in main(). + * Note that gtk_init etc have already been called in main. */ void gui_application (struct config *config) -- 2.1.0
2014 Sep 23
0
[PATCH 01/13] syntax-check: dirty hack to pass bindtextdomain check
...u.com> --- p2v/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2v/gui.c b/p2v/gui.c index a50307d..2df5017 100644 --- a/p2v/gui.c +++ b/p2v/gui.c @@ -69,7 +69,7 @@ static GtkWidget *run_dlg, *cancel_button; /* The entry point from the main program. - * Note that gtk_init etc have already been called in main(). + * Note that gtk_init etc have already been called in main_(). */ void gui_application (struct config *config) -- 1.9.3
2012 Jan 13
0
[PATCH 1/1] Ported gnome-ssh-askpass2 to gtk3.
...rabkb: + gdk_pointer_ungrab(GDK_CURRENT_TIME); + nograb: + if (grab_server) + XUngrabServer(GDK_DISPLAY_XDISPLAY(gdk_display_get_default())); + gtk_widget_destroy(dialog); + + report_failed_grab(failed); + + return (-1); +} + +int +main(int argc, char **argv) +{ + char *message; + int result; + + gtk_init(&argc, &argv); + + if (argc > 1) { + message = g_strjoinv(" ", argv + 1); + } else { + message = g_strdup("Enter your OpenSSH passphrase:"); + } + + setvbuf(stdout, 0, _IONBF, 0); + result = passphrase_dialog(message); + g_free(message); + + return (result); +} --...
2007 Nov 22
3
[PATCH] one-time ssh-agent confirmation password
The patch (against 4.7p1) modifies gnome-ssh-askpass to optionally generate a one-time password and transmits it to the user via an out-of-band communication channel. If you can read the password and enter it back into the gnome-ssh-askpass dialog, ssh-agent is allowed to continue with the authentication process. There are two ways to use the modified gnome-ssh-askpass. The first
2019 Dec 03
7
[p2v PATCH 0/6] Use GLib a bit more
In an effort to reduce the code, start to use few bits of GLib: - replace the gnulib c-type module - replace the gnulib getprogname module - use g_spawn_sync to launch curl, and drop a file reading function Pino Toscano (6): Include glib.h in p2v.h Use g_ascii_isspace instead of c_isspace from gnulib Use g_get_prgname instead of getprogname from gnulib build: remove no more used gnulib
2007 Aug 16
0
Branch 'vivi' - 18 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h libswfdec/swfdec_player.c vivified/core vivified/ui
..., filename); + vivi_application_set_variables (app, variables); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect_swapped (app, "notify::quit", G_CALLBACK (gtk_widget_destroy), window); box = vivi_vdock_new (); @@ -75,12 +76,12 @@ main (int argc, char **argv) { gtk_init (&argc, &argv); - if (argc != 2) { - g_print ("usage: %s FILE\n", argv[0]); + if (argc < 2) { + g_print ("usage: %s FILE [VARIABLES]\n", argv[0]); return 0; } - setup (argv[1]); + setup (argv[1], argc > 2 ? argv[2] : NULL); gtk_main ();...
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
..., renderer, + "text", SWFEDIT_COLUMN_VALUE, "visible", SWFEDIT_COLUMN_VALUE_VISIBLE, NULL); + gtk_tree_view_column_set_resizable (column, TRUE); + gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column); + + return TRUE; +} + +int +main (int argc, char **argv) +{ + gtk_init (&argc, &argv); + + if (argc <= 1) { + g_print ("Usage: %s FILENAME\n", argv[0]); + return 1; + } + if (open_window (argv[1])) { + gtk_main (); + return 0; + } else { + return 1; + } +} + diff --git a/test/swfedit_file.c b/test/swfedit_file.c new file mode 1...
2007 Apr 17
0
8 commits - configure.ac doc/Makefile.am libswfdec/jpeg libswfdec/swfdec_debug.h libswfdec/swfdec_image.c
...r 13 11:01:06 2007 -0700 Merge branch 'master' of git+ssh://git.freedesktop.org/git/swfdec diff-tree 798d47e5fe07d221d32575c7d34a27cb5c87a47f (from 25b8d26bdef82ba41b2e629398634545b7852ebd) Author: Debian User <ds@gromit.(none)> Date: Tue Apr 10 15:15:21 2007 -0700 Remove gtk_init(), since it fails if it can't find an X server diff --git a/doc/Makefile.am b/doc/Makefile.am index 4855ce8..558d819 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -25,7 +25,7 @@ DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sg DOC_SOURCE_DIR=../libswfdec # Extra options to pass to gtkdoc-s...
2014 Sep 23
27
[PATCH 00/13] syntax-check
Hi Rich, This series includes patches to make `make syntax-check` pass. Some of the fix require change to maint.mk, but the file is not in git repo. Is it intended? Thanks! Hu Tao (13): syntax-check: dirty hack to pass bindtextdomain check syntax-check: fix error_message_period check syntax-check: fix makefile_at_at_check syntax-check: fix prohibit_assert_without_use check
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...Quick hack to block out some bad JPEG images. Fixed JPEG decoder Merge branch 'master' of git+ssh://git.freedesktop.org/git/swfdec Write better error messages for missing packages Merge branch 'master' of git+ssh://git.freedesktop.org/git/swfdec Remove gtk_init(), since it fails if it can't find an X server Merge branch 'master' of git+ssh://git.freedesktop.org/git/swfdec Merge branch 'master' of git+ssh://git.freedesktop.org/git/swfdec Merge branch 'master' of git+ssh://git.freedesktop.org/git/swfdec Co...
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
...umn); - - button = gtk_button_new_from_stock (GTK_STOCK_SAVE); - g_signal_connect (button, "clicked", G_CALLBACK (save), file); - gtk_box_pack_start (GTK_BOX (box), button, FALSE, TRUE, 0); - - gtk_widget_show_all (window); - return TRUE; -} - -int -main (int argc, char **argv) -{ - gtk_init (&argc, &argv); - - if (argc <= 1) { - g_print ("Usage: %s FILENAME\n", argv[0]); - return 1; - } - if (open_window (argv[1])) { - gtk_main (); - return 0; - } else { - return 1; - } -} - diff --git a/test/swfedit_file.c b/test/swfedit_file.c deleted file mo...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
....am +++ b/doc/Makefile.am @@ -25,7 +25,7 @@ DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sg DOC_SOURCE_DIR=../libswfdec # Extra options to pass to gtkdoc-scangobj. Not normally needed. -SCANGOBJ_OPTIONS=--type-init-func="swfdec_init()" +SCANGOBJ_OPTIONS=--type-init-func="swfdec_init(); gtk_init (NULL, NULL);" # Extra options to supply to gtkdoc-scan. # e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED" @@ -46,8 +46,8 @@ FIXXREF_OPTIONS= # Used for dependencies. The docs will be rebuilt if any of these change. # e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h # e....
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
..., filename); + vivi_application_set_variables (app, variables); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect_swapped (app, "notify::quit", G_CALLBACK (gtk_widget_destroy), window); box = vivi_vdock_new (); @@ -75,12 +76,12 @@ main (int argc, char **argv) { gtk_init (&argc, &argv); - if (argc != 2) { - g_print ("usage: %s FILE\n", argv[0]); + if (argc < 2) { + g_print ("usage: %s FILE [VARIABLES]\n", argv[0]); return 0; } - setup (argv[1]); + setup (argv[1], argc > 2 ? argv[2] : NULL); gtk_main ();...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
..., renderer, + "text", SWFEDIT_COLUMN_VALUE, "visible", SWFEDIT_COLUMN_VALUE_VISIBLE, NULL); + gtk_tree_view_column_set_resizable (column, TRUE); + gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column); + + return TRUE; +} + +int +main (int argc, char **argv) +{ + gtk_init (&argc, &argv); + + if (argc <= 1) { + g_print ("Usage: %s FILENAME\n", argv[0]); + return 1; + } + if (open_window (argv[1])) { + gtk_main (); + return 0; + } else { + return 1; + } +} + diff --git a/test/swfedit_file.c b/test/swfedit_file.c new file mode 1...
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is time to remove it from libguestfs. [1] https://github.com/libguestfs/virt-p2v [2] http://download.libguestfs.org/virt-p2v/ Pino Toscano (2): Remove virt-p2v Remove remaining virt-p2v bits .gitignore | 4 - Makefile.am | 7 +- bash/Makefile.am