search for: set_title

Displaying 18 results from an estimated 18 matches for "set_title".

2007 Aug 16
1
Branch 'vivi' - vivified/ui
...e at gnome.org> Date: Thu Aug 16 21:42:39 2007 +0200 Set the title correctly diff --git a/vivified/ui/main.c b/vivified/ui/main.c index df123a9..13d03ab 100644 --- a/vivified/ui/main.c +++ b/vivified/ui/main.c @@ -48,6 +48,16 @@ delete_event (GtkWidget *widget, GdkEven } static void +set_title (ViviApplication *app, GParamSpec *pspec, GtkWindow *window) +{ + const char *filename = vivi_application_get_filename (app); + + if (filename == NULL) + filename = "Vivified"; + gtk_window_set_title (window, filename); +} + +static void setup (const char *filename, const char *var...
2007 Aug 24
2
SURVEY: wxRuby API style
...9;'d like to know if you''d like to see two wxSugar syntax features become part of core, standard wxRuby version 2.0. These are: 1) Allow ruby-style accessors as well as C++ style getters/setters. This means you can write frame.title = ''my frame'' # as well as frame.set_title(''my frame'') or frame.title # as well as frame.get_title 2) Allow keyword constructors for window classes. This means you can write frame = Wx::Frame.new(parent, :title => ''foo'', :style => Wx::DEFAULT_FRAME_STYLE) as well as frame = Wx::Frame.new(parent,...
2007 Mar 18
0
[894] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Document changed Window methods in 2.6 -> 2.8 API
..."Window#set_size_hints":#Window_setsizehints </span><span class="cx"> * "Window#set_sizer":#Window_setsizer </span><span class="cx"> * "Window#set_sizer_and_fit":#Window_setsizerandfit </span><del>-* "Window#set_title":#Window_settitle </del><span class="cx"> * "Window#set_theme_enabled":#Window_setthemeenabled </span><span class="cx"> * "Window#set_tool_tip":#Window_settooltip </span><span class="cx"> * "Window#set_v...
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_object.c NEWS player/swfplay.c
...g_signal_connect (player, "trace", G_CALLBACK (print_trace), NULL); + swfdec_gtk_player_set_speed (SWFDEC_GTK_PLAYER (player), speed / 100.); + + if (no_sound) + swfdec_gtk_player_set_audio_enabled (SWFDEC_GTK_PLAYER (player), FALSE); + + window = view_swf (player, use_image); + set_title (GTK_WINDOW (window), argv[1]); + + if (!no_scripts) + g_signal_connect (player, "fscommand", G_CALLBACK (do_fscommand), window); if (delay) loader = swfdec_slow_loader_new (loader, delay); swfdec_player_set_loader_with_variables (player, loader, variables); - if...
2007 Aug 17
0
Branch 'vivi' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c test/trace vivified/core vivified/ui
...pp, variables); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); + gtk_window_set_default_size (GTK_WINDOW (window), 400, 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)); diff-tree 6878ba31199421d00813814f6822b3d30e2e3884 (from f781524c4f4ad87e3e277417b6e29df6d9d1a7a5) Author: Benjamin Otte <otte at gnome.org> Date: Fri Aug 17 17:35:07 2007 +0200 add test for registers diff --git a/test/trace/Ma...
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
...d_LDADD = \ vivified_SOURCES = \ vivi_command_line.c \ vivi_movie_list.c \ + vivi_movies.c \ vivi_player.c \ vivi_vivi_docklet.c \ main.c diff --git a/vivified/ui/main.c b/vivified/ui/main.c index 8ca2e4b..f497e32 100644 --- a/vivified/ui/main.c +++ b/vivified/ui/main.c @@ -58,7 +58,7 @@ set_title (ViviApplication *app, GParamS static void setup (const char *filename, const char *variables) { - GtkWidget *window, *box, *widget; + GtkWidget *window, *box, *paned, *widget; ViviApplication *app; GtkBuilder *builder; GError *error = NULL; @@ -69,17 +69,22 @@ setup (const char *file...
2007 Mar 23
0
[918] branches/wxruby2/wxwidgets_282/samples/aui/aui.rb: Fix a couple of little bugs and typos
...;<span class="lines">@@ -226,35 +226,36 @@ </span><span class="cx"> </span><span class="cx"> def on_set_colour(event) </span><span class="cx"> dlg = Wx::ColourDialog.new(@frame) </span><del>- dlg.set_title("Cololur Picker") </del><ins>+ dlg.set_title("Colour Picker") </ins><span class="cx"> </span><span class="cx"> return unless dlg.show_modal == Wx::ID_OK </span><span class="cx"> </span&...
2011 Feb 11
0
Hbar color - openflash chart
...this is the code i have inside my controller def stat_bar title = Title.new(session[:tag]) hbar = HBar.new hbar.values = [HBarValue.new(0,10),HBarValue.new(0,20)] hbar.colour = ''#FF8000'' # this works for the two bars chart = OpenFlashChart.new chart.set_title(title) chart.add_element(hbar) x = XAxis.new x.set_offset(false) chart.set_x_axis(x) y = YAxis.new y.set_offset(true) y.set_labels(["Yes","No"]) chart.set_y_axis(y) render :text => chart.to_s end Please help !! -- Posted via http:/...
2007 Aug 24
0
2 commits - player/swfplay.c
...Fri Aug 24 15:23:39 2007 +0200 really make quit work diff --git a/player/swfplay.c b/player/swfplay.c index 7521acf..0c2ff6b 100644 --- a/player/swfplay.c +++ b/player/swfplay.c @@ -31,6 +31,8 @@ #include "swfdec_slow_loader.h" +static GMainLoop *loop = NULL; + static void set_title (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) { -...
2007 Apr 30
0
[996] branches/wxruby2/wxwidgets_282: TopLevelWindow: add some 2.8 methods; document; add missing CentreOnScreen
...</ins><span class="cx"> * "TopLevelWindow#set_right_menu":#TopLevelWindow_setrightmenu </span><span class="cx"> * "TopLevelWindow#set_shape":#TopLevelWindow_setshape </span><span class="cx"> * "TopLevelWindow#set_title":#TopLevelWindow_settitle </span><ins>+* "TopLevelWindow#set_transparent":#TopLevelWindow_settransparent +* "TopLevelWindow#should_prevent_app_exit":#TopLevelWindow_shouldpreventappexit </ins><span class="cx"> * "TopLevelWindow#show_fu...
2006 Sep 11
15
ruby method names
Hi Attached is a patch that adds aliases to the API for methods that look like attribute accessors. So a_frame.set_title(''The title'') # currently a_frame.title = ''The title'' # now an alternative textctrl.get_value # currently textctrl.value # now an alternative Also, C++ methods named ''IsXXX'' are now exposed in ruby with the alternative name ...
2004 Jan 08
3
pictorG
...D_OK } evt_menu(ID_EXIT) {close TRUE } evt_menu(ID_ABOUT) {message_box "pictorG - PICTure ORganizer by Gregory\n?Gergely Kontra","About pictorG",OK|ICON_INFORMATION} #show_pics end def root_dir= (dir) @config.write("/rootdir",@root_dir=dir) set_title @title +'' - Browsing in ''+@root_dir end def show_pics return message_box("Set root directory first!") unless @root_dir list=[] log = Thread.new { while 1 log_status "Collecting files (#{list.last})" sleep 0.5 end...
2007 Mar 29
0
[926] branches/wxruby2/wxwidgets_282: Update Dialog wx2.6 -> wx2.8 API, remove deprecations and cruft, update doc
..."> * "Dialog#set_icons":#Dialog_seticons </span><span class="cx"> * "Dialog#set_modal":#Dialog_setmodal </span><span class="cx"> * "Dialog#set_return_code":#Dialog_setreturncode </span><del>-* "Dialog#set_title":#Dialog_settitle </del><span class="cx"> * "Dialog#show":#Dialog_show </span><span class="cx"> * "Dialog#show_modal":#Dialog_showmodal </span><span class="cx"> </span><span class="cx">...
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
...d_LDADD = \ vivified_SOURCES = \ vivi_command_line.c \ vivi_movie_list.c \ + vivi_movies.c \ vivi_player.c \ vivi_vivi_docklet.c \ main.c diff --git a/vivified/ui/main.c b/vivified/ui/main.c index 8ca2e4b..f497e32 100644 --- a/vivified/ui/main.c +++ b/vivified/ui/main.c @@ -58,7 +58,7 @@ set_title (ViviApplication *app, GParamS static void setup (const char *filename, const char *variables) { - GtkWidget *window, *box, *widget; + GtkWidget *window, *box, *paned, *widget; ViviApplication *app; GtkBuilder *builder; GError *error = NULL; @@ -69,17 +69,22 @@ setup (const char *file...
2008 Feb 17
15
A bug in wxRuby. Segmentation fault in random situations.
Hello, I wrote an application in wxRuby: ruby 1.8.6 wxruby 1.9.4 installed from gem windows xp sp2 After several minutes of running it crashes with the following error: "c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: [BUG] Segmentation fault ruby 1.8.6 (2007-03-13) [i386-mswin32] This application has requested the Runtime to terminate it in an unusual way. Please contact
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
...ls (builder, NULL); + window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size (GTK_WINDOW (window), 400, 450); g_signal_connect_swapped (app, "notify::quit", G_CALLBACK (gtk_widget_destroy), window); @@ -73,7 +80,8 @@ setup (const char *filename, const char set_title (app, NULL, GTK_WINDOW (window)); box = vivi_vdock_new (); gtk_container_add (GTK_CONTAINER (window), box); - widget = vivi_player_new (app); + widget = GTK_WIDGET (gtk_builder_get_object (builder, "player")); + g_object_set (widget, "application", app, NULL); vivi_v...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...on ) + @frame.do_update + end + + def on_caption_size(event) + @frame.get_dock_art.set_metric( Wx::AUI_DOCKART_CAPTION_SIZE, + event.get_position ) + @frame.do_update + end + + def on_set_colour(event) + dlg = Wx::ColourDialog.new(@frame) + dlg.set_title("Cololur Picker") + + return unless dlg.show_modal == Wx::ID_OK + + var = nil + case event.get_id() + when ID_BackgroundColor + var = Wx::AUI_DOCKART_BACKGROUND_COLOUR + when ID_SashColor + var = Wx::AUI_DOCKART_SASH_COLOUR + when ID_InactiveCaptionColor +...
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
...swfdec.h> -#include <libswfdec-gtk/swfdec_playback.h> -#include <libswfdec-gtk/swfdec_source.h> -#include <libswfdec-gtk/swfdec_gtk_widget.h> +#include <libswfdec-gtk/swfdec-gtk.h> #include "swfdec_slow_loader.h" -static gpointer playback; - static void set_title (GtkWindow *window, const char *filename) { @@ -61,20 +57,6 @@ view_swf (SwfdecPlayer *player, double s } static void -play_swf (SwfdecPlayer *player, double speed) -{ - GSource *source; - - source = swfdec_iterate_source_new (player, speed); - g_source_attach (source, NULL); - - gtk_main...