From: Korshunov Ilya <kosha@Kp.ru> To: sisyphus@altlinux.ru Subject: [sisyphus] Есть тут спецы по GTK+ ? Date: Thu, 6 Feb 2003 16:00:59 +0300 Message-ID: <200302061600.59049.kosha@Kp.ru> (raw) [-- Attachment #1: Type: text/plain, Size: 1365 bytes --] Не собирается софтинка. Сама софтинка есть в сизифе (gtknw2), сорцы взяты оттуда. Внес небольшие изменения , ошибки которые кажет компайлер моих изменений не касаются. Может кто подскажет в чем затык - gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/Xft2 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -c `test -f 'callbacks.c' || echo './'`callbacks.c callbacks.c: In function `on_entry_username_focus_out_event': callbacks.c:31: warning: implicit declaration of function `strcpy' callbacks.c: In function `on_login_button_clicked': callbacks.c:91: warning: implicit declaration of function `strlen' callbacks.c:119: too many arguments to function `create_quick_dialog' callbacks.c:123: warning: implicit declaration of function `write_config' make[2]: *** [callbacks.o] Error 1 make[2]: Leaving directory `/usr/src/RPM/BUILD/gtknw2-0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/RPM/BUILD/gtknw2-0.2' make: *** [all] Error 2 ошибка: Неверный код возврата из /var/tmp/rpm-tmp.61258 (%build) callback.c и .h прилагается. [-- Attachment #2: callbacks.c --] [-- Type: text/x-csrc, Size: 4195 bytes --] #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <stdio.h> #include <stdlib.h> #include <strings.h> #include <gtk/gtk.h> #include "callbacks.h" #include "interface.h" #include "support.h" extern char iusername[1024], iserver[1024], icontext[1024], imountpoint[1024]; char ipassword[1024]; void on_main_window_destroy (GtkObject *object, gpointer user_data) { exit (0); } gboolean on_entry_username_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data) { bzero( iusername, 1024 ); strcpy( iusername, (char *)gtk_entry_get_text( (GtkEntry*)widget ) ); return FALSE; } gboolean on_entry_password_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data) { bzero (ipassword, 1024); strcpy (ipassword, (char *) gtk_entry_get_text ((GtkEntry*)widget)); return FALSE; } gboolean on_entry_context_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data) { bzero (icontext, 1024); strcpy (icontext, (char *) gtk_entry_get_text ((GtkEntry*)widget)); return FALSE; } gboolean on_entry_mountpoint_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data) { bzero (imountpoint, 1024); strcpy (imountpoint, (char *) gtk_entry_get_text ((GtkEntry*)widget)); return FALSE; } gboolean on_combo_entry_server_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data) { bzero (iserver, 1024); strcpy (iserver, (char *) gtk_entry_get_text((GtkEntry*)widget)); return FALSE; } void on_login_button_clicked (GtkButton *button, gpointer user_data) { GtkWidget *dialog_warning; gchar command[1024], *buffout, *bufferr; gint exitstatus; GError *error; bzero (command, 1024); strcpy (command, "ncpmount "); if (strlen(iserver) > 0) sprintf(command + strlen(command), "-S %s ", iserver); if (strlen(iusername) > 0) sprintf(command + strlen(command), "-U %s", iusername); if (strlen(icontext) > 0) sprintf(command + strlen(command), ".%s ", icontext); else *(command + strlen(command)) = ' '; if (strlen(ipassword) > 0) sprintf(command + strlen(command), "-P %s ", ipassword); else strcpy(command + strlen(command), "-n "); if (strlen(imountpoint) > 0) strcpy(command + strlen(command), imountpoint); g_spawn_command_line_sync(command,&buffout,&bufferr,&exitstatus,&error); if (exitstatus) { strcpy (command, _("Ncpmount reports following error:\n\n")); if (strlen(bufferr) > 0) { strcpy(command + strlen(command), bufferr); strcpy (command + strlen(command), "\n"); } if (strlen(buffout) > 0) strcpy(command + strlen(command), buffout); dialog_warning = create_quick_dialog(_("Warning!"), command); gtk_widget_show(dialog_warning); } else { write_config(); exit(0); } } void on_cancel_button_clicked (GtkButton *button, gpointer user_data) { exit(0); } void on_about_button_clicked (GtkButton *button, gpointer user_data) { /* Temporatly removed by KOSHA - errors mothefucker GtkWidget *dialog_about; dialog_about = create_quick_dialog(_("About gtknw2"), _("gtk+2 Netware Client 0.2\n\n" "written by\n" "Chris Ross <chris@darkrock.co.uk>\n" "Grigory Batalov <bga@altlinux.ru>\n" "http://www.lrn.ru/~bga/gtknw2/\n\n" "Distributed under the GPL") ); gtk_widget_show(dialog_about); */ } [-- Attachment #3: callbacks.h --] [-- Type: text/x-chdr, Size: 1622 bytes --] #include <gtk/gtk.h> void on_main_window_destroy (GtkObject *object, gpointer user_data); gboolean on_entry_username_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data); gboolean on_entry_password_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data); gboolean on_entry_context_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data); gboolean on_entry_mountpoint_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data); gboolean on_combo_entry_server_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data); void on_login_button_clicked (GtkButton *button, gpointer user_data); void on_cancel_button_clicked (GtkButton *button, gpointer user_data); void on_about_button_clicked (GtkButton *button, gpointer user_data);
next reply other threads:[~2003-02-06 13:00 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-02-06 13:00 Korshunov Ilya [this message] 2003-02-06 14:54 ` Someone Unknown 2003-02-06 15:13 ` Korshunov Ilya 2003-02-06 15:18 ` Aleksey Novodvorsky 2003-02-06 15:22 ` Korshunov Ilya
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200302061600.59049.kosha@Kp.ru \ --to=kosha@kp.ru \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git