Exemplo n.º 1
0
/**
 * udisks_client_get_drive_info:
 * @client: A #UDisksClient.
 * @drive: A #UDisksDrive.
 * @out_name: (out) (allow-none): Return location for name or %NULL.
 * @out_description: (out) (allow-none): Return location for description or %NULL.
 * @out_drive_icon: (out) (allow-none): Return location for icon representing the drive or %NULL.
 * @out_media_description: (out) (allow-none): Return location for description of the media or %NULL.
 * @out_media_icon: (out) (allow-none): Return location for icon representing the media or %NULL.
 *
 * Gets information about a #UDisksDrive object that is suitable to
 * present in an user interface. The returned strings are localized.
 *
 * Deprecated: 2.1: Use udisks_client_get_object_info() instead.
 */
void
udisks_client_get_drive_info (UDisksClient  *client,
                              UDisksDrive   *drive,
                              gchar        **out_name,
                              gchar        **out_description,
                              GIcon        **out_icon,
                              gchar        **out_media_description,
                              GIcon        **out_media_icon)
{
  UDisksObjectInfo *info;

  g_return_if_fail (UDISKS_IS_CLIENT (client));
  g_return_if_fail (UDISKS_IS_DRIVE (drive));

  info = udisks_object_info_new (NULL);
  udisks_client_get_object_info_for_drive (client, drive, NULL, info);

  if (out_name != NULL)
    *out_name = g_strdup (info->name);

  if (out_description != NULL)
    *out_description = g_strdup (info->description);

  if (out_icon != NULL)
    *out_icon = _g_object_ref0 (info->icon);

  if (out_media_description != NULL)
    *out_media_description = g_strdup (info->media_description);

  if (out_media_icon != NULL)
    *out_media_icon = _g_object_ref0 (info->media_icon);

  g_object_unref (info);
}
Exemplo n.º 2
0
	return self ? g_object_ref (self) : NULL;
#line 86 "DictionaryEntry.c"
}


