pike.git / src / post_modules / GTK2 / source / gtkcolorselection.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkcolorselection.pre:65:   //! received a "color_changed" signal, you use this function. The   //! return value is an array of floats, See the set_color() function   //! for the description of this array.   {    pgtk2_verify_inited();    {    GdkColor color;    gtk_color_selection_get_current_color(GTK_COLOR_SELECTION(THIS->obj),    &color);    pgtk2_pop_n_elems(args); -  push_text("pixel"); push_int(color.pixel); -  push_text("red"); push_int(color.red); -  push_text("green"); push_int(color.green); -  push_text("blue"); push_int(color.blue); +  push_static_text("pixel"); push_int(color.pixel); +  push_static_text("red"); push_int(color.red); +  push_static_text("green"); push_int(color.green); +  push_static_text("blue"); push_int(color.blue);    f_aggregate_mapping(8);    }   }      void set_current_color(mapping(string:int) color)   //! You can set the current color explicitly by calling this function   //! with an array of colors (floats). The length of the array depends   //! on whether opacity is enabled or not. Position 0 contains the red   //! component, 1 is green, 2 is blue and opacity is at position 3 (only   //! if opacity is enabled, see set_opacity()) All values are between   //! 0 and 65535   {    pgtk2_verify_inited();    {    struct svalue *sv;    struct mapping *m;    GdkColor color; -  get_all_args("set_current_color",args,"%m",&m); +  get_all_args(NULL,args,"%m",&m);    sv=low_mapping_string_lookup(m,_STR("pixel"));    if (sv)    color.pixel=(guint32)PGTK_GETINT(sv);    sv=low_mapping_string_lookup(m,_STR("red"));    if (sv)    color.red=(guint16)PGTK_GETINT(sv);    sv=low_mapping_string_lookup(m,_STR("green"));    if (sv)    color.green=(guint16)PGTK_GETINT(sv);    sv=low_mapping_string_lookup(m,_STR("blue"));
pike.git/src/post_modules/GTK2/source/gtkcolorselection.pre:138:   }      void set_previous_color(mapping(string:int) colors)   //! Sets the 'previous' color to be color.   {    pgtk2_verify_inited();    {    struct mapping *m;    struct svalue *sv;    GdkColor color; -  get_all_args("set_previous_color",args,"%m",&m); +  get_all_args(NULL,args,"%m",&m);    sv=low_mapping_string_lookup(m,_STR("pixel"));    if (sv)    color.pixel=(guint32)PGTK_GETINT(sv);    sv=low_mapping_string_lookup(m,_STR("red"));    if (sv)    color.red=(guint16)PGTK_GETINT(sv);    sv=low_mapping_string_lookup(m,_STR("green"));    if (sv)    color.green=(guint16)PGTK_GETINT(sv);    sv=low_mapping_string_lookup(m,_STR("blue"));