You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.6 KiB
55 lines
1.6 KiB
#include <gtk/gtk.h>
|
|
#include <gtk/gtkx.h>
|
|
#include <locale.h>
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <libintl.h>
|
|
#include <getopt.h>
|
|
#include <libublsettings.h>
|
|
#include <libublsettings-gtk3.h>
|
|
#include <libublsettingsui-gtk3.h>
|
|
#include "ubl-strings.h"
|
|
|
|
#define _(String) gettext(String)
|
|
|
|
#define glade_path "/com/ublinux/ui/ubl-settings-info.glade"
|
|
#define CssPath "/com/ublinux/css/ubl-settings-info.css"
|
|
#define config_path yon_char_unite(yon_ubl_user_get_home_directory(),"/.config/",LocaleName,"/",LocaleName,".conf",NULL)
|
|
#define icon_path "com.ublinux.ubl-settings-info"
|
|
|
|
#define logo_icon_path "/usr/share/pixmaps/ublinux-logo-text.png"
|
|
#define logo_dark_icon_path "/usr/share/pixmaps/ublinux-logo-text-dark.png"
|
|
|
|
#define LocaleName "ubl-settings-info"
|
|
|
|
#define main_command _("fastfetch --logo none --disable-linewrap --config all.jsonc")
|
|
|
|
typedef char* string;
|
|
|
|
__attribute__((unused)) static \
|
|
string version_application;
|
|
|
|
typedef struct {
|
|
template_config_fields
|
|
int save_config;
|
|
config_str launch_arguments;
|
|
int launch_size;
|
|
} config;
|
|
|
|
typedef struct {
|
|
template_window_fields
|
|
GtkWidget *InfoIcon;
|
|
GtkWidget *InfoTerminal;
|
|
GtkWidget *TerminalTemplateLabel;
|
|
GtkAdjustment *adjustment;
|
|
} main_window;
|
|
|
|
|
|
|
|
void yon_main_window_complete(main_window *widgets);
|
|
void on_theme_changed(GSettings *, char *, main_window *widgets);
|
|
void yon_terminal_style_update(VteTerminal *, main_window *widgets);
|
|
void terminal_integrated_start(GtkWidget *terminal,GtkAdjustment *, char* command);
|
|
gboolean yon_adjustment_set(GtkAdjustment *adj);
|
|
void on_child_exited(GtkWidget *, gint, GtkAdjustment *adj); |