From 4f085f8b9a0d3efcb1e6effb41e2561fff687400 Mon Sep 17 00:00:00 2001 From: j2969719 Date: Wed, 20 Mar 2019 21:01:54 +0300 Subject: [PATCH] helloworld --- plugins/wlx/gtk_socket/abiword/kostyl | Bin 14096 -> 29 bytes plugins/wlx/gtk_socket/abiword/kostyl.c | 71 +------ plugins/wlx/gtk_socket/evince/kostyl | Bin 22856 -> 28 bytes plugins/wlx/gtk_socket/evince/kostyl.c | 95 +--------- plugins/wlx/gtk_socket/evince/langs | 1 - plugins/wlx/gtk_socket/libreoffice/kostyl | Bin 19984 -> 33 bytes plugins/wlx/gtk_socket/libreoffice/kostyl.c | 194 +------------------- plugins/wlx/gtk_socket/webkit2gtk/kostyl | Bin 18344 -> 32 bytes plugins/wlx/gtk_socket/webkit2gtk/kostyl.c | 76 +------- plugins/wlx/gtk_socket/yelp/kostyl | Bin 18064 -> 26 bytes plugins/wlx/gtk_socket/yelp/kostyl.c | 69 +------ 11 files changed, 5 insertions(+), 501 deletions(-) mode change 100755 => 120000 plugins/wlx/gtk_socket/abiword/kostyl mode change 100644 => 120000 plugins/wlx/gtk_socket/abiword/kostyl.c mode change 100755 => 120000 plugins/wlx/gtk_socket/evince/kostyl mode change 100644 => 120000 plugins/wlx/gtk_socket/evince/kostyl.c delete mode 120000 plugins/wlx/gtk_socket/evince/langs mode change 100755 => 120000 plugins/wlx/gtk_socket/libreoffice/kostyl mode change 100644 => 120000 plugins/wlx/gtk_socket/libreoffice/kostyl.c mode change 100755 => 120000 plugins/wlx/gtk_socket/webkit2gtk/kostyl mode change 100644 => 120000 plugins/wlx/gtk_socket/webkit2gtk/kostyl.c mode change 100755 => 120000 plugins/wlx/gtk_socket/yelp/kostyl mode change 100644 => 120000 plugins/wlx/gtk_socket/yelp/kostyl.c diff --git a/plugins/wlx/gtk_socket/abiword/kostyl b/plugins/wlx/gtk_socket/abiword/kostyl deleted file mode 100755 index cc17c9bcd1da2c449d03248b982bd7fcbcaacd96..0000000000000000000000000000000000000000 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ad; -static GOptionEntry entries[] = -{ - { "xid", 'w', 0, G_OPTION_ARG_INT, &id, "Window ID", "ID" }, - { "file", 'f', 0, G_OPTION_ARG_FILENAME, &FileToLoad, "File to load", "File" }, - { NULL } -}; - -static void destroy(GtkWidget *widget, gpointer data) -{ - g_print("bye\n"); - libabiword_shutdown(); - gtk_main_quit(); -} - -int main(int argc, char *argv[]) -{ - GtkWidget *abi; - GtkWidget *plug; - gchar* fileUri; - GError *err = NULL; - GOptionContext *context; - - gtk_init(&argc, &argv); - libabiword_init_noargs(); - context = g_option_context_new("- commandline options"); - g_option_context_add_main_entries(context, entries, NULL); - g_option_context_add_group(context, gtk_get_option_group(TRUE)); - - if (!g_option_context_parse(context, &argc, &argv, &err)) - { - g_print("option parsing failed: %s\n", err->message); - exit(1); - } - - if (err) - g_error_free(err); - - g_print("hi\n"); - abi = abi_widget_new(); - - if (FileToLoad) - fileUri = g_filename_to_uri(FileToLoad, NULL, NULL); - - abi_widget_load_file(ABI_WIDGET(abi), fileUri, ""); - - if (id > 0) - { - plug = gtk_plug_new(id); - gtk_container_add(GTK_CONTAINER(plug), abi); - gtk_plug_construct(GTK_PLUG(plug), id); - gtk_widget_show_all(plug); - gtk_widget_realize(abi); - } - else - return EXIT_FAILURE; - - g_signal_connect(plug, "destroy", G_CALLBACK(destroy), NULL); - gtk_main(); - - return EXIT_SUCCESS; -} diff --git a/plugins/wlx/gtk_socket/abiword/kostyl.c b/plugins/wlx/gtk_socket/abiword/kostyl.c new file mode 120000 index 00000000..e86fc468 --- /dev/null +++ b/plugins/wlx/gtk_socket/abiword/kostyl.c @@ -0,0 +1 @@ +../../gtk3test/abiword/kostyl.c \ No newline at end of file diff --git a/plugins/wlx/gtk_socket/evince/kostyl b/plugins/wlx/gtk_socket/evince/kostyl deleted file mode 100755 index c9425ae34d7426d59c5a661ca555154b9070da2f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 22856 zcmeHPeRNwzb{|`D;(W;BTIL)SxWa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W??R z<#{wP{l>Hqx=8F)w$7 zHxcJ)T)al7+$=jopi7+45c`?XpgI^1bVY*DYaDFBA207f7=x5B%!`k5z@A*-I`zMW zFdhhBLE#=l6p9BBrFfuh=CV{rdINmsz=!lHZa~xnZEAtbSzf{06jh(%3q)7tNsC;G zD%1oFJZ2K7{wWSYly0x-x=i<5WMc(|rTcjWltao@5#RPN4QraUr4yOy1*^~u<27gil_%CrxZH=1dTz(4Ig=!t+)y03AM`;PxKAYg}ZJ`--;`2 z1rQ3!32vGv{5&+^+M)g_UO{rsFVdrR@DAwW6iJ`rW#{hz5Xw41tiPmB^aE&7 z^{u#CgHUO3@E_@aV$-MlvId{f9~H#<>#=I0@&ypIMdPRY(n+aL`xL2Bzr -#include -#include -#include -#include - -//static GdkNativeWindow id = 0; -static Window id = 0; -static gchar *FileToLoad; -static GOptionEntry entries[] = -{ - { "xid", 'w', 0, G_OPTION_ARG_INT, &id, "Window ID", "ID" }, - { "file", 'f', 0, G_OPTION_ARG_FILENAME, &FileToLoad, "File to load", "File" }, - { NULL } -}; - -static void destroy(GtkWidget *widget, gpointer data) -{ - g_print("bye\n"); - ev_shutdown(); - gtk_main_quit(); -} - -int main(int argc, char *argv[]) -{ - GtkWidget *plug; - GtkWidget *scrolled_window; - GtkWidget *view; - EvDocument *document; - EvDocumentModel *docmodel; - gchar* fileUri; - GError *err = NULL; - GOptionContext *context; - - gtk_init(&argc, &argv); - - if (!ev_init()) - return EXIT_FAILURE; - - context = g_option_context_new("- commandline options"); - g_option_context_add_main_entries(context, entries, NULL); - g_option_context_add_group(context, gtk_get_option_group(TRUE)); - - if (!g_option_context_parse(context, &argc, &argv, &err)) - { - g_print("option parsing failed: %s\n", err->message); - exit(1); - } - - if (err) - g_error_free(err); - - g_print("hi\n"); - scrolled_window = gtk_scrolled_window_new(NULL, NULL); - - if (FileToLoad) - fileUri = g_filename_to_uri(FileToLoad, NULL, NULL); - - document = EV_DOCUMENT(ev_document_factory_get_document(fileUri, NULL)); - - if (EV_IS_DOCUMENT(document)) - { - docmodel = EV_DOCUMENT_MODEL(ev_document_model_new_with_document(document)); - view = ev_view_new(); - ev_view_set_model(EV_VIEW(view), docmodel); - g_object_unref(document); - g_object_unref(docmodel); - gtk_container_add(GTK_CONTAINER(scrolled_window), view); - gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - } - else - { - gtk_widget_destroy(scrolled_window); - return EXIT_FAILURE; - } - - if (id > 0) - { - plug = gtk_plug_new(id); - gtk_container_add(GTK_CONTAINER(plug), scrolled_window); - gtk_plug_construct(GTK_PLUG(plug), id); - gtk_widget_show_all(plug); - gtk_widget_realize(scrolled_window); - } - else - return EXIT_FAILURE; - - g_signal_connect(plug, "destroy", G_CALLBACK(destroy), NULL); - gtk_main(); - - return EXIT_SUCCESS; -} diff --git a/plugins/wlx/gtk_socket/evince/kostyl.c b/plugins/wlx/gtk_socket/evince/kostyl.c new file mode 120000 index 00000000..091878fd --- /dev/null +++ b/plugins/wlx/gtk_socket/evince/kostyl.c @@ -0,0 +1 @@ +../../gtk3test/evince/kostyl.c \ No newline at end of file diff --git a/plugins/wlx/gtk_socket/evince/langs b/plugins/wlx/gtk_socket/evince/langs deleted file mode 120000 index 8e9aaa88..00000000 --- a/plugins/wlx/gtk_socket/evince/langs +++ /dev/null @@ -1 +0,0 @@ -/home/user/Программы/doublecmd/plugins/current/plugins/po/langs \ No newline at end of file diff --git a/plugins/wlx/gtk_socket/libreoffice/kostyl b/plugins/wlx/gtk_socket/libreoffice/kostyl deleted file mode 100755 index 3299de6b338b9073685f588bd7905439c800303f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 19984 zcmeHPeRNgTl|M-c1cfA|AQ4fXRuGs;2;sw^6Po}D7t2@q(pu@|<-M2W$xGhr`+(s1 zkr82$#yBZUE$z%KsjK7Ac4ke+c962#8jAz;V-|62ky_i8I?BAOwx)hyWU86p-u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/plugins/wlx/gtk_socket/libreoffice/kostyl new file mode 120000 index 00000000..8180c35f --- /dev/null +++ b/plugins/wlx/gtk_socket/libreoffice/kostyl @@ -0,0 +1 @@ +../../gtk3test/libreoffice/kostyl \ No newline at end of file diff --git a/plugins/wlx/gtk_socket/libreoffice/kostyl.c b/plugins/wlx/gtk_socket/libreoffice/kostyl.c deleted file mode 100644 index 806c79c6..00000000 --- a/plugins/wlx/gtk_socket/libreoffice/kostyl.c +++ /dev/null @@ -1,193 +0,0 @@ -#include -#include -#include -#include -#include - -#define TEST_PATH "/usr/lib/libreoffice/program" - -//static GdkNativeWindow id = 0; -static Window id = 0; -static gchar *FileToLoad; -static GOptionEntry entries[] = -{ - { "xid", 'w', 0, G_OPTION_ARG_INT, &id, "Window ID", "ID" }, - { "file", 'f', 0, G_OPTION_ARG_FILENAME, &FileToLoad, "File to load", "File" }, - { NULL } -}; - -static void destroy(GtkWidget *widget, gpointer data) -{ - //g_print("bye\n"); - - gtk_main_quit(); -} - -static void on_find_response(GtkDialog *dialog, gint response_id, gpointer userdata) -{ - GList *list = gtk_container_get_children(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog)))); - - if (response_id == GTK_RESPONSE_YES) - { - lok_doc_view_find_prev(LOK_DOC_VIEW(userdata), gtk_entry_get_text(GTK_ENTRY(list->data)), FALSE); - } - else if (response_id == GTK_RESPONSE_NO) - lok_doc_view_find_next(LOK_DOC_VIEW(userdata), gtk_entry_get_text(GTK_ENTRY(list->data)), FALSE); - - g_list_free(list); - // gtk_widget_destroy(GTK_WIDGET(dialog)); -} - -void lo_popup_menu_find(GtkWidget *menuitem, gpointer userdata) -{ - GtkWindow *window; - GtkWidget *dialog; - GtkWidget *content_area; - GtkWidget *stext; - gint response_id; - - window = GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(userdata))); //GTK_WINDOW_TOPLEVEL - dialog = gtk_dialog_new_with_buttons("Find", window, GTK_DIALOG_MODAL, - "Prev", GTK_RESPONSE_YES, "Next", GTK_RESPONSE_NO, NULL); - gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); - - content_area = gtk_dialog_get_content_area(GTK_DIALOG(dialog)); - stext = gtk_entry_new(); - gtk_container_add(GTK_CONTAINER(content_area), stext); - gtk_widget_show_all(dialog); - g_signal_connect(GTK_DIALOG(dialog), "response", G_CALLBACK(on_find_response), (gpointer)userdata); -} - -void lo_popup_menu_copy(GtkWidget *menuitem, gpointer userdata) -{ - gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD), - lok_doc_view_copy_selection(LOK_DOC_VIEW(userdata), - "text/plain;charset=utf-8", NULL), -1); - -} - -gboolean view_popup_menu(GtkWidget *widget, GdkEventButton *event, gpointer userdata) -{ - - if (event->type == GDK_BUTTON_PRESS && event->button == 3) - { - GtkWidget *menu; - GtkWidget *mifind; - GtkWidget *micopy; - - menu = gtk_menu_new(); - - micopy = gtk_menu_item_new_with_label("Copy"); - mifind = gtk_menu_item_new_with_label("Find"); - - g_signal_connect(micopy, "activate", G_CALLBACK(lo_popup_menu_copy), (gpointer)widget); - g_signal_connect(mifind, "activate", G_CALLBACK(lo_popup_menu_find), (gpointer)widget); - - gtk_menu_shell_append(GTK_MENU_SHELL(menu), micopy); - gtk_menu_shell_append(GTK_MENU_SHELL(menu), mifind); - - gtk_widget_show_all(menu); - gtk_menu_popup_at_pointer(GTK_MENU(menu), (GdkEvent*)event); - return TRUE; - } - - return FALSE; -} - -gboolean view_key_press(GtkWidget *widget, GdkEventKey *event, gpointer userdata) -{ - gboolean tmp; - - switch (event->keyval) - { - case GDK_KEY_Up: - g_signal_emit_by_name(widget, "scroll-child", GTK_SCROLL_STEP_BACKWARD, FALSE, &tmp); - return TRUE; - - case GDK_KEY_Down: - g_signal_emit_by_name(widget, "scroll-child", GTK_SCROLL_STEP_FORWARD, FALSE, &tmp); - return TRUE; - - case GDK_KEY_Right: - g_signal_emit_by_name(widget, "scroll-child", GTK_SCROLL_STEP_FORWARD, TRUE, &tmp); - return TRUE; - - case GDK_KEY_Left: - g_signal_emit_by_name(widget, "scroll-child", GTK_SCROLL_STEP_BACKWARD, TRUE, &tmp); - return TRUE; - } - - return FALSE; -} - - - -gboolean view_kostyl_primary(GtkWidget *widget, GdkEventButton *event, gpointer userdata) -{ - if (event->type == GDK_BUTTON_RELEASE && event->button == 1) - gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), - lok_doc_view_copy_selection(LOK_DOC_VIEW(widget), - "text/plain;charset=utf-8", NULL), -1); - - return FALSE; -} - -int main(int argc, char *argv[]) -{ - GtkWidget *pDocView; - GtkWidget *plug; - GtkWidget *scrolled_window; - gchar* fileUri; - GError *err = NULL; - GOptionContext *context; - - gtk_init(&argc, &argv); - - context = g_option_context_new("- commandline options"); - g_option_context_add_main_entries(context, entries, NULL); - g_option_context_add_group(context, gtk_get_option_group(TRUE)); - - if (!g_option_context_parse(context, &argc, &argv, &err)) - { - g_print("option parsing failed: %s\n", err->message); - exit(1); - } - - if (err) - g_error_free(err); - - //g_print("hi\n"); - scrolled_window = gtk_scrolled_window_new(NULL, NULL); - pDocView = lok_doc_view_new(TEST_PATH, NULL, NULL); - gtk_container_add(GTK_CONTAINER(scrolled_window), pDocView); - gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - gtk_scrolled_window_set_capture_button_press(GTK_SCROLLED_WINDOW(scrolled_window), TRUE); - gtk_scrolled_window_set_overlay_scrolling(GTK_SCROLLED_WINDOW(scrolled_window), FALSE); - - - lok_doc_view_open_document(LOK_DOC_VIEW(pDocView), FileToLoad, "{}", NULL, NULL, NULL); - - if (id > 0) - { - plug = gtk_plug_new(id); - gtk_container_add(GTK_CONTAINER(plug), GTK_WIDGET(scrolled_window)); - gtk_plug_construct(GTK_PLUG(plug), id); - gtk_widget_show_all(plug); - gtk_widget_realize(scrolled_window); - //gtk_widget_grab_focus(scrolled_window); - } - else - return EXIT_FAILURE; - - g_signal_connect(plug, "destroy", G_CALLBACK(destroy), NULL); - gtk_widget_add_events(pDocView, GDK_SCROLL_MASK); - g_signal_connect(GTK_WIDGET(pDocView), "button_press_event", G_CALLBACK(view_popup_menu), NULL); - g_signal_connect(GTK_WIDGET(scrolled_window), "key_press_event", G_CALLBACK(view_key_press), NULL); - g_signal_connect(GTK_WIDGET(pDocView), "button_release_event", G_CALLBACK(view_kostyl_primary), NULL); - - gtk_main(); - - return EXIT_SUCCESS; -} diff --git a/plugins/wlx/gtk_socket/libreoffice/kostyl.c b/plugins/wlx/gtk_socket/libreoffice/kostyl.c new file mode 120000 index 00000000..fc354262 --- /dev/null +++ b/plugins/wlx/gtk_socket/libreoffice/kostyl.c @@ -0,0 +1 @@ +../../gtk3test/libreoffice/kostyl.c \ No newline at end of file diff --git a/plugins/wlx/gtk_socket/webkit2gtk/kostyl b/plugins/wlx/gtk_socket/webkit2gtk/kostyl deleted file mode 100755 index d5d99ba9e91d21607e238660c73ea3a6b7950566..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 18344 zcmeHPe{fvYb-vPCwruQ`?AqWOj28!ElcGhEf1sE+?8=h-l#zeb*v2h^=hg0$w0O0< z?7p=nnoN|KP_~XzmuU$@I;~4n#z|?bAuZ#0GKq+(?W7$>qyw0iQiT$_n-FkPa2z*y zd%k<`S-pMQHzCuRwtws$?K}5;_ndRjyYJrn-n;J}eY(4^r@pREaPoF!Q`b|WU;vP(Moz!pTrcOjP?u70lmf+ zCEvKEl1}ONV#@6aGx$BH%iXj~nGsAOi?r(pb`1G+0NiY<-4;w)?>9+LHv21AEF;@;Jh9V1(0n7wuXL4r~dts zPj2mg@vT?x-_PAr6*!I&GNgx&0~KNqIa3Wk>>>XO)m}~h?>yu$c*w^+@UqgU2ZvKhGiygOwrRpRtgeU6R>{SjTso2*OhqH{Osb_#RV;-hT!BQ$h*Lu8 z45s?;v!b?|%&01fmbt;$K{Fj6>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t(v0HkywxEJ5*MoAJ)QcicUCmkqx-`_lSor_MhJ)CbT}!Q>@1IGJlyesGr?sob@*_ zpebaLoRs^XDpALRu3zW{evD((!S%CWC}!W4raBfjEBZUG4$Jkj>|)AP(~sVvBz!If H7c2f7j(;13 diff --git a/plugins/wlx/gtk_socket/webkit2gtk/kostyl b/plugins/wlx/gtk_socket/webkit2gtk/kostyl new file mode 120000 index 00000000..f54f1cbb --- /dev/null +++ b/plugins/wlx/gtk_socket/webkit2gtk/kostyl @@ -0,0 +1 @@ +../../gtk3test/webkit2gtk/kostyl \ No newline at end of file diff --git a/plugins/wlx/gtk_socket/webkit2gtk/kostyl.c b/plugins/wlx/gtk_socket/webkit2gtk/kostyl.c deleted file mode 100644 index 68876187..00000000 --- a/plugins/wlx/gtk_socket/webkit2gtk/kostyl.c +++ /dev/null @@ -1,75 +0,0 @@ -#include -#include -#include -#include - -//static GdkNativeWindow id = 0; -static Window id = 0; -static gchar *FileToLoad; -static GOptionEntry entries[] = -{ - { "xid", 'w', 0, G_OPTION_ARG_INT, &id, "Window ID", "ID" }, - { "file", 'f', 0, G_OPTION_ARG_FILENAME, &FileToLoad, "File to load", "File" }, - { NULL } -}; - -static void destroy(GtkWidget *widget, gpointer data) -{ - g_print("bye\n"); - gtk_main_quit(); -} - -int main(int argc, char *argv[]) -{ - GtkWidget *plug; - GtkWidget *scrolled_window; - GtkWidget *view; - gchar* fileUri; - GError *err = NULL; - GOptionContext *context; - - gtk_init(&argc, &argv); - - context = g_option_context_new("- commandline options"); - g_option_context_add_main_entries(context, entries, NULL); - g_option_context_add_group(context, gtk_get_option_group(TRUE)); - - if (!g_option_context_parse(context, &argc, &argv, &err)) - { - g_print("option parsing failed: %s\n", err->message); - exit(1); - } - - if (err) - g_error_free(err); - - g_print("hi\n"); - scrolled_window = gtk_scrolled_window_new(NULL, NULL); - - if (FileToLoad) - fileUri = g_filename_to_uri(FileToLoad, NULL, NULL); - - view = webkit_web_view_new(); - webkit_web_view_load_uri(WEBKIT_WEB_VIEW(view), fileUri); - WebKitSettings *wksettings = webkit_web_view_get_settings(WEBKIT_WEB_VIEW(view)); - webkit_settings_set_allow_universal_access_from_file_urls(wksettings, TRUE); - - gtk_container_add(GTK_CONTAINER(scrolled_window), view); - - if (id > 0) - { - plug = gtk_plug_new(id); - gtk_container_add(GTK_CONTAINER(plug), scrolled_window); - gtk_plug_construct(GTK_PLUG(plug), id); - gtk_widget_show_all(plug); - gtk_widget_realize(scrolled_window); - gtk_widget_grab_focus(scrolled_window); - } - else - return EXIT_FAILURE; - - g_signal_connect(plug, "destroy", G_CALLBACK(destroy), NULL); - gtk_main(); - - return EXIT_SUCCESS; -} diff --git a/plugins/wlx/gtk_socket/webkit2gtk/kostyl.c b/plugins/wlx/gtk_socket/webkit2gtk/kostyl.c new file mode 120000 index 00000000..068e65cc --- /dev/null +++ b/plugins/wlx/gtk_socket/webkit2gtk/kostyl.c @@ -0,0 +1 @@ +../../gtk3test/webkit2gtk/kostyl.c \ No newline at end of file diff --git a/plugins/wlx/gtk_socket/yelp/kostyl b/plugins/wlx/gtk_socket/yelp/kostyl deleted file mode 100755 index a99e6709541c809f6501387fc2e1c66b74cbab75..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 18064 zcmeHP4R9OBbzTsnOv@%n$x_V9KY~>&rrZ!BsUOoyWCIjI9W#`z%90}2KSvNaf+v9h z3>+lVlT0|Jtr%sPGC%b=o_50gj7R;MmXmfomdE4LmSZVx+>zU{t)`8Ku^kVPI5pG6 zuBzBV-`jl;JRERIX4;v~WUxcr+xP8zZ+GAA?cMF|<7dNz{S6+E;N%sz3FH=5DtDtWxd}AJ#6Q1 zn%M38sXjNqwBf*j#FX4Cwj|8q9ox1fVjT%HnH%pI@7d9@V_P7b3UteUqkWX!bH_nc z7iflDA<0K@ zdiu>TeR_BJm3RL2fy37-r24oEDqT|zi=qquHq=r}{w8QpE&M|l`C~5lS6uL$UE1@i z3;vHTcG_IzSGnMaUGV2!@V{}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 z3m0AhxzR{=R0LuZNwBA=l~E(sBlx2)W1QjTkPFNx!$8`WB-9$h-JdjDr zIH`a!N;AP|40M@O8fr>V8k`5ikuft0wWh!p90IZeWej4jL;$~s!-Qj-l>Zl5Tvvgq z7@iST;`cVDyskpUQkL^be;0nZmcjb`e#g`gW%k7PS;o2`W7p^RK&CgcAW^4&AK>r9 z+6LFp?~6=3NssTR{JhL&?|=;4h05*c_e!RnaDTys>qY1%*5`GZLx7)gew1i0Whor+b0vhFB9c;KQ6|$+EX4FyFR~fGo5od z++kjP#i7sd4NSj7=b!6jedZr`==1wKQ(o6(d1w3QNT2;L{3J;0Fnd18+JcXC_c|CXO zV*o;8ImIpWjGu=B96MY;uUGK@vsfg@@c3dqK94^HUF<*W^SZ`)dU0%rGJ9furf)-` zU0(!Ax>M0bVwtcW(|4i3uD=*ml8dB2&x%C-4*osh(H6I#pUY>vlpxPjtj6^+e-ScR zKUK%DVEt`nL}gGGlb!O|Qzhznmg=9Q3h_F|I=Fsr7cNh8+m)s|j_y=+(NW0tvg~Te SI7DQTh6^{4ybc8iEB*&i$3}Pn diff --git a/plugins/wlx/gtk_socket/yelp/kostyl b/plugins/wlx/gtk_socket/yelp/kostyl new file mode 120000 index 00000000..1c35060f --- /dev/null +++ b/plugins/wlx/gtk_socket/yelp/kostyl @@ -0,0 +1 @@ +../../gtk3test/yelp/kostyl \ No newline at end of file diff --git a/plugins/wlx/gtk_socket/yelp/kostyl.c b/plugins/wlx/gtk_socket/yelp/kostyl.c deleted file mode 100644 index eb2fa3e3..00000000 --- a/plugins/wlx/gtk_socket/yelp/kostyl.c +++ /dev/null @@ -1,68 +0,0 @@ -#include -#include -#include -#include - - -//static GdkNativeWindow id = 0; -static Window id = 0; -static gchar *FileToLoad; -static GOptionEntry entries[] = -{ - { "xid", 'w', 0, G_OPTION_ARG_INT, &id, "Window ID", "ID" }, - { "file", 'f', 0, G_OPTION_ARG_FILENAME, &FileToLoad, "File to load", "File" }, - { NULL } -}; - -static void destroy(GtkWidget *widget, gpointer data) -{ - g_print("bye\n"); - gtk_main_quit(); -} - -int main(int argc, char *argv[]) -{ - GtkWidget *abi; - GtkWidget *plug; - gchar* fileUri; - GError *err = NULL; - GOptionContext *context; - - gtk_init(&argc, &argv); - context = g_option_context_new("- commandline options"); - g_option_context_add_main_entries(context, entries, NULL); - g_option_context_add_group(context, gtk_get_option_group(TRUE)); - - if (!g_option_context_parse(context, &argc, &argv, &err)) - { - g_print("option parsing failed: %s\n", err->message); - exit(1); - } - - if (err) - g_error_free(err); - - g_print("hi\n"); - abi = yelp_view_new(); - - if (FileToLoad) - fileUri = g_filename_to_uri(FileToLoad, NULL, NULL); - - yelp_view_load(YELP_VIEW(abi), fileUri); - - if (id > 0) - { - plug = gtk_plug_new(id); - gtk_container_add(GTK_CONTAINER(plug), abi); - gtk_plug_construct(GTK_PLUG(plug), id); - gtk_widget_show_all(plug); - gtk_widget_realize(abi); - } - else - return EXIT_FAILURE; - - g_signal_connect(plug, "destroy", G_CALLBACK(destroy), NULL); - gtk_main(); - - return EXIT_SUCCESS; -} diff --git a/plugins/wlx/gtk_socket/yelp/kostyl.c b/plugins/wlx/gtk_socket/yelp/kostyl.c new file mode 120000 index 00000000..987e8b93 --- /dev/null +++ b/plugins/wlx/gtk_socket/yelp/kostyl.c @@ -0,0 +1 @@ +../../gtk3test/yelp/kostyl.c \ No newline at end of file