id stringlengths 2 7 | text stringlengths 17 51.2k | title stringclasses 1 value |
|---|---|---|
c169400 | if err := client.SetReadDeadline(time.Now().Add(wsRWTimeout)); err != nil {
seelog.Warnf("Unable to extend read deadline for TCS connection: %v", err)
}
}
} | |
c169401 | {
tcsURL += "/"
}
query := url.Values{}
query.Set("cluster", cluster)
query.Set("containerInstance", containerInstance)
return tcsURL + "ws?" + query.Encode()
} | |
c169402 | }
p := unsafe.Pointer(v.GObject)
return C.toGtkStackSwitcher(p)
} | |
c169403 |
p := unsafe.Pointer(v.GObject)
return C.toGtkComboBox(p)
} | |
c169404 | }
p := unsafe.Pointer(v.GObject)
return C.toGtkComboBoxText(p)
} | |
c169405 | }
p := unsafe.Pointer(v.GObject)
return C.toGtkAppChooser(p)
} | |
c169406 | v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkAppChooserWidget(p)
} | |
c169407 | return nil
}
return v.format
} | |
c169408 |
p := unsafe.Pointer(v.GObject)
return C.toGtkAlignment(p)
} | |
c169409 |
p := unsafe.Pointer(v.GObject)
return C.toGtkMisc(p)
} | |
c169410 |
return nil
}
p := unsafe.Pointer(v.Window.GObject)
return C.toGtkApplicationWindow(p)
} | |
c169411 | C.GoString((*C.char)(C.g_variant_get_type_string(v.native())))
} | |
c169412 | &len)
defer C.g_free(C.gpointer(gc))
return C.GoStringN((*C.char)(gc), (C.int)(len))
} | |
c169413 |
var strs []string
for *c != nil {
strs = append(strs, C.GoString((*C.char)(*c)))
c = C.next_gcharptr(c)
}
return strs
} | |
c169414 | {
return gobool(C.g_variant_is_of_type(v.native(), t.native()))
} | |
c169415 | }
p := unsafe.Pointer(v.GObject)
return C.toGdkFrameClock(p)
} | |
c169416 | }
p := unsafe.Pointer(v.GObject)
return C.toGdkFrameTimings(p)
} | |
c169417 |
p := unsafe.Pointer(v.GObject)
return C.toGdkMonitor(p)
} | |
c169418 |
p := unsafe.Pointer(v.GObject)
return C.toGdkScreen(p)
} | |
c169419 |
p := unsafe.Pointer(v.GVariantBuilder)
return C.toGVariantBuilder(p)
} | |
c169420 | str = strings.Replace(str, "_", " ", 0)
return strings.ToLower(str)
} | |
c169421 | {
return nil
}
return errors.New(s.String())
} | |
c169422 |
p := unsafe.Pointer(v.GObject)
return C.toGtkLevelBar(p)
} | |
c169423 | }
p := unsafe.Pointer(v.GObject)
return C.toGtkAccelGroup(p)
} | |
c169424 |
p := unsafe.Pointer(v.GObject)
return C.toGtkAccelMap(p)
} | |
c169425 | {
return unsafe.Pointer(v.native().data)
} | |
c169426 | return nil
}
return v.context
} | |
c169427 |
p := unsafe.Pointer(v.GObject)
return C.toGtkTextView(p)
} | |
c169428 | C.g_free(C.gpointer(ch))
return C.GoString((*C.char)(ch))
} | |
c169429 |
}
return C.toGtkApplication(unsafe.Pointer(v.GObject))
} | |
c169430 |
p := unsafe.Pointer(v.GObject)
return C.toGtkMenuShell(p)
} | |
c169431 | }
p := unsafe.Pointer(v.GObject)
return C.toGtkStyleContext(p)
} | |
c169432 | Yx: yx,
Xy: xy,
Yy: yy,
X0: x0,
Y0: y0,
}
} | |
c169433 | {
return (*C.cairo_matrix_t)(unsafe.Pointer(m))
} | |
c169434 |
C.cairo_matrix_init_translate(m.native(), C.double(tx), C.double(ty))
} | |
c169435 | C.cairo_matrix_init_scale(m.native(), C.double(sx), C.double(sy))
} | |
c169436 | C.cairo_matrix_init_rotate(m.native(), C.double(radians))
} | |
c169437 |
C.cairo_matrix_translate(m.native(), C.double(tx), C.double(ty))
} | |
c169438 | C.cairo_matrix_scale(m.native(), C.double(sx), C.double(sy))
} | |
c169439 | C.cairo_matrix_rotate(m.native(), C.double(radians))
} | |
c169440 | C.cairo_matrix_multiply(m.native(), a.native(), b.native())
} | |
c169441 | return nil
}
return ps.GtkPaperSize
} | |
c169442 |
p := unsafe.Pointer(v.GObject)
return C.toGdkGLContext(p)
} | |
c169443 |
p := unsafe.Pointer(v.GObject)
return C.toGtkButtonBox(p)
} | |
c169444 | return nil
}
return (*C.GtkTextIter)(v)
} | |
c169445 | return nil
}
return (*C.GMainContext)(v)
} | |
c169446 |
}
p := unsafe.Pointer(v.GObject)
return C.toGtkTreeViewColumn(p)
} | |
c169447 |
p := unsafe.Pointer(v.GVariantIter)
return C.toGVariantIter(p)
} | |
c169448 | nil
}
return wrapSList(n.next)
} | |
c169449 | (*C.gchar)(C.CString(actionName)))
if c == nil {
return nil
}
return wrapAction(wrapObject(unsafe.Pointer(c)))
} | |
c169450 | C.g_action_map_add_action(v.native(), action.toGAction())
} | |
c169451 |
C.g_action_map_remove_action(v.native(), (*C.gchar)(C.CString(actionName)))
} | |
c169452 | return nil
}
return v.surface
} | |
c169453 |
runtime.SetFinalizer(surface, (*Surface).destroy)
return surface
} | |
c169454 | }
p := unsafe.Pointer(v.GObject)
return C.toGtkAboutDialog(p)
} | |
c169455 | .uchar)(unsafe.Pointer(C.CString(fontPath)))
C.addFont(path)
} | |
c169456 |
p := unsafe.Pointer(v.GObject)
return C.toGtkLabel(p)
} | |
c169457 |
p := unsafe.Pointer(v.GVariantDict)
return C.toGVariantDict(p)
} | |
c169458 | }
p := unsafe.Pointer(v.GObject)
return C.toGtkActionable(p)
} | |
c169459 |
p := unsafe.Pointer(v.GObject)
return C.toGtkHeaderBar(p)
} | |
c169460 |
p := unsafe.Pointer(v.GObject)
return C.toGtkListBox(p)
} | |
c169461 | }
p := unsafe.Pointer(v.GObject)
return C.toGtkListBoxRow(p)
} | |
c169462 |
p := unsafe.Pointer(v.GObject)
return C.toGtkRevealer(p)
} | |
c169463 |
p := unsafe.Pointer(v.GObject)
return C.toGtkSearchBar(p)
} | |
c169464 | := C.g_object_bind_property(
C.gpointer(source.GObject), srcStr,
C.gpointer(target.GObject), tgtStr,
C.GBindingFlags(flags),
)
if obj == nil {
return nil
}
return &Binding{wrapObject(unsafe.Pointer(obj))}
} | |
c169465 | nil
}
return wrapObject(unsafe.Pointer(obj))
} | |
c169466 | nil
}
return wrapObject(unsafe.Pointer(obj))
} | |
c169467 | := C.g_binding_get_flags(v.native())
return BindingFlags(flags)
} | |
c169468 | }
p := unsafe.Pointer(v.GObject)
return C.toGtkFontChooser(p)
} | |
c169469 | }
p := unsafe.Pointer(v.GObject)
return C.toGtkFontButton(p)
} | |
c169470 | C.g_action_group_change_action_state(v.native(), (*C.gchar)(C.CString(actionName)), value.native())
} | |
c169471 | {
C.g_action_group_activate_action(v.native(), (*C.gchar)(C.CString(actionName)), parameter.native())
} | |
c169472 |
p := unsafe.Pointer(v.GObject)
return C.toGtkWidget(p)
} | |
c169473 | {
return (*C.GtkAllocation)(unsafe.Pointer(&v.GdkRectangle))
} | |
c169474 |
p := unsafe.Pointer(v.GObject)
return C.toGtkGLArea(p)
} | |
c169475 |
p := unsafe.Pointer(v.GObject)
return C.toGtkTreeView(p)
} | |
c169476 | (C.GtkTreeViewSearchEqualFunc)(unsafe.Pointer(C.substring_match_equal_func)),
nil,
nil)
} | |
c169477 | innerVal, err := objVal.goValue()
if err != nil {
// print warning and leave val unchanged to preserve old
// behavior
fmt.Fprintf(os.Stderr,
"warning: no suitable Go value from object for arg %d: %v\n", i, err)
} else {
val = innerVal
}
}
rv := reflect.ValueOf(val)
args = append(args, rv.Convert(cc.rf.Type().In(i)))
}
// If non-nil user data was passed in and not all args have been set,
// get and set the reflect.Value directly from the GValue.
if cc.userData.IsValid() && len(args) < cap(args) {
args = append(args, cc.userData.Convert(cc.rf.Type().In(nCbParams-1)))
}
// Call closure with args. If the callback returns one or more
// values, save the GValue equivalent of the first.
rv := cc.rf.Call(args)
if retValue != nil && len(rv) > 0 {
if g, err := GValue(rv[0].Interface()); err != nil {
fmt.Fprintf(os.Stderr,
"cannot save callback return value: %v", err)
} else {
*retValue = *g.native()
}
}
} | |
c169478 |
header.Len = nValues
header.Data = uintptr(unsafe.Pointer(values))
return
} | |
c169479 | source func to be added to the main loop context.
idleSrc := C.g_idle_source_new()
if idleSrc == nil {
return 0, errNilPtr
}
return sourceAttach(idleSrc, rf, args...)
} | |
c169480 | source func to be added to the main loop context.
timeoutSrc := C.g_timeout_source_new(C.guint(timeout))
if timeoutSrc == nil {
return 0, errNilPtr
}
return sourceAttach(timeoutSrc, rf, args...)
} | |
c169481 | closure context when closure is finalized.
C._g_closure_add_finalize_notifier(closure)
// Set closure to run as a callback when the idle source runs.
C.g_source_set_closure(src, closure)
// Attach the idle source func to the default main event loop
// context.
cid := C.g_source_attach(src, nil)
return SourceHandle(cid), nil
} | |
c169482 |
p := unsafe.Pointer(v.GObject)
return C.toGObject(p)
} | |
c169483 |
obj.Ref()
}
runtime.SetFinalizer(obj, (*Object).Unref)
return obj
} | |
c169484 | (*C.gchar)(cstr))
if paramSpec == nil {
return TYPE_INVALID, errors.New("couldn't find Property")
}
return Type(paramSpec.value_type), nil
} | |
c169485 | v.Object == nil {
return uintptr(unsafe.Pointer(nil))
}
return v.Object.Native()
} | |
c169486 |
dirStr := C.CString(dir)
defer C.free(unsafe.Pointer(dirStr))
C.init_i18n(domainStr, dirStr)
} | |
c169487 | C.free(unsafe.Pointer(cstr))
return C.GoString(C.localize(cstr))
} | |
c169488 |
}
p := unsafe.Pointer(v.GObject)
return C.toGtkShortcutsSection(p)
} | |
c169489 |
}
p := unsafe.Pointer(v.GObject)
return C.toGtkShortcutsGroup(p)
} | |
c169490 |
}
p := unsafe.Pointer(v.GObject)
return C.toGtkShortcutsShortcut(p)
} | |
c169491 | nil
}
return wrapSimpleActionGroup(wrapObject(unsafe.Pointer(c)))
} | |
c169492 | return gobool(C.g_action_name_is_valid(cstr))
} | |
c169493 | C.GoString((*C.char)(C.g_action_get_name(v.native())))
} | |
c169494 | nil
}
return newVariant((*C.GVariant)(c))
} | |
c169495 |
if c == nil {
return nil
}
return newVariant((*C.GVariant)(c))
} | |
c169496 | nil
}
return newVariantType((*C.GVariantType)(c))
} | |
c169497 | nil
}
return newVariantType((*C.GVariantType)(c))
} | |
c169498 | C.g_action_change_state(v.native(), value.native())
} | |
c169499 | C.g_action_activate(v.native(), parameter.native())
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.