SystemCollectionsDictionaryEntry* system_collections_dictionary_entry_construct (GType object_type, GObject* key, GObject* value) {
	SystemCollectionsDictionaryEntry* self = NULL;
	GObject* _tmp0_ = NULL;
	GObject* _tmp1_ = NULL;
	GObject* _tmp2_ = NULL;
	GObject* _tmp3_ = NULL;
#line 31 "/home/developer/projects/Backup/LibDotNet/src/System/Collections/DictionaryEntry.vala"
	g_return_val_if_fail (key != NULL, NULL);
#line 31 "/home/developer/projects/Backup/LibDotNet/src/System/Collections/DictionaryEntry.vala"
	g_return_val_if_fail (value != NULL, NULL);
#line 31 "/home/developer/projects/Backup/LibDotNet/src/System/Collections/DictionaryEntry.vala"
	self = (SystemCollectionsDictionaryEntry*) g_type_create_instance (object_type);
#line 32 "/home/developer/projects/Backup/LibDotNet/src/System/Collections/DictionaryEntry.vala"
	_tmp0_ = key;
#line 32 "/home/developer/projects/Backup/LibDotNet/src/System/Collections/DictionaryEntry.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 32 "/home/developer/projects/Backup/LibDotNet/src/System/Collections/DictionaryEntry.vala"
	_g_object_unref0 (self->priv->_key);
#line 32 "/home/developer/projects/Backup/LibDotNet/src/System/Collections/DictionaryEntry.vala"
	self->priv->_key = _tmp1_;
#line 33 "/home/developer/projects/Backup/LibDotNet/src/System/Collections/DictionaryEntry.vala"
	_tmp2_ = value;
#line 33 "/home/developer/projects/Backup/LibDotNet/src/System/Collections/DictionaryEntry.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 33 "/home/developer/projects/Backup/LibDotNet/src/System/Collections/DictionaryEntry.vala"
	_g_object_unref0 (self->priv->_value);
#line 33 "/home/developer/projects/Backup/LibDotNet/src/System/Collections/DictionaryEntry.vala"
Exemplo n.º 3
0
FusionTLSInputStream* fusion_tls_input_stream_construct (GType object_type, FusionTLSConnection* connection) {
	FusionTLSInputStream * self = NULL;
	FusionTLSConnection* _tmp0_ = NULL;
	GSocketConnection* _tmp1_ = NULL;
	GSocketConnection* _tmp2_ = NULL;
	GInputStream* _tmp3_ = NULL;
	FusionTLSConnection* _tmp4_ = NULL;
	FusionTLSConnection* _tmp5_ = NULL;
	FusionTLSConnection* _tmp6_ = NULL;
	GSocketConnection* _tmp7_ = NULL;
	GSocketConnection* _tmp8_ = NULL;
	GSocket* _tmp9_ = NULL;
	GSocket* _tmp10_ = NULL;
	g_return_val_if_fail (connection != NULL, NULL);
	_tmp0_ = connection;
	_tmp1_ = fusion_tls_connection_get_socket_connection (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = g_io_stream_get_input_stream ((GIOStream*) _tmp2_);
	self = (FusionTLSInputStream*) g_object_new (object_type, "base-stream", _tmp3_, NULL);
	_tmp4_ = connection;
	_tmp5_ = _g_object_ref0 (_tmp4_);
	_g_object_unref0 (self->priv->connection);
	self->priv->connection = _tmp5_;
	_tmp6_ = connection;
	_tmp7_ = fusion_tls_connection_get_socket_connection (_tmp6_);
	_tmp8_ = _tmp7_;
	_tmp9_ = g_socket_connection_get_socket (_tmp8_);
	_tmp10_ = _g_object_ref0 (_tmp9_);
	_g_object_unref0 (self->priv->socket);
	self->priv->socket = _tmp10_;
	return self;
}
static void tracker_bus_fd_cursor_real_next_async (TrackerSparqlCursor* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	TrackerBusFDCursor * self;
	TrackerBusFdCursorNextAsyncData* _data_;
	TrackerBusFDCursor* _tmp0_ = NULL;
	GCancellable* _tmp1_ = NULL;
	GCancellable* _tmp2_ = NULL;
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
	self = (TrackerBusFDCursor*) base;
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
	_data_ = g_slice_new0 (TrackerBusFdCursorNextAsyncData);
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, tracker_bus_fd_cursor_real_next_async);
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, tracker_bus_fd_cursor_real_next_async_data_free);
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
	_data_->self = _tmp0_;
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
	_tmp1_ = cancellable;
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
	_g_object_unref0 (_data_->cancellable);
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
	_data_->cancellable = _tmp2_;
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-bus/tracker-bus-fd-cursor.vala"
	tracker_bus_fd_cursor_real_next_async_co (_data_);
#line 547 "tracker-bus-fd-cursor.c"
}
Exemplo n.º 5
0
static void atlantis_application_real_OnViewSet (AtlantisPresenter* base) {
#line 237 "application.c"
	AtlantisApplication * self;
	AtlantisIWorkspace* _tmp0_;
	AtlantisIWorkspace* _tmp1_;
	AtlantisBrowserView* browser;
	AtlantisProjectExplorer* projectExplorer;
	self = (AtlantisApplication*) base;
#line 18 "application.vala"
	fprintf (stderr, "in Application.OnViewSet");
#line 21 "application.vala"
	self->priv->documentWorkspace = (_tmp0_ = _g_object_ref0 (atlantis_ishell_view_get_DocumentWorkspace ((AtlantisIShellView*) atlantis_presenter_get_View ((AtlantisPresenter*) self))), _g_object_unref0 (self->priv->documentWorkspace), _tmp0_);
#line 22 "application.vala"
	g_signal_connect_object (self->priv->documentWorkspace, "selected-smart-part-changed", (GCallback) _atlantis_application_OnSelectedSmartPartChanged_atlantis_iworkspace_selected_smart_part_changed, self, 0);
#line 24 "application.vala"
	self->priv->viewsWorkspace = (_tmp1_ = _g_object_ref0 (atlantis_ishell_view_get_ViewsWorkspace ((AtlantisIShellView*) atlantis_presenter_get_View ((AtlantisPresenter*) self))), _g_object_unref0 (self->priv->viewsWorkspace), _tmp1_);
#line 29 "application.vala"
	browser = (AtlantisBrowserView*) atlantis_registry_Get (atlantis_presenter_get_Registry ((AtlantisPresenter*) self), ATLANTIS_TYPE_BROWSER_VIEW, (GBoxedCopyFunc) g_object_ref, g_object_unref);
#line 30 "application.vala"
	atlantis_iworkspace_Add (self->priv->documentWorkspace, (GObject*) browser);
#line 31 "application.vala"
	atlantis_browser_view_Open (browser, "http://creatinghidalgo.blogspot.com/");
#line 36 "application.vala"
	projectExplorer = (AtlantisProjectExplorer*) atlantis_registry_Get (atlantis_presenter_get_Registry ((AtlantisPresenter*) self), ATLANTIS_TYPE_PROJECT_EXPLORER, (GBoxedCopyFunc) g_object_ref, g_object_unref);
#line 37 "application.vala"
	atlantis_iworkspace_Add (self->priv->viewsWorkspace, (GObject*) projectExplorer);
#line 262 "application.c"
	_g_object_unref0 (browser);
	_g_object_unref0 (projectExplorer);
}
Exemplo n.º 6
0
static void matenu_menu_bar_reset_bg_pixmap (MatenuMenuBar* self) {
	GdkPixmap* pixmap;
	cairo_t* cairo;
	cairo_pattern_t* pattern;
	GtkStyle* style;
	GdkPixmap* _tmp0_;
	g_return_if_fail (self != NULL);
	if (matenu_menu_bar_get_background (self)->type != MATENU_BACKGROUND_TYPE_PIXMAP) {
		return;
	}
	if (!GTK_WIDGET_REALIZED ((GtkWidget*) self)) {
		return;
	}
	g_assert (GDK_IS_DRAWABLE (((GtkWidget*) self)->window));
	g_assert (GDK_IS_DRAWABLE (self->priv->_background->pixmap));
	pixmap = gdk_pixmap_new ((GdkDrawable*) ((GtkWidget*) self)->window, ((GtkWidget*) self)->allocation.width, ((GtkWidget*) self)->allocation.height, -1);
	g_assert (GDK_IS_DRAWABLE (pixmap));
	cairo = gdk_cairo_create ((GdkDrawable*) pixmap);
	g_assert (cairo != NULL);
	gdk_cairo_set_source_pixmap (cairo, self->priv->_background->pixmap, (double) (-self->priv->_background->offset_x), (double) (-self->priv->_background->offset_y));
	pattern = cairo_get_source (cairo);
	cairo_pattern_set_extend (pattern, CAIRO_EXTEND_REPEAT);
	cairo_rectangle (cairo, (double) 0, (double) 0, (double) ((GtkWidget*) self)->allocation.width, (double) ((GtkWidget*) self)->allocation.height);
	cairo_fill (cairo);
	style = _g_object_ref0 (gtk_widget_get_style ((GtkWidget*) self));
	style->bg_pixmap[(gint) GTK_STATE_NORMAL] = (_tmp0_ = _g_object_ref0 (pixmap), _g_object_unref0 (style->bg_pixmap[(gint) GTK_STATE_NORMAL]), _tmp0_);
	gtk_style_set_background (style, ((GtkWidget*) self)->window, GTK_STATE_NORMAL);
	gtk_widget_queue_draw ((GtkWidget*) self);
	_g_object_unref0 (style);
	_cairo_destroy0 (cairo);
	_g_object_unref0 (pixmap);
}
Exemplo n.º 7
0
static void fusion_tls_output_stream_real_write_async (GOutputStream* base, guint8* buffer, int buffer_length1, gint io_priority, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FusionTLSOutputStream * self;
	FusionTlsOutputStreamWriteAsyncData* _data_;
	FusionTLSOutputStream* _tmp0_ = NULL;
	guint8* _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	gint _tmp2_ = 0;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
	self = (FusionTLSOutputStream*) base;
	_data_ = g_slice_new0 (FusionTlsOutputStreamWriteAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fusion_tls_output_stream_real_write_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fusion_tls_output_stream_real_write_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = buffer;
	_tmp1__length1 = buffer_length1;
	_data_->buffer = _tmp1_;
	_data_->buffer_length1 = _tmp1__length1;
	_tmp2_ = io_priority;
	_data_->io_priority = _tmp2_;
	_tmp3_ = cancellable;
	_tmp4_ = _g_object_ref0 (_tmp3_);
	_g_object_unref0 (_data_->cancellable);
	_data_->cancellable = _tmp4_;
	fusion_tls_output_stream_real_write_async_co (_data_);
}
Exemplo n.º 8
0
static void gmpc_meta_data_widgets_similar_songs_add_clicked (GmpcMetaDataWidgetsSimilarSongs* self, GtkWidget* item) {
	GtkTreeView* _tmp0_;
	GtkTreeView* tree;
	GtkTreeSelection* _tmp1_ = NULL;
	GtkTreeSelection* _tmp2_;
	GtkTreeSelection* sel;
	GtkTreeModel* model;
	GtkTreeIter iter = {0};
	GtkTreeModel* _tmp3_ = NULL;
	GList* _tmp4_ = NULL;
	GtkTreeModel* _tmp5_;
	GList* list;
	g_return_if_fail (self != NULL);
	g_return_if_fail (item != NULL);
	_tmp0_ = _g_object_ref0 (GTK_TREE_VIEW (self->priv->pchild));
	tree = _tmp0_;
	_tmp1_ = gtk_tree_view_get_selection (tree);
	_tmp2_ = _g_object_ref0 (_tmp1_);
	sel = _tmp2_;
	model = NULL;
	_tmp4_ = gtk_tree_selection_get_selected_rows (sel, &_tmp3_);
	_g_object_unref0 (model);
	_tmp5_ = _g_object_ref0 (_tmp3_);
	model = _tmp5_;
	list = _tmp4_;
	{
		GList* path_collection;
		GList* path_it;
		path_collection = list;
		for (path_it = path_collection; path_it != NULL; path_it = path_it->next) {
			GtkTreePath* _tmp6_;
			GtkTreePath* path;
			_tmp6_ = _gtk_tree_path_copy0 ((GtkTreePath*) path_it->data);
			path = _tmp6_;
			{
				GtkTreeIter _tmp7_ = {0};
				gboolean _tmp8_;
				_tmp8_ = gtk_tree_model_get_iter (model, &_tmp7_, path);
				iter = _tmp7_;
				if (_tmp8_) {
					const mpd_Song* song;
					song = NULL;
					gtk_tree_model_get (model, &iter, 0, &song, -1, -1);
					if (song != NULL) {
						mpd_playlist_queue_add (connection, song->file);
					}
				}
				_gtk_tree_path_free0 (path);
			}
		}
	}
	mpd_playlist_queue_commit (connection);
	__g_list_free__gtk_tree_path_free0_0 (list);
	_g_object_unref0 (model);
	_g_object_unref0 (sel);
	_g_object_unref0 (tree);
}
Exemplo n.º 9
0
void gnomenu_mnemonic_keys_grab (GnomenuMnemonicKeys* self, GnomenuWindow* window) {
	GdkModifierType mods;
	GnomenuWindow* _tmp3_;
	GtkWidget* _tmp4_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (window != NULL);
	if (self->priv->current_grab != NULL) {
		gnomenu_mnemonic_keys_ungrab (self);
	}
	mods = GDK_MOD1_MASK;
	{
		gint i;
		i = 0;
		{
			gboolean _tmp0_;
			_tmp0_ = TRUE;
			while (TRUE) {
				GnomenuItem* _tmp1_;
				GnomenuMenuItem* item;
				GtkWidget* _tmp2_;
				GnomenuMenuLabel* label;
				guint keyval;
				if (!_tmp0_) {
					i++;
				}
				_tmp0_ = FALSE;
				if (!(i < gnomenu_shell_get_length (self->priv->_shell))) {
					break;
				}
				item = (_tmp1_ = gnomenu_shell_get_item (self->priv->_shell, i), GNOMENU_IS_MENU_ITEM (_tmp1_) ? ((GnomenuMenuItem*) _tmp1_) : NULL);
				if (item == NULL) {
					_g_object_unref0 (item);
					continue;
				}
				label = _g_object_ref0 ((_tmp2_ = gtk_bin_get_child ((GtkBin*) item), GNOMENU_IS_MENU_LABEL (_tmp2_) ? ((GnomenuMenuLabel*) _tmp2_) : NULL));
				if (label == NULL) {
					_g_object_unref0 (label);
					_g_object_unref0 (item);
					continue;
				}
				keyval = gnomenu_menu_label_get_mnemonic_keyval (label);
				g_debug ("mnemonickeys.vala:23: grabbing key for %s:%u", gnomenu_menu_label_get_label (label), keyval);
				gnomenu_window_grab_key (window, keyval, mods);
				gnomenu_window_grab_key (window, keyval, mods | GDK_MOD2_MASK);
				gnomenu_window_grab_key (window, keyval, mods | GDK_MOD3_MASK);
				gnomenu_window_grab_key (window, keyval, (mods | GDK_MOD3_MASK) | GDK_MOD2_MASK);
				g_hash_table_insert (self->priv->keys, GUINT_TO_POINTER (keyval), _g_object_ref0 ((GtkWidget*) item));
				_g_object_unref0 (label);
				_g_object_unref0 (item);
			}
		}
	}
	self->priv->current_grab = (_tmp3_ = _g_object_ref0 (window), _g_object_unref0 (self->priv->current_grab), _tmp3_);
	gnomenu_window_set_key_widget (self->priv->current_grab, _tmp4_ = gnomenu_mnemonic_keys_get_toplevel (self));
	_g_object_unref0 (_tmp4_);
}
Exemplo n.º 10
0
static void rygel_media_container_real_add_item (RygelMediaContainer* self, RygelMediaItem* item, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelMediaContainerAddItemData* _data_;
	_data_ = g_slice_new0 (RygelMediaContainerAddItemData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_media_container_real_add_item);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_media_container_real_add_item_data_free);
	_data_->self = g_object_ref (self);
	_data_->item = _g_object_ref0 (item);
	_data_->cancellable = _g_object_ref0 (cancellable);
	rygel_media_container_real_add_item_co (_data_);
}
Exemplo n.º 11
0
static void rygel_media_container_search_in_children (RygelMediaContainer* self, RygelSearchExpression* expression, GeeList* children, guint limit, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelMediaContainerSearchInChildrenData* _data_;
	_data_ = g_slice_new0 (RygelMediaContainerSearchInChildrenData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_media_container_search_in_children);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_media_container_search_in_children_data_free);
	_data_->self = g_object_ref (self);
	_data_->expression = _rygel_search_expression_ref0 (expression);
	_data_->children = _g_object_ref0 (children);
	_data_->limit = limit;
	_data_->cancellable = _g_object_ref0 (cancellable);
	rygel_media_container_search_in_children_co (_data_);
}
Exemplo n.º 12
0
void deja_dup_tool_job_set_restore_files (DejaDupToolJob* self, GList* value) {
	GList* _tmp0_;
	GList* _tmp3_;
	GList* _tmp4_ = NULL;
	GList* _tmp5_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->_restore_files;
	{
		GList* f_collection = NULL;
		GList* f_it = NULL;
		f_collection = _tmp0_;
		for (f_it = f_collection; f_it != NULL; f_it = f_it->next) {
			GFile* _tmp1_;
			GFile* f = NULL;
			_tmp1_ = _g_object_ref0 ((GFile*) f_it->data);
			f = _tmp1_;
			{
				GFile* _tmp2_;
				_tmp2_ = f;
				g_object_unref ((GObject*) _tmp2_);
				_g_object_unref0 (f);
			}
		}
	}
	_tmp3_ = value;
	_tmp4_ = g_list_copy (_tmp3_);
	__g_list_free__g_object_unref0_0 (self->_restore_files);
	self->_restore_files = _tmp4_;
	_tmp5_ = self->_restore_files;
	{
		GList* f_collection = NULL;
		GList* f_it = NULL;
		f_collection = _tmp5_;
		for (f_it = f_collection; f_it != NULL; f_it = f_it->next) {
			GFile* _tmp6_;
			GFile* f = NULL;
			_tmp6_ = _g_object_ref0 ((GFile*) f_it->data);
			f = _tmp6_;
			{
				GFile* _tmp7_;
				_tmp7_ = f;
				g_object_ref ((GObject*) _tmp7_);
				_g_object_unref0 (f);
			}
		}
	}
	g_object_notify ((GObject *) self, "restore-files");
}
Exemplo n.º 13
0
void slingshot_frontend_app_item_change_app (SlingshotFrontendAppItem* self, GdkPixbuf* new_icon, const gchar* new_name, const gchar* new_tooltip) {
	GdkPixbuf* _tmp0_ = NULL;
	GdkPixbuf* _tmp1_ = NULL;
	GdkPixbuf* _tmp2_ = NULL;
	SlingshotFrontendColor _tmp3_ = {0};
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	GtkVBox* _tmp7_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (new_icon != NULL);
	g_return_if_fail (new_name != NULL);
	g_return_if_fail (new_tooltip != NULL);
	self->priv->current_frame = 1;
	_tmp0_ = new_icon;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (self->priv->icon);
	self->priv->icon = _tmp1_;
	_tmp2_ = self->priv->icon;
	slingshot_frontend_utilities_average_color (_tmp2_, &_tmp3_);
	self->priv->prominent = _tmp3_;
	_tmp4_ = new_name;
	_tmp5_ = g_strdup (_tmp4_);
	_g_free0 (self->priv->label);
	self->priv->label = _tmp5_;
	_tmp6_ = new_tooltip;
	gtk_widget_set_tooltip_text ((GtkWidget*) self, _tmp6_);
	_tmp7_ = self->priv->wrapper;
	gtk_widget_queue_draw ((GtkWidget*) _tmp7_);
}
Exemplo n.º 14
0
FsoGsmServiceManager* fso_gsm_service_manager_construct (GType object_type, FsoFrameworkSubsystem* subsystem, const gchar* serviceName, const gchar* servicePath) {
	FsoGsmServiceManager * self = NULL;
	GHashTable* _tmp0_;
	FsoFrameworkSubsystem* _tmp1_;
	FsoFrameworkSubsystem* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	g_return_val_if_fail (subsystem != NULL, NULL);
	g_return_val_if_fail (serviceName != NULL, NULL);
	g_return_val_if_fail (servicePath != NULL, NULL);
	self = (FsoGsmServiceManager*) fso_framework_abstract_object_construct (object_type);
	_tmp0_ = g_hash_table_new_full (NULL, NULL, NULL, _g_object_unref0_);
	_g_hash_table_unref0 (self->priv->services);
	self->priv->services = _tmp0_;
	_tmp1_ = subsystem;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (self->priv->subsystem);
	self->priv->subsystem = _tmp2_;
	_tmp3_ = serviceName;
	_tmp4_ = g_strdup (_tmp3_);
	_g_free0 (self->priv->serviceName);
	self->priv->serviceName = _tmp4_;
	_tmp5_ = servicePath;
	_tmp6_ = g_strdup (_tmp5_);
	_g_free0 (self->priv->servicePath);
	self->priv->servicePath = _tmp6_;
	return self;
}
Exemplo n.º 15
0
void plank_factories_factory_init (PlankFactoriesAbstractMain* main_class, PlankFactoriesItemFactory* item) {
	PlankFactoriesAbstractMain* _tmp0_ = NULL;
	PlankFactoriesAbstractMain* _tmp1_ = NULL;
	PlankFactoriesItemFactory* _tmp2_ = NULL;
	PlankFactoriesItemFactory* _tmp3_ = NULL;
	g_return_if_fail (main_class != NULL);
	g_return_if_fail (item != NULL);
	_tmp0_ = main_class;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (plank_factories_factory_main);
	plank_factories_factory_main = _tmp1_;
	_tmp2_ = item;
	_tmp3_ = _g_object_ref0 (_tmp2_);
	_g_object_unref0 (plank_factories_factory_item_factory);
	plank_factories_factory_item_factory = _tmp3_;
}
Exemplo n.º 16
0
/**
 * This function gets called on plugin initialization time.
 * @return the name of your plugin here
 * @note that it needs to be a name in the format <subsystem>.<plugin>
 * else your module will be unloaded immediately.
 **/
