/g/ - Technology

install openbsd

[Make a Post]
[X]





Nanonymous No.7372 [D][U][F][S][L][A][C]
File: ec016408cfb821895296f0c293868428d1a250a9e711fe741ff8fd5d1670d08e.png (dl) (17.76 KiB)
>>>>>>minimal
>$ wc -l *.c *.h
>20280 total

static void
mousepad_window_create_root_warning (MousepadWindow *window)
{
/* check if we need to add the root warning */
if (G_UNLIKELY (geteuid () 0))
{
GtkWidget *ebox, *label, *separator;

/* In GTK3, gtkrc is deprecated */
#if GTK_CHECK_VERSION(3, 0, 0) && (GNUC > 4 || GNUC
4 && GNUC_MINOR > 2)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

/* install default settings for the root warning text box */
gtk_rc_parse_string ("style\"mousepad-window-root-style\"\n"
"{\n"
"bg[NORMAL]=\"#b4254b\"\n"
"fg[NORMAL]=\"#fefefe\"\n"
"}\n"
"widget\"MousepadWindow.*.root-warning\"style\"mousepad-window-root-style\"\n"
"widget\"MousepadWindow.*.root-warning.GtkLabel\"style\"mousepad-window-root-style\"\n");

#if GTK_CHECK_VERSION(3, 0, 0) && (GNUC > 4 || GNUC == 4 && GNUC_MINOR > 2)
# pragma GCC diagnostic pop
#endif

/* add the box for the root warning */
ebox = gtk_event_box_new ();
gtk_widget_set_name (ebox, "root-warning");
gtk_box_pack_start (GTK_BOX (window->box), ebox, FALSE, FALSE, 0);
gtk_widget_show (ebox);

/* add the label with the root warning */
label = gtk_label_new (_("Warning, you are using the root account, you may harm your system."));
gtk_misc_set_padding (GTK_MISC (label), 6, 3);
gtk_container_add (GTK_CONTAINER (ebox), label);
gtk_widget_show (label);

separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_pack_start (GTK_BOX (window->box), separator, FALSE, FALSE, 0);
gtk_widget_show (separator);
}
}

Nanonymous No.7373 [D]
oops fucked up formatting
the software is "mousepad"

Nanonymous No.7374 [D]
dunno how to escape = or turn off formatting (since there's no [code] [aa] etc). so double = is replaced with "= ="

static void
mousepad_window_create_root_warning (MousepadWindow *window)
{
/* check if we need to add the root warning */
if (G_UNLIKELY (geteuid () = = 0))
{
GtkWidget *ebox, *label, *separator;

/* In GTK3, gtkrc is deprecated */
#if GTK_CHECK_VERSION(3, 0, 0) && (GNUC > 4 || GNUC = = 4 && GNUC_MINOR > 2)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

/* install default settings for the root warning text box */
gtk_rc_parse_string ("style\"mousepad-window-root-style\"\n"
"{\n"
"bg[NORMAL]=\"#b4254b\"\n"
"fg[NORMAL]=\"#fefefe\"\n"
"}\n"
"widget\"MousepadWindow.*.root-warning\"style\"mousepad-window-root-style\"\n"
"widget\"MousepadWindow.*.root-warning.GtkLabel\"style\"mousepad-window-root-style\"\n");

#if GTK_CHECK_VERSION(3, 0, 0) && (GNUC > 4 || GNUC = = 4 && GNUC_MINOR > 2)
# pragma GCC diagnostic pop
#endif

/* add the box for the root warning */
ebox = gtk_event_box_new ();
gtk_widget_set_name (ebox, "root-warning");
gtk_box_pack_start (GTK_BOX (window->box), ebox, FALSE, FALSE, 0);
gtk_widget_show (ebox);

/* add the label with the root warning */
label = gtk_label_new (_("Warning, you are using the root account, you may harm your system."));
gtk_misc_set_padding (GTK_MISC (label), 6, 3);
gtk_container_add (GTK_CONTAINER (ebox), label);
gtk_widget_show (label);

separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_pack_start (GTK_BOX (window->box), separator, FALSE, FALSE, 0);
gtk_widget_show (separator);
}
}

Nanonymous No.7377 [D]
>turn off formatting
put "noformatting" in the email field

>use GUI software
>expect it to be minimal
what were you thinking?

>Mousepad aims to be an easy-to-use and fast editor.
>Our target is an editor for quickly editing text files, not a development environment or an editor with a huge bunch of plugins.
>On the other hand we try to use the latest Gtk+ features available, which means that if Gtk adds something new in a major release that is useful for the editor, we will likely bump the Gtk dependency and integrate this new feature in Mousepad.
<mousepad is designed for impatient retards
<our target is people who get confused by having too many features or choices
<on the other hand, we don't mind breaking everything every time we update, so long as we get to chase a new toy
not even once

Nanonymous No.7618 [D] >>7651
>>use GUI software
>>expect it to be minimal
>GUI is bloat
>but not a bunch of shitty scripts that parse and unparse shit 50 times and fling around unstandardized metacharacters to force the console to pretend to be a GUI

Nanonymous No.7625 [D]
use vim. It can be made into an IDE, but it doesn't have to.

Nanonymous No.7628 [D] >>7651
>vim
literally more bloated than mousepad, and possibly even slower

Nanonymous No.7651 [D] >>7716
>>7618
>GUI is bloat
>but not a bunch of shitty scripts that parse and unparse shit 50 times and fling around unstandardized metacharacters to force the console to pretend to be a GUI
this but unironically. It's amazing that GUI niggers created a worse pile of hacks than the 70 year shitshow of the terminal, but somehow they managed it.

>>7628
>literally more bloated than mousepad
<vim-minimal: 521 k
<mousepad: 272 k
<gtksourceview2: 679 k
it's half the size... until you add on the "source view" (ie the actual text editor)
>possibly even slower
X window creation is slower than vim startup. I doubt wayland is better. Seriously, cope harder.

Nanonymous No.7716 [D] >>7719
>>7651
what in the fuck are you talking about, file sizes?
~/tmp/vim-8.1.1486/src $ wc -l *.c *.h
446637 total
>X window creation is slower than vim startup.
I'm not sure about that but GTK window creation certainly is. I'm talking about in general though. Vim will sit there picking its nose for a few seconds for certain trivial keystrokes and navigation commands, while any normal text editor will do it in a few ms or usecs (minus screen output delay).

Nanonymous No.7719 [D] >>7723
>>7716
If gtksourceview2 has a larger rpm than vim, it probably has more KLOC than vim. Go measure it yourself if you think it'll be otherwise.

>for certain trivial keystrokes
Which ones? This is almost certainly because of the way you have vim configured.

Nanonymous No.7723 [D]
>>7719
Yes I agree if we talk about the transitive closure of dependencies, this gnome mousepad shit will be more bloated than vim. They're still both dog shit either way.
All I change in vim configs is shit like tab size.
The moment you have like 3 levels of nested parens, etc, everything in vim starts to slow down. Even moving the cursor over such a line..