gtk

GstMultifilesink post-messages callback

家住魔仙堡 提交于 2021-01-02 16:35:14
问题 I would like to know how to get a callback from the gstreamer multifilesink element using post-messages=TRUE property? In the code below my_bus_callback function is never called. Multifilesink docs say: If the "post-messages" property is TRUE, it sends an application message named "GstMultiFileSink" after writing each buffer. http://www.freedesktop.org/software/gstreamer-sdk/data/docs/2012.5/gst-plugins-good-plugins-0.10/gst-plugins-good-plugins-multifilesink.html#GstMultiFileSink--post

GstMultifilesink post-messages callback

南楼画角 提交于 2021-01-02 16:31:02
问题 I would like to know how to get a callback from the gstreamer multifilesink element using post-messages=TRUE property? In the code below my_bus_callback function is never called. Multifilesink docs say: If the "post-messages" property is TRUE, it sends an application message named "GstMultiFileSink" after writing each buffer. http://www.freedesktop.org/software/gstreamer-sdk/data/docs/2012.5/gst-plugins-good-plugins-0.10/gst-plugins-good-plugins-multifilesink.html#GstMultiFileSink--post

GtkProgressBar with CSS for progress colour not functioning

谁都会走 提交于 2021-01-01 08:20:45
问题 I am not able to change the colour of the progress element in the GtkProgressBar using CSS. I have tried different combinations to reference this progress bar such as the below but to no avail. I have attached a minimum example C program, Glade file and CSS file where CSS attempt 4 is currently active to demonstrate that all elements are affected except this progress bar. /* attempt 1 */ #gtkprogressbar1 { color: rgba(83,165,198,255); background-color: rgba(83,165,198,255); } /* attempt 2 */

make file for Gtk

℡╲_俬逩灬. 提交于 2021-01-01 06:30:58
问题 I have a make file, which creates obj files for all source files and then the executable using those obj files (basically compiling each individual file and then linking all of them together). CC = gcc SRC_DIR = src INC_DIR = inc OBJ_DIR = obj CFLAGS = -c -Wall -I$(INC_DIR) EXE = project SRCS = $(SRC_DIR)/main.c $(SRC_DIR)/file1.c # and so on... OBJS = $(OBJ_DIR)/main.o $(OBJ_DIR)/file1.o # and so on... main : clean build build: $(OBJS) $(CC) $(OBJS) -o $(EXE) $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $

How to use gdk_device_get_position()?

允我心安 提交于 2020-08-04 05:40:05
问题 I am trying to get the pointer position on screen in Gdk and found gdk_display_get_pointer() , which works fine, but it's marked as deprecated and refers to gdk_device_get_position() now. But how do I use this function? I cannot get a GdkDevice , since there is no factory, nor is there a constructor. 回答1: use Gdk.DeviceManager. ..... ..... GdkDisplay *display = gdk_display_get_default (); GdkDeviceManager *device_manager = gdk_display_get_device_manager (display); GdkDevice *device = gdk

Integrating GTK+3.24.21 (Glade) libs with Codeblocks (C)

血红的双手。 提交于 2020-07-23 06:42:32
问题 I want to integrate GTK+3.24.21 (Glade) libs with Codeblocks 17.12 for compiling of GTK+ C apps. I installed mingw64 compiler, Glade, and GKT via MSYS2 MSYS (from official website) using these commands pacman -S mingw-w64-x86_64-gtk3 pacman -S mingw-w64-x86_64-gtkmm3 pacman -S mingw-w64-x86_64-glade . I've tried to create GTK project through "GTK+ project" category and it failed cos I just can't point to the right directory of GTK libs. I've tried this one: "C:\msys64\mingw64\include\gtk-3.0

Manually scroll to a child in a Gtk.ScrolledWindow

隐身守侯 提交于 2020-07-22 06:07:51
问题 I'm developping a GTK app (in Python with PyGTK) and I need to scroll manually the Gtk.ScrolledWindow to a child it contains to show it in the screen. The ScrolledWindow contains a ListBox, which contains a lot of ListBoxRow. self.currencySwitcher = CurrencySwitcher(self) self.currencySwitcherBox = Gtk.ScrolledWindow(vexpand = True) self.currencySwitcherBox.add(self.currencySwitcher) CurrencySwitcher herits of Gtk.ListBox: class CurrencySwitcher (Gtk.ListBox): # ... I have a search system to