gchar* fso_factory_function (FsoFrameworkSubsystem* subsystem, GError** error) {
	gchar* result = NULL;
	FsoFrameworkLogger* _tmp0_;
	FsoFrameworkSmartKeyFile* _tmp1_;
	FsoFrameworkSmartKeyFile* _tmp2_;
	FsoFrameworkSmartKeyFile* config;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_;
	g_return_val_if_fail (subsystem != NULL, NULL);
	_tmp0_ = fso_framework_theLogger;
	fso_framework_logger_debug (_tmp0_, "pdp_qmi fso_factory_function");
	_tmp1_ = fso_framework_theConfig;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	config = _tmp2_;
	_tmp3_ = fso_framework_smart_key_file_stringValue (config, "cornucopia", "sysfs_root", "/sys");
	_g_free0 (sysfs_root);
	sysfs_root = _tmp3_;
	_tmp4_ = fso_framework_smart_key_file_stringValue (config, "cornucopia", "devfs_root", "/dev");
	_g_free0 (devfs_root);
	devfs_root = _tmp4_;
	_tmp5_ = g_strdup (PDP_QMI_MODULE_NAME);
	result = _tmp5_;
	_g_object_unref0 (config);
	return result;
}
Exemplo n.º 17
0
void dash_box_push (DashBox* self, GreeterList* l) {
	GreeterList* _tmp0_;
	GtkWidget* _tmp1_;
	DashBoxMode _tmp2_;
	gint _tmp3_ = 0;
	GreeterList* _tmp4_;
	GreeterList* _tmp5_;
	GreeterList* _tmp6_;
	FadeTracker* _tmp7_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (l != NULL);
	_tmp0_ = self->priv->pushed;
	g_return_if_fail (_tmp0_ == NULL);
	_tmp1_ = self->priv->orig;
	g_return_if_fail (_tmp1_ != NULL);
	_tmp2_ = self->priv->mode;
	g_return_if_fail (_tmp2_ == DASH_BOX_MODE_NORMAL);
	gtk_widget_get_preferred_height ((GtkWidget*) self, NULL, &_tmp3_);
	self->priv->orig_height = _tmp3_;
	_tmp4_ = l;
	_tmp5_ = _g_object_ref0 (_tmp4_);
	_g_object_unref0 (self->priv->pushed);
	self->priv->pushed = _tmp5_;
	_tmp6_ = self->priv->pushed;
	g_signal_connect_object ((FadableBox*) _tmp6_, "fade-done", (GCallback) _dash_box_fade_done_cb_fadable_box_fade_done, self, 0);
	self->priv->mode = DASH_BOX_MODE_PUSH_FADE_OUT;
	_tmp7_ = self->priv->orig_tracker;
	fade_tracker_reset (_tmp7_, FADE_TRACKER_MODE_FADE_OUT);
	gtk_widget_queue_resize ((GtkWidget*) self);
}
Exemplo n.º 18
0
GreeterList* list_stack_top (ListStack* self) {
    GreeterList* result = NULL;
    GList* _tmp0_ = NULL;
    GList* children;
    GList* _tmp1_;
    g_return_val_if_fail (self != NULL, NULL);
    _tmp0_ = gtk_container_get_children ((GtkContainer*) self);
    children = _tmp0_;
    _tmp1_ = children;
    if (_tmp1_ == NULL) {
        result = NULL;
        _g_list_free0 (children);
        return result;
    } else {
        GList* _tmp2_;
        GList* _tmp3_ = NULL;
        gconstpointer _tmp4_;
        GtkWidget* _tmp5_;
        GreeterList* _tmp6_;
        _tmp2_ = children;
        _tmp3_ = g_list_last (_tmp2_);
        _tmp4_ = _tmp3_->data;
        _tmp5_ = (GtkWidget*) _tmp4_;
        _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_GREETER_LIST) ? ((GreeterList*) _tmp5_) : NULL);
        result = _tmp6_;
        _g_list_free0 (children);
        return result;
    }
    _g_list_free0 (children);
}
Exemplo n.º 19
0
static void atlantis_application_OnSelectedSmartPartChanged (AtlantisApplication* self, AtlantisIWorkspace* sender, GObject* selectedSmartPart) {
#line 40 "application.vala"
	g_return_if_fail (self != NULL);
#line 40 "application.vala"
	g_return_if_fail (sender != NULL);
#line 40 "application.vala"
	g_return_if_fail (selectedSmartPart != NULL);
#line 41 "application.vala"
	fprintf (stderr, "Application.OnSelectedSmartPartChanged");
#line 42 "application.vala"
	if (ATLANTIS_IS_DOCUMENT_VIEW (selectedSmartPart)) {
#line 280 "application.c"
		GObject* _tmp0_;
		AtlantisDocumentView* view;
		AtlantisIDocumentService* service;
#line 43 "application.vala"
		view = _g_object_ref0 ((_tmp0_ = selectedSmartPart, ATLANTIS_IS_DOCUMENT_VIEW (_tmp0_) ? ((AtlantisDocumentView*) _tmp0_) : NULL));
#line 44 "application.vala"
		service = (AtlantisIDocumentService*) atlantis_registry_Get (atlantis_presenter_get_Registry ((AtlantisPresenter*) self), ATLANTIS_TYPE_IDOCUMENT_SERVICE, (GBoxedCopyFunc) g_object_ref, g_object_unref);
#line 45 "application.vala"
		atlantis_idocument_service_set_SelectedDocument (service, atlantis_document_view_get_Document (view));
#line 46 "application.vala"
		fprintf (stderr, "service.SelectedDocument = view.Document");
#line 292 "application.c"
		_g_object_unref0 (view);
		_g_object_unref0 (service);
	}
}
Exemplo n.º 20
0
Arquivo: Box.c Projeto: RONNCC/pysoy
soyatomsSize* soy_bodies_box_get_size (soybodiesBox* self) {
	soyatomsSize* result;
	soyatomsSize* _tmp0_;
	soyatomsSize* _tmp1_;
	soyatomsSize* value;
	soyatomsSize* _tmp2_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_size_obj;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	value = _tmp1_;
	_tmp2_ = value;
	if (_tmp2_ == NULL) {
		GLfloat _tmp3_;
		GLfloat _tmp4_;
		GLfloat _tmp5_;
		soyatomsSize* _tmp6_;
		soyatomsSize* _tmp7_;
		soyatomsSize* _tmp8_;
		soyatomsSize* _tmp9_;
		_tmp3_ = self->priv->_width;
		_tmp4_ = self->priv->_height;
		_tmp5_ = self->priv->_depth;
		_tmp6_ = soy_atoms_size_new ((gfloat) _tmp3_, (gfloat) _tmp4_, (gfloat) _tmp5_);
		_g_object_unref0 (value);
		value = _tmp6_;
		_tmp7_ = value;
		g_signal_connect_object (_tmp7_, "on-set", (GCallback) __soy_bodies_box_size_set_soy_atoms_size_on_set, self, 0);
		_tmp8_ = value;
		g_object_weak_ref ((GObject*) _tmp8_, __soy_bodies_box_size_weak_gweak_notify, self);
		_tmp9_ = value;
		self->priv->_size_obj = _tmp9_;
	}
	result = value;
	return result;
}
Exemplo n.º 21
0
Arquivo: Light.c Projeto: RONNCC/pysoy
soyatomsColor* soy_bodies_light_get_ambient (soybodiesLight* self) {
	soyatomsColor* result;
	soyatomsColor* _tmp0_;
	soyatomsColor* _tmp1_;
	soyatomsColor* value;
	soyatomsColor* _tmp2_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_ambient_obj;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	value = _tmp1_;
	_tmp2_ = value;
	if (_tmp2_ == NULL) {
		GLfloat* _tmp3_;
		gint _tmp3__length1;
		soyatomsColor* _tmp4_;
		soyatomsColor* _tmp5_;
		soyatomsColor* _tmp6_;
		soyatomsColor* _tmp7_;
		_tmp3_ = self->priv->_ambient;
		_tmp3__length1 = self->priv->_ambient_length1;
		_tmp4_ = soy_atoms_color_new_new4f (_tmp3_, _tmp3__length1);
		_g_object_unref0 (value);
		value = _tmp4_;
		_tmp5_ = value;
		g_signal_connect_object (_tmp5_, "on-set", (GCallback) __soy_bodies_light_ambient_set_soy_atoms_color_on_set, self, 0);
		_tmp6_ = value;
		g_object_weak_ref ((GObject*) _tmp6_, __soy_bodies_light_ambient_weak_gweak_notify, self);
		_tmp7_ = value;
		self->priv->_ambient_obj = _tmp7_;
	}
	result = value;
	return result;
}
Exemplo n.º 22
0
soyatomsPosition* soy_controllers_pointer_get_position (soycontrollersPointer* self) {
	soyatomsPosition* result;
	soyatomsPosition* _tmp0_;
	soyatomsPosition* _tmp1_;
	soyatomsPosition* value;
	soyatomsPosition* _tmp2_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_position_obj;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	value = _tmp1_;
	_tmp2_ = value;
	if (_tmp2_ == NULL) {
		gint _tmp3_;
		gint _tmp4_;
		soyatomsPosition* _tmp5_;
		soyatomsPosition* _tmp6_;
		soyatomsPosition* _tmp7_;
		soyatomsPosition* _tmp8_;
		_tmp3_ = self->priv->_x;
		_tmp4_ = self->priv->_y;
		_tmp5_ = soy_atoms_position_new ((gfloat) _tmp3_, (gfloat) _tmp4_, 0.0f);
		_g_object_unref0 (value);
		value = _tmp5_;
		_tmp6_ = value;
		g_signal_connect_object (_tmp6_, "on-set", (GCallback) __soy_controllers_pointer_position_set_soy_atoms_position_on_set, self, 0);
		_tmp7_ = value;
		g_object_weak_ref ((GObject*) _tmp7_, __soy_controllers_pointer_position_weak_gweak_notify, self);
		_tmp8_ = value;
		self->priv->_position_obj = _tmp8_;
	}
	result = value;
	return result;
}
Exemplo n.º 23
0
static void fso_gsm_gsm_pdp_service_real_set_credentials (FreeSmartphoneGSMPDP* base, const gchar* apn, const gchar* username, const gchar* password, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmGsmPdpService * self;
	FsoGsmGsmPdpServiceSetCredentialsData* _data_;
	FsoGsmGsmPdpService* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	self = (FsoGsmGsmPdpService*) base;
	_data_ = g_slice_new0 (FsoGsmGsmPdpServiceSetCredentialsData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_gsm_pdp_service_real_set_credentials);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_gsm_pdp_service_real_set_credentials_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = apn;
	_tmp2_ = g_strdup (_tmp1_);
	_data_->apn = _tmp2_;
	_tmp3_ = username;
	_tmp4_ = g_strdup (_tmp3_);
	_data_->username = _tmp4_;
	_tmp5_ = password;
	_tmp6_ = g_strdup (_tmp5_);
	_data_->password = _tmp6_;
	fso_gsm_gsm_pdp_service_real_set_credentials_co (_data_);
}
Exemplo n.º 24
0
EaseDialogProgress* ease_dialog_progress_construct_with_image (GType object_type, const char* title, gboolean cancellable, double max, GtkWindow* modal, GtkImage* image) {
#line 190 "ease-dialog-progress.c"
	EaseDialogProgress * self;
	GObject* _tmp0_;
	GtkHBox* hbox;
	GtkAlignment* align;
#line 77 "ease-dialog-progress.vala"
	g_return_val_if_fail (title != NULL, NULL);
#line 77 "ease-dialog-progress.vala"
	g_return_val_if_fail (image != NULL, NULL);
#line 80 "ease-dialog-progress.vala"
	self = (EaseDialogProgress*) ease_dialog_progress_construct (object_type, title, cancellable, max, modal);
#line 83 "ease-dialog-progress.vala"
	hbox = _g_object_ref0 ((_tmp0_ = gtk_builder_get_object (self->priv->builder, "hbox"), GTK_IS_HBOX (_tmp0_) ? ((GtkHBox*) _tmp0_) : NULL));
#line 84 "ease-dialog-progress.vala"
	align = g_object_ref_sink ((GtkAlignment*) gtk_alignment_new (0.5f, 0.5f, (float) 0, (float) 0));
#line 85 "ease-dialog-progress.vala"
	gtk_alignment_set_padding (align, (guint) 0, (guint) 0, (guint) 4, (guint) 4);
#line 86 "ease-dialog-progress.vala"
	gtk_container_add ((GtkContainer*) align, (GtkWidget*) image);
#line 87 "ease-dialog-progress.vala"
	gtk_widget_show ((GtkWidget*) align);
#line 88 "ease-dialog-progress.vala"
	gtk_widget_show ((GtkWidget*) image);
#line 89 "ease-dialog-progress.vala"
	gtk_box_pack_start ((GtkBox*) hbox, (GtkWidget*) align, FALSE, FALSE, (guint) 0);
#line 215 "ease-dialog-progress.c"
	_g_object_unref0 (align);
	_g_object_unref0 (hbox);
	return self;
}
Exemplo n.º 25
0
RygelSeekableResponse* rygel_seekable_response_construct (GType object_type, SoupServer* server, SoupMessage* msg, const char* uri, RygelHTTPSeek* seek, gsize file_length, GCancellable* cancellable) {
#line 251 "rygel-seekable-response.c"
	RygelSeekableResponse * self;
	gboolean partial;
	RygelHTTPSeek* _tmp0_;
	gchar* _tmp1_;
	GFile* _tmp2_;
#line 39 "rygel-seekable-response.vala"
	g_return_val_if_fail (server != NULL, NULL);
#line 39 "rygel-seekable-response.vala"
	g_return_val_if_fail (msg != NULL, NULL);
#line 39 "rygel-seekable-response.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 39 "rygel-seekable-response.vala"
	g_return_val_if_fail (seek != NULL, NULL);
#line 45 "rygel-seekable-response.vala"
	partial = rygel_http_seek_get_length (seek) < file_length;
#line 47 "rygel-seekable-response.vala"
	self = (RygelSeekableResponse*) rygel_http_response_construct (object_type, server, msg, partial, cancellable);
#line 49 "rygel-seekable-response.vala"
	self->priv->seek = (_tmp0_ = _g_object_ref0 (seek), _g_object_unref0 (self->priv->seek), _tmp0_);
#line 50 "rygel-seekable-response.vala"
	self->priv->priority = rygel_seekable_response_get_requested_priority (self);
#line 51 "rygel-seekable-response.vala"
	self->priv->total_length = (gsize) rygel_http_seek_get_length (seek);
#line 53 "rygel-seekable-response.vala"
	self->priv->buffer = (_tmp1_ = g_new0 (gchar, RYGEL_SEEKABLE_RESPONSE_BUFFER_LENGTH), self->priv->buffer = (g_free (self->priv->buffer), NULL), self->priv->buffer_length1 = RYGEL_SEEKABLE_RESPONSE_BUFFER_LENGTH, self->priv->_buffer_size_ = self->priv->buffer_length1, _tmp1_);
#line 54 "rygel-seekable-response.vala"
	self->priv->file = (_tmp2_ = g_file_new_for_uri (uri), _g_object_unref0 (self->priv->file), _tmp2_);
#line 279 "rygel-seekable-response.c"
	return self;
}
Exemplo n.º 26
0
NokiaIsiIsiUnsolicitedHandler* nokia_isi_isi_unsolicited_handler_construct (GType object_type, FsoGsmModem* modem) {
	NokiaIsiIsiUnsolicitedHandler * self = NULL;
	FsoGsmModem* _tmp0_;
	FsoGsmModem* _tmp1_;
	GIsiCommModemAccess* _tmp2_;
	GIsiCommNetwork* _tmp3_;
	GIsiCommModemAccess* _tmp4_;
	GIsiCommNetwork* _tmp5_;
	GIsiCommModemAccess* _tmp6_;
	GIsiCommCall* _tmp7_;
	g_return_val_if_fail (modem != NULL, NULL);
	self = (NokiaIsiIsiUnsolicitedHandler*) fso_framework_abstract_object_construct (object_type);
	_tmp0_ = modem;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (self->priv->modem);
	self->priv->modem = _tmp1_;
	_tmp2_ = nokia_isi_isimodem;
	_tmp3_ = _tmp2_->net;
	g_signal_connect_object (_tmp3_, "signal-strength", (GCallback) _nokia_isi_isi_unsolicited_handler_onSignalStrengthUpdate_gisi_comm_network_signal_strength, self, 0);
	_tmp4_ = nokia_isi_isimodem;
	_tmp5_ = _tmp4_->net;
	g_signal_connect_object (_tmp5_, "registration-status", (GCallback) _nokia_isi_isi_unsolicited_handler_onRegistrationStatusUpdate_gisi_comm_network_registration_status, self, 0);
	_tmp6_ = nokia_isi_isimodem;
	_tmp7_ = _tmp6_->call;
	g_signal_connect_object (_tmp7_, "status-changed", (GCallback) _nokia_isi_isi_unsolicited_handler_onCallStatusUpdate_gisi_comm_call_status_changed, self, 0);
	return self;
}
Exemplo n.º 27
0
RygelHTTPItemURI* rygel_http_item_uri_construct (GType object_type, const char* item_id, RygelHTTPServer* http_server, gint thumbnail_index, gint subtitle_index, const char* transcode_target) {
#line 127 "rygel-http-item-uri.c"
	RygelHTTPItemURI * self;
	char* _tmp0_;
	char* _tmp1_;
	RygelHTTPServer* _tmp2_;
#line 33 "rygel-http-item-uri.vala"
	g_return_val_if_fail (item_id != NULL, NULL);
#line 33 "rygel-http-item-uri.vala"
	g_return_val_if_fail (http_server != NULL, NULL);
#line 33 "rygel-http-item-uri.vala"
	self = (RygelHTTPItemURI*) g_object_new (object_type, NULL);
#line 38 "rygel-http-item-uri.vala"
	self->item_id = (_tmp0_ = g_strdup (item_id), _g_free0 (self->item_id), _tmp0_);
#line 39 "rygel-http-item-uri.vala"
	self->thumbnail_index = thumbnail_index;
#line 40 "rygel-http-item-uri.vala"
	self->subtitle_index = subtitle_index;
#line 41 "rygel-http-item-uri.vala"
	self->transcode_target = (_tmp1_ = g_strdup (transcode_target), _g_free0 (self->transcode_target), _tmp1_);
#line 42 "rygel-http-item-uri.vala"
	self->http_server = (_tmp2_ = _g_object_ref0 (http_server), _g_object_unref0 (self->http_server), _tmp2_);
#line 148 "rygel-http-item-uri.c"
	return self;
}
Exemplo n.º 28
0
GmpcMpdDataTreeviewTooltip* gmpc_mpd_data_treeview_tooltip_construct (GType object_type, GtkTreeView* pw, MetaDataType type) {
	GmpcMpdDataTreeviewTooltip * self = NULL;
	GtkTreeView* _tmp0_;
	GtkImage* _tmp1_ = NULL;
	GtkStyle* _tmp2_ = NULL;
	g_return_val_if_fail (pw != NULL, NULL);
	self = (GmpcMpdDataTreeviewTooltip*) g_object_new (object_type, NULL);
	gtk_window_set_resizable ((GtkWindow*) self, FALSE);
	_tmp0_ = _g_object_ref0 (pw);
	_g_object_unref0 (self->priv->par_widget);
	self->priv->par_widget = _tmp0_;
	g_signal_connect_object ((GtkWidget*) pw, "query-tooltip", (GCallback) _gmpc_mpd_data_treeview_tooltip_query_tooltip_callback_gtk_widget_query_tooltip, self, 0);
	gtk_widget_set_tooltip_window ((GtkWidget*) self->priv->par_widget, (GtkWindow*) self);
	_tmp1_ = (GtkImage*) gtk_image_new ();
	_g_object_unref0 (self->priv->image);
	self->priv->image = g_object_ref_sink (_tmp1_);
	gtk_widget_show ((GtkWidget*) self->priv->image);
	self->mtype = type;
	gtk_container_add ((GtkContainer*) self, (GtkWidget*) self->priv->image);
	gtk_container_set_border_width ((GtkContainer*) self, (guint) 2);
	_tmp2_ = gtk_widget_get_style ((GtkWidget*) pw);
	gtk_widget_modify_bg ((GtkWidget*) self, GTK_STATE_NORMAL, &_tmp2_->black);
	g_signal_connect_object (gmw, "data-changed", (GCallback) _gmpc_mpd_data_treeview_tooltip_metadata_changed_gmpc_meta_watcher_data_changed, self, 0);
	return self;
}
Exemplo n.º 29
0
static GnomenuItem* gnomenu_menu_real_get_item_by_id (GnomenuShell* base, const char* id) {
	GnomenuMenu * self;
	GnomenuItem* result = NULL;
	self = (GnomenuMenu*) base;
	g_return_val_if_fail (id != NULL, NULL);
	{
		GList* child_collection;
		GList* child_it;
		child_collection = gtk_container_get_children ((GtkContainer*) self);
		for (child_it = child_collection; child_it != NULL; child_it = child_it->next) {
			GtkWidget* child;
			child = (GtkWidget*) child_it->data;
			{
				GtkWidget* _tmp0_;
				GnomenuItem* item;
				item = _g_object_ref0 ((_tmp0_ = child, GNOMENU_IS_ITEM (_tmp0_) ? ((GnomenuItem*) _tmp0_) : NULL));
				if (item == NULL) {
					_g_object_unref0 (item);
					continue;
				}
				if (_vala_strcmp0 (gnomenu_item_get_item_id (item), id) == 0) {
					result = item;
					_g_list_free0 (child_collection);
					return result;
				}
				_g_object_unref0 (item);
			}
		}
		_g_list_free0 (child_collection);
	}
	result = NULL;
	return result;
}
Exemplo n.º 30
0
static void rygel_http_response_real_set_cancellable (RygelStateMachine* base, GCancellable* value) {
	RygelHTTPResponse* self;
	GCancellable* _tmp0_;
	self = (RygelHTTPResponse*) base;
	self->priv->_cancellable = (_tmp0_ = _g_object_ref0 (value), _g_object_unref0 (self->priv->_cancellable), _tmp0_);
	g_object_notify ((GObject *) self, "cancellable");
}