search for: gtk_widget

Displaying 20 results from an estimated 25 matches for "gtk_widget".

2004 Aug 06
0
[PATCH] speex-xmms endian problems fixed
...} --- speex-xmms-0.8/config.c Sat Oct 12 08:00:44 2002 +++ speex-xmms-0.8-works/config.c Thu Apr 17 12:05:10 2003 @@ -66,7 +66,7 @@ gtk_label_set_justify(GTK_LABEL(cfg_buffer_label), GTK_JUSTIFY_LEFT); gtk_container_add(GTK_CONTAINER(cfg_buffer_label_box), GTK_WIDGET(cfg_buffer_label)); - cfg_buffer_adj = gtk_adjustment_new( ((gfloat)speex_cfg->buffersize), 0., 4096., 4., 4., 5.); + cfg_buffer_adj = GTK_WIDGET(gtk_adjustment_new( ((gfloat)speex_cfg->buffersize), 0., 4096., 4., 4., 5.)); cfg_buffer_input = gtk_spin_button_new(G...
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
...| 2 libswfdec-gtk/.gitignore | 14 libswfdec-gtk/Makefile.am | 40 + libswfdec-gtk/swfdec-gtk.h | 17 libswfdec-gtk/swfdec_gtk_player.c | 338 ++++++++++++++++ libswfdec-gtk/swfdec_gtk_player.h | 56 ++ libswfdec-gtk/swfdec_gtk_widget.c | 717 +++++++++++++++++++++++++++++++++++ libswfdec-gtk/swfdec_gtk_widget.h | 73 +++ libswfdec-gtk/swfdec_playback.h | 8 libswfdec-gtk/swfdec_playback_alsa.c | 25 - libswfdec-gtk/swfdec_playback_none.c | 4 libswfdec-gtk/swfdec_source.c | 9 libswfdec-gtk/sw...
2017 Sep 22
3
gtk3 update causing havoc
On my lab systems, the automatic updates were failing because of the problems with ipod libraries from EPEL being in the way. It turns out that was a good thing, because when I "fixed" it, a massive set of packages was updated, including the new gtk3. These packages are the ones causing problems, I think. gtk3-3.22.10-4.el7.x86_64 gtk3-devel-3.22.10-4.el7.x86_64 In the release notes,
2016 Dec 05
0
CentOS6: devhelp search misses most of GTK+ 2 API functions
Hello there, a long-standing issue I have here and that I'm decided to get rid of now: in the devhelp, most of the GTK+ functions are not found by the search tab: it will find gtk_icon fonctions but no gtk_widget or gtk_color_button, gtk_label etc. Also, it will find GtkVbox item but no gtk_vbox_new, GtkWidget but no gtk_widget function, for instance. The docs are there (gtk-doc, gtk2-devel-docs), since I can find all those API elements by browsing the GTK+ 2 Reference Manual from the Contents tab. Is thi...
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
...vivi_player.xml", &error) || + !gtk_builder_add_from_file (builder, "vivi_command_line.xml", &error)) g_error ("%s", error->message); gtk_builder_connect_signals (builder, app); @@ -83,7 +83,8 @@ setup (const char *filename, const char widget = GTK_WIDGET (gtk_builder_get_object (builder, "player")); g_object_set (widget, "application", app, NULL); vivi_vdock_add (VIVI_VDOCK (box), widget); - widget = vivi_command_line_new (app); + widget = GTK_WIDGET (gtk_builder_get_object (builder, "command-line")); + g_obje...
2012 Jan 13
0
[PATCH 1/1] Ported gnome-ssh-askpass2 to gtk3.
...ESSAGE_ERROR, + GTK_BUTTONS_CLOSE, + "Could not grab %s. " + "A malicious client may be eavesdropping " + "on your session.", what); + gtk_window_set_position(GTK_WINDOW(err), GTK_WIN_POS_CENTER); + + gtk_dialog_run(GTK_DIALOG(err)); + + gtk_widget_destroy(err); +} + +static void +ok_dialog(GtkWidget *entry, gpointer dialog) +{ + g_return_if_fail(GTK_IS_DIALOG(dialog)); + gtk_dialog_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK); +} + +static int +passphrase_dialog(char *message) +{ + const char *failed; + char *passphrase, *local; + int resul...
2009 Jun 08
2
[PATCH] few minor bugfixes
...2f3f..23af6fa 100644 --- a/main.c +++ b/main.c @@ -36,6 +36,8 @@ #include <netinet/in.h> #endif +#include <arpa/inet.h> + #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif @@ -903,37 +905,35 @@ viewer_credential (GtkWidget *vnc, GValueArray *credList) gtk_widget_destroy(GTK_WIDGET(dialog)); } -#if defined(HAVE_SOCKET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS) && defined(HAVE_GETHOSTBYNAME) +#if defined(HAVE_SOCKET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS) static int viewer_open_vnc_socket(const c...
2008 Jan 14
0
8 commits - player/swfdec-player.c player/swfdec-player.ui player/swfdec-window.c player/swfdec-window-handlers.c
...dow_new: @@ -172,6 +188,8 @@ swfdec_window_new (const char *url) return window; } gtk_builder_connect_signals (window->builder, window); + swfdec_window_add_recent_filter (GTK_RECENT_CHOOSER ( + gtk_builder_get_object (window->builder, "recent"))); window->window = GTK_WIDGET (gtk_builder_get_object (window->builder, "player-window")); if (window->window == NULL) { swfdec_window_error (window, _("Broken user interface definition file")); commit 3303418faa1ae48a5401b799a2a4ef44c6620b77 Author: Benjamin Otte <otte at gnome.org> Date...
2009 Jun 01
2
[PATCH viewer] few minor bugfixes
...2f3f..222a9fd 100644 --- a/main.c +++ b/main.c @@ -36,6 +36,8 @@ #include <netinet/in.h> #endif +#include <arpa/inet.h> + #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif @@ -903,13 +905,12 @@ viewer_credential (GtkWidget *vnc, GValueArray *credList) gtk_widget_destroy(GTK_WIDGET(dialog)); } -#if defined(HAVE_SOCKET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS) && defined(HAVE_GETHOSTBYNAME) +#if defined(HAVE_SOCKET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS) static int viewer_open_vnc_socket(const c...
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
...gtk_builder_connect_signals (builder, app); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_window_set_default_size (GTK_WINDOW (window), 400, 450); + gtk_window_set_default_size (GTK_WINDOW (window), 600, 450); g_signal_connect_swapped (app, "notify::quit", G_CALLBACK (gtk_widget_destroy), window); g_signal_connect (app, "notify::filename", G_CALLBACK (set_title), window); set_title (app, NULL, GTK_WINDOW (window)); + paned = gtk_hpaned_new (); + gtk_paned_set_position (GTK_PANED (paned), 200); + gtk_container_add (GTK_CONTAINER (window), paned); + box...
2008 Jan 14
0
player/swfdec-player.ui player/swfdec-window.c player/swfdec-window.h
...+ /* Translators: This is used to markup error message. */ + markup = g_strdup_printf ("<b>%s</b>", msg); + gtk_label_set_label (GTK_LABEL (gtk_builder_get_object (window->builder, + "player-error-label")), markup); + g_free (markup); + g_free (msg); + + gtk_widget_show (GTK_WIDGET (gtk_builder_get_object (window->builder, + "player-error-area"))); } static void diff --git a/player/swfdec-window.h b/player/swfdec-window.h index 7f300c9..5d84b06 100644 --- a/player/swfdec-window.h +++ b/player/swfdec-window.h @@ -64,7 +64,8 @@ SwfdecWindow...
2013 Oct 11
3
VNC
I'm trying to set up a VNC server using the instructions at http://www.techrepublic.com/blog/linux-and-open-source/linux-101-easy-vnc-server-setup/ . I am up to step 6: Step 6: Edit iptables In order for the VNC connections to get through, you must allow them with iptables. To do this, open up the file /etc/sysconfig/iptables and add the line: -A INPUT -m state --state NEW -m tcp -p tcp -m
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 |
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 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
...widget.h" -#include "swfdec_player_manager.h" -#ifdef CAIRO_HAS_SVG_SURFACE -#include <cairo-svg.h> - -static void -save_to_svg (GtkWidget *button, SwfdecPlayer *player) -{ - GtkWidget *dialog = gtk_file_chooser_dialog_new ("Save current frame as", - GTK_WINDOW (gtk_widget_get_toplevel (button)), GTK_FILE_CHOOSER_ACTION_SAVE, - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); - - if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) { - int w, h; - cairo_t *cr; - cairo_surface_t *surface; - - swfd...
2007 Nov 15
0
9 commits - data/Makefile.am player/swfdec-player.ui player/swfdec-window.c po/fr.po po/POTFILES.in po/POTFILES.skip thumbnailer/Makefile.am
...Typo diff --git a/player/swfdec-window.c b/player/swfdec-window.c index 4de20c3..a623352 100644 --- a/player/swfdec-window.c +++ b/player/swfdec-window.c @@ -162,7 +162,7 @@ swfdec_window_new (const char *url) gtk_builder_connect_signals (window->builder, window); window->window = GTK_WIDGET (gtk_builder_get_object (window->builder, "player-window")); if (window->window == NULL) { - swfdec_window_error (window, _("Internal error in the user interface defintion")); + swfdec_window_error (window, _("Internal error in the user interface definition&q...
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
...| 2 configure.ac | 27 + doc/swfdec-sections.txt | 3 libswfdec-gtk/swfdec_gtk_player.c | 7 libswfdec-gtk/swfdec_gtk_player.h | 2 libswfdec-gtk/swfdec_gtk_widget.c | 2 libswfdec-gtk/swfdec_source.c | 4 libswfdec/Makefile.am | 11 libswfdec/swfdec.h | 4 libswfdec/swfdec_as_array.c | 21 - libswfdec/swfdec_as_array.h...
2007 Aug 09
0
Branch 'vivi' - 6 commits - configure.ac vivified/core vivified/dock vivified/Makefile.am vivified/ui
...100644 --- a/vivified/dock/vivi_docklet.c +++ b/vivified/dock/vivi_docklet.c @@ -81,9 +81,34 @@ vivi_docklet_dispose (GObject *object) } static void +vivi_docklet_size_request (GtkWidget *widget, GtkRequisition *req) +{ + GtkWidget *child = GTK_BIN (widget)->child; + + if (child) { + gtk_widget_size_request (child, req); + } else { + req->width = req->height = 0; + } +} + +static void +vivi_docklet_size_allocate (GtkWidget *widget, GtkAllocation *allocation) +{ + GtkWidget *child = GTK_BIN (widget)->child; + + GTK_WIDGET_CLASS (vivi_docklet_parent_class)->size_allocat...
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
...dget diff --git a/vivified/ui/main.c b/vivified/ui/main.c index 590d785..4a2093c 100644 --- a/vivified/ui/main.c +++ b/vivified/ui/main.c @@ -29,6 +29,15 @@ #include "vivi_player.h" static void +try_grab_focus (GtkWidget *widget, gpointer unused) +{ + if (GTK_IS_ENTRY (widget)) + gtk_widget_grab_focus (widget); + else if (GTK_IS_CONTAINER (widget)) + gtk_container_foreach (GTK_CONTAINER (widget), try_grab_focus, NULL); +} + +static void setup (const char *filename) { GtkWidget *window, *box, *widget; @@ -42,6 +51,7 @@ setup (const char *filename) gtk_container_add (GTK_CON...
2007 Aug 09
0
Branch 'vivi' - 12 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/Makefile.am libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_debugger.c
..."left-margin", 15, NULL); + gtk_container_add (GTK_CONTAINER (scroll), cl->view); - entry = gtk_entry_new (); - gtk_container_add (GTK_CONTAINER (command_line), entry); - g_signal_connect (entry, "activate", G_CALLBACK (command_line_entry_activate_cb), command_line); + gtk_widget_show_all (box); } GtkWidget * vivi_command_line_new (ViviApplication *app) { - GtkWidget *cl; + ViviCommandLine *cl; cl = g_object_new (VIVI_TYPE_COMMAND_LINE, "title", "Command Line", NULL); - return cl; + cl->app = app; + g_signal_connect (cl->app, "...