Module: Gtk

Extended by:
GLib::Deprecatable
Defined in:
lib/gtk4/box.rb,
lib/gtk4.rb,
lib/gtk4/entry.rb,
lib/gtk4/image.rb,
lib/gtk4/label.rb,
lib/gtk4/paned.rb,
lib/gtk4/stack.rb,
lib/gtk4/border.rb,
lib/gtk4/button.rb,
lib/gtk4/dialog.rb,
lib/gtk4/loader.rb,
lib/gtk4/widget.rb,
lib/gtk4/builder.rb,
lib/gtk4/version.rb,
lib/gtk4/show-uri.rb,
lib/gtk4/text-tag.rb,
lib/gtk4/combo-box.rb,
lib/gtk4/icon-view.rb,
lib/gtk4/level-bar.rb,
lib/gtk4/text-iter.rb,
lib/gtk4/text-view.rb,
lib/gtk4/tree-iter.rb,
lib/gtk4/tree-path.rb,
lib/gtk4/tree-view.rb,
lib/gtk4/deprecated.rb,
lib/gtk4/icon-theme.rb,
lib/gtk4/list-store.rb,
lib/gtk4/search-bar.rb,
lib/gtk4/tree-model.rb,
lib/gtk4/tree-store.rb,
lib/gtk4/application.rb,
lib/gtk4/binding-set.rb,
lib/gtk4/cell-layout.rb,
lib/gtk4/spin-button.rb,
lib/gtk4/text-buffer.rb,
lib/gtk4/about-dialog.rb,
lib/gtk4/css-provider.rb,
lib/gtk4/entry-buffer.rb,
lib/gtk4/scale-button.rb,
lib/gtk4/response-type.rb,
lib/gtk4/style-context.rb,
lib/gtk4/toggle-button.rb,
lib/gtk4/tree-sortable.rb,
lib/gtk4/combo-box-text.rb,
lib/gtk4/message-dialog.rb,
lib/gtk4/text-tag-table.rb,
lib/gtk4/tree-selection.rb,
lib/gtk4/scrolled-window.rb,
lib/gtk4/tree-model-sort.rb,
lib/gtk4/tree-view-column.rb,
lib/gtk4/tree-model-filter.rb,
lib/gtk4/ruby-builder-scope.rb,
lib/gtk4/file-chooser-dialog.rb,
lib/gtk4/font-chooser-dialog.rb,
lib/gtk4/gesture-multi-press.rb,
lib/gtk4/color-chooser-dialog.rb

Overview

Copyright © 2015 Ruby-GNOME2 Project Team

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Defined Under Namespace

Modules: CellLayout, Drag, FileChooser, TreeModel, TreeSortable, Version Classes: AboutDialog, Alignment, Application, Assistant, BindingSet, Border, Box, Builder, Button, Calendar, CellRenderer, CellRendererAccel, CellView, CheckMenuItem, ColorChooserDialog, ComboBox, ComboBoxText, Container, CssProvider, Dialog, Entry, EntryBuffer, Error, FileChooserDialog, FileFilter, FontChooserDialog, GestureMultiPress, HBox, HButtonBox, HPaned, HScale, HScrollbar, HSeparator, HeaderBar, IconSet, IconSize, IconTheme, IconView, Image, ImageMenuItem, InitError, Label, LevelBar, LinkButton, ListStore, Loader, MessageDialog, Notebook, Paned, PaperSize, PrintOperation, PrintSettings, ProgressBar, Range, RecentAction, RecentManager, ResponseType, Revealer, RubyBuilderScope, ScaleButton, ScrolledWindow, SearchBar, SelectionData, SizeGroup, SpinButton, Stack, StyleContext, StypeContext, TextAttributes, TextBuffer, TextIter, TextTag, TextTagTable, TextView, ToggleButton, Toolbar, Tooltip, TreeIter, TreeModelFilter, TreeModelSort, TreePath, TreeSelection, TreeStore, TreeView, TreeViewColumn, VBox, VButtonBox, VPaned, VScale, VScrollbar, VSeparator, Widget, Window

Constant Summary collapse

LOG_DOMAIN =
"Gtk"

Class Method Summary collapse

Class Method Details

.show_uri(uri_or_options) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/gtk4/show-uri.rb', line 20

def show_uri(uri_or_options)
  if uri_or_options.is_a?(String)
    options = {:uri => uri_or_options}
  else
    options = uri_or_options
  end

  screen    = options[:screen]
  uri       = options[:uri]
  timestamp = options[:timestamp] || Gdk::CURRENT_TIME

  show_uri_raw(screen, uri, timestamp)
end

.show_uri_rawObject



19
# File 'lib/gtk4/show-uri.rb', line 19

alias_method :show_uri_raw, :show_